|
@@ -167,8 +167,8 @@
|
|
if (this.status == 'edit' && data == 3 && this.editInfo.kaozhengList.length > 0) {
|
|
if (this.status == 'edit' && data == 3 && this.editInfo.kaozhengList.length > 0) {
|
|
this.banzhengXinxiFlag = true
|
|
this.banzhengXinxiFlag = true
|
|
return false
|
|
return false
|
|
- }else{
|
|
|
|
- this.banzhengXinxiFlag = false
|
|
|
|
|
|
+ } else {
|
|
|
|
+ this.banzhengXinxiFlag = false
|
|
}
|
|
}
|
|
this.current = data
|
|
this.current = data
|
|
if (this.status != 'edit') {
|
|
if (this.status != 'edit') {
|
|
@@ -194,6 +194,8 @@
|
|
|
|
|
|
},
|
|
},
|
|
gerenZiliaoDataHandle(data) {
|
|
gerenZiliaoDataHandle(data) {
|
|
|
|
+ console.log('gerenZiliaoDataHandle', data);
|
|
|
|
+ console.log('gerenZiliaoDataHandle', data.hunyin.id);
|
|
this.allData.userName = data.userName
|
|
this.allData.userName = data.userName
|
|
this.allData.realName = data.realName
|
|
this.allData.realName = data.realName
|
|
this.allData.idcard = data.idcard
|
|
this.allData.idcard = data.idcard
|
|
@@ -265,17 +267,19 @@
|
|
this.zhaopianziliaoDataHandle(data)
|
|
this.zhaopianziliaoDataHandle(data)
|
|
},
|
|
},
|
|
addSave(data) {
|
|
addSave(data) {
|
|
- this.allData.kaozhengList.push(data)
|
|
|
|
|
|
+ if (data != '') {
|
|
|
|
+ this.allData.kaozhengList.push(data)
|
|
|
|
+ }
|
|
this.submitJiazheng()
|
|
this.submitJiazheng()
|
|
},
|
|
},
|
|
submitJiazheng() {
|
|
submitJiazheng() {
|
|
console.log('this.allData', this.allData);
|
|
console.log('this.allData', this.allData);
|
|
- jiazhengAdd(this.allData).then(res=>{
|
|
|
|
- if(res.code ==0){
|
|
|
|
|
|
+ jiazhengAdd(this.allData).then(res => {
|
|
|
|
+ if (res.code == 0) {
|
|
uni.navigateTo({
|
|
uni.navigateTo({
|
|
url: `/pages/admin/Jiazheng/index`
|
|
url: `/pages/admin/Jiazheng/index`
|
|
})
|
|
})
|
|
- }else{
|
|
|
|
|
|
+ } else {
|
|
uni.showToast({
|
|
uni.showToast({
|
|
title: "失败",
|
|
title: "失败",
|
|
icon: 'none',
|
|
icon: 'none',
|
|
@@ -283,9 +287,9 @@
|
|
})
|
|
})
|
|
return false
|
|
return false
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+
|
|
})
|
|
})
|
|
-
|
|
|
|
|
|
+
|
|
},
|
|
},
|
|
editBanzheng(data, index) {
|
|
editBanzheng(data, index) {
|
|
this.current = 3
|
|
this.current = 3
|