网格基础设置调整

This commit is contained in:
aixianling
2022-06-01 09:57:15 +08:00
parent e71d1fcf12
commit 49aa0a6276
5 changed files with 85 additions and 200 deletions

View File

@@ -375,10 +375,13 @@ export default {
this.forms.photo = val[0].url;
},
getSelectPerson(val) {
this.forms.name = val[0].name;
this.forms.phone = val[0].phone;
this.forms.userId = val[0].sysUserId
this.forms.wxUserId = val[0].id
if(val.length){
this.forms.name = val[0].name;
this.forms.phone = val[0].phone;
this.forms.userId = val[0].sysUserId
this.forms.wxUserId = val[0].id
this.$refs.rules.validateField('name')
}
},
getCheckedTree() {
if (!this.$refs.tree.getCheckedNodes().length) {
@@ -423,14 +426,6 @@ export default {
if (!currInfo.id) {
return this.$message.error('请选择网格')
}
if (currInfo.checkType === '1' && currInfo.girdLevel !== '2') {
return this.$message.error(`一级、二级网格不能添加网格员`)
}
if (sameInfo.length) {
return this.$message.error('不能选择同一网格重复绑定')
}
}
this.instance.post(`/app/appgirdmemberinfo/addOrUpdate`,{