|
@@ -15,6 +15,8 @@
|
|
|
@goNext="goNextZhaopianZiliao" v-show="current ==2"></zhaopianZiliao>
|
|
|
<banzhengXinxi ref="banzhengXinxi" :status='status' @addSave="addSave" v-show="current ==3">
|
|
|
</banzhengXinxi>
|
|
|
+ <banzhengXinxiList :list="editInfo.kaozhengList" v-show="banzhengXinxiFlag" @editBanzheng="editBanzheng"
|
|
|
+ ref="banzhengXinxiList"></banzhengXinxiList>
|
|
|
</view>
|
|
|
</template>
|
|
|
|
|
@@ -23,6 +25,7 @@
|
|
|
ref
|
|
|
} from "vue";
|
|
|
import banzhengXinxi from './banzhengXinxi.vue';
|
|
|
+ import banzhengXinxiList from './banzhengXinxiList.vue';
|
|
|
import qiuzhiXinxi from './qiuzhiXinxi.vue';
|
|
|
import zhaopianZiliao from './zhaopianZiliao.vue';
|
|
|
import gerenZiliao from './gerenZiliao.vue';
|
|
@@ -73,11 +76,13 @@
|
|
|
status: '',
|
|
|
id: '',
|
|
|
userId: '',
|
|
|
+ banzhengXinxiFlag: false,
|
|
|
editInfo: {}
|
|
|
}
|
|
|
},
|
|
|
components: {
|
|
|
banzhengXinxi,
|
|
|
+ banzhengXinxiList,
|
|
|
qiuzhiXinxi,
|
|
|
gerenZiliao,
|
|
|
zhaopianZiliao,
|
|
@@ -158,8 +163,12 @@
|
|
|
},
|
|
|
changeTab(data) {
|
|
|
console.log('data', data);
|
|
|
+ if (this.status == 'edit' && data == 3 && this.editInfo.kaozhengList.length > 0) {
|
|
|
+ this.banzhengXinxiFlag = true
|
|
|
+ return false
|
|
|
+ }
|
|
|
this.current = data
|
|
|
- if(this.status !='edit'){
|
|
|
+ if (this.status != 'edit') {
|
|
|
return false
|
|
|
}
|
|
|
switch (Number(data)) {
|
|
@@ -179,10 +188,6 @@
|
|
|
break;
|
|
|
}
|
|
|
|
|
|
- if (this.status == 'edit' && this.current == 1) {
|
|
|
-
|
|
|
- }
|
|
|
-
|
|
|
|
|
|
},
|
|
|
gerenZiliaoDataHandle(data) {
|
|
@@ -263,6 +268,13 @@
|
|
|
submitJiazheng() {
|
|
|
console.log('this.allData', this.allData);
|
|
|
},
|
|
|
+ editBanzheng(data, index) {
|
|
|
+ this.current = 3
|
|
|
+ this.banzhengXinxiFlag = false
|
|
|
+ this.$refs.banzhengXinxi.editinfo(data, index)
|
|
|
+
|
|
|
+
|
|
|
+ },
|
|
|
goUpPage() {
|
|
|
|
|
|
}
|