|
|
@ -418,7 +418,7 @@ Page({ |
|
|
|
this.getDeptTree() |
|
|
|
this.setData({ |
|
|
|
'form.shibei': e.detail.value, |
|
|
|
'form.allDeptIds': [], |
|
|
|
// 'form.allDeptIds': [""],
|
|
|
|
'form.couplingCommunity': [], |
|
|
|
multiIndex: [0, 0], |
|
|
|
multiIndexC: [0, 0], |
|
|
@ -555,10 +555,10 @@ Page({ |
|
|
|
// return false
|
|
|
|
// }
|
|
|
|
} else if (this.data.form.shibei == '0') { |
|
|
|
if (this.data.form.allDeptIds.length == 0) { |
|
|
|
this.showToast('请填写单位包联社区名称名称') |
|
|
|
return false |
|
|
|
} |
|
|
|
// if (this.data.form.allDeptIds.length == 0) {
|
|
|
|
// this.showToast('请填写单位包联社区名称名称')
|
|
|
|
// return false
|
|
|
|
// }
|
|
|
|
} |
|
|
|
|
|
|
|
const para = { |
|
|
@ -672,10 +672,10 @@ Page({ |
|
|
|
// return
|
|
|
|
// }
|
|
|
|
} else if (this.data.form.shibei == '0') { |
|
|
|
if (this.data.form.allDeptIds.length == 0) { |
|
|
|
this.showToast('请填写单位包联社区名称名称') |
|
|
|
return |
|
|
|
} |
|
|
|
// if (this.data.form.allDeptIds.length == 0) {
|
|
|
|
// this.showToast('请填写单位包联社区名称名称')
|
|
|
|
// return
|
|
|
|
// }
|
|
|
|
} |
|
|
|
this.setData({ |
|
|
|
visible: true |
|
|
|