diff --git a/miniprogram/pages/formid/formid.js b/miniprogram/pages/formid/formid.js index fc13d0c..ed23b24 100644 --- a/miniprogram/pages/formid/formid.js +++ b/miniprogram/pages/formid/formid.js @@ -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 diff --git a/miniprogram/pages/formid/formid.wxml b/miniprogram/pages/formid/formid.wxml index 54d32a5..6cc4940 100644 --- a/miniprogram/pages/formid/formid.wxml +++ b/miniprogram/pages/formid/formid.wxml @@ -97,10 +97,10 @@ - + * - {{form.shibei == '1'?'常住社区名称':'单位包联社区名称'}} + 常住社区名称