|
@@ -176,6 +176,13 @@
|
|
|
} else {
|
|
|
this.banzhengXinxiFlag = false
|
|
|
}
|
|
|
+
|
|
|
+ if (this.status == 'add') {
|
|
|
+ if (this.current >= 0) {
|
|
|
+ this.current--;
|
|
|
+ this.updateTabs();
|
|
|
+ }
|
|
|
+ }
|
|
|
this.current = data
|
|
|
if (this.status != 'edit') {
|
|
|
return false
|
|
@@ -230,16 +237,21 @@
|
|
|
},
|
|
|
gerenziliaoNext(data, num) {
|
|
|
this.gerenZiliaoDataHandle(data)
|
|
|
- this.current = num + 1
|
|
|
- this.tabs = this.tabs.map((item, i) => {
|
|
|
- if (i == this.current) item.disabled = false
|
|
|
- return item
|
|
|
- })
|
|
|
+ // this.current = num + 1
|
|
|
+ // this.tabs = this.tabs.map((item, i) => {
|
|
|
+ // if (i == this.current) item.disabled = false
|
|
|
+ // return item
|
|
|
+ // })
|
|
|
+ if (this.current < this.tabs.length - 1) {
|
|
|
+ this.current++;
|
|
|
+ this.updateTabs();
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
editSaveGerenziliao(data) {
|
|
|
this.gerenZiliaoDataHandle(data, 'edit')
|
|
|
},
|
|
|
- qiuzhiXinxiDataHandle(data,flag) {
|
|
|
+ qiuzhiXinxiDataHandle(data, flag) {
|
|
|
this.allData.leixing = data.leixing
|
|
|
this.allData.jingyan = data.jingyan
|
|
|
this.allData.jineng = data.jineng
|
|
@@ -259,25 +271,48 @@
|
|
|
},
|
|
|
goNextQiuzhixinxi(data, num) {
|
|
|
this.qiuzhiXinxiDataHandle(data)
|
|
|
- this.current = num + 1
|
|
|
+
|
|
|
+ if (this.current < this.tabs.length - 1) {
|
|
|
+ this.current++;
|
|
|
+ this.updateTabs();
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ // this.current = num + 1
|
|
|
+ // this.tabs = this.tabs.map((item, i) => {
|
|
|
+ // if (i == this.current) item.disabled = false
|
|
|
+ // return item
|
|
|
+ // })
|
|
|
+ },
|
|
|
+ updateTabs() {
|
|
|
+ console.log('this.tabsthis.tabs',this.tabs);
|
|
|
+ console.log('this.current',this.tabs);
|
|
|
+
|
|
|
this.tabs = this.tabs.map((item, i) => {
|
|
|
- if (i == this.current) item.disabled = false
|
|
|
- return item
|
|
|
- })
|
|
|
+ // 当前页签及之前的页签 disabled 为 false,之后的页签 disabled 为 true
|
|
|
+ item.disabled = i >= this.current;
|
|
|
+ return item;
|
|
|
+ });
|
|
|
},
|
|
|
editSaveQiuzhixinxi(data) {
|
|
|
- this.qiuzhiXinxiDataHandle(data,'edit')
|
|
|
+ this.qiuzhiXinxiDataHandle(data, 'edit')
|
|
|
},
|
|
|
|
|
|
goNextZhaopianZiliao(data, num) {
|
|
|
this.zhaopianziliaoDataHandle(data)
|
|
|
- this.current = num + 1
|
|
|
- this.tabs = this.tabs.map((item, i) => {
|
|
|
- if (i == this.current) item.disabled = false
|
|
|
- return item
|
|
|
- })
|
|
|
+ // this.current = num + 1
|
|
|
+ // this.tabs = this.tabs.map((item, i) => {
|
|
|
+ // if (i == this.current) item.disabled = false
|
|
|
+ // return item
|
|
|
+ // })
|
|
|
+ if (this.current < this.tabs.length - 1) {
|
|
|
+ this.current++;
|
|
|
+ this.updateTabs();
|
|
|
+ }
|
|
|
+
|
|
|
},
|
|
|
- zhaopianziliaoDataHandle(data,flag) {
|
|
|
+ zhaopianziliaoDataHandle(data, flag) {
|
|
|
this.allData.icon = data.icon
|
|
|
this.allData.idcardUrl1 = data.idcardUrl1
|
|
|
this.allData.idcardUrl2 = data.idcardUrl2
|
|
@@ -297,7 +332,7 @@
|
|
|
}
|
|
|
},
|
|
|
editSaveZhaopianziliao(data) {
|
|
|
- this.zhaopianziliaoDataHandle(data,'edit')
|
|
|
+ this.zhaopianziliaoDataHandle(data, 'edit')
|
|
|
},
|
|
|
addSave(data) {
|
|
|
if (data != '') {
|