网格员选择器优化

This commit is contained in:
yanran200730
2022-01-26 11:26:01 +08:00
parent d37554d317
commit 2d45ddf2be

View File

@@ -252,6 +252,7 @@ export default {
girdInfoList: [], girdInfoList: [],
girdMemberType: "", girdMemberType: "",
id: "", id: "",
wxUserId: '',
introduction: "", introduction: "",
isGirdMember: "", isGirdMember: "",
mail: "", mail: "",
@@ -377,6 +378,7 @@ export default {
this.forms.name = val[0].name; this.forms.name = val[0].name;
this.forms.phone = val[0].phone; this.forms.phone = val[0].phone;
this.forms.userId = val[0].sysUserId this.forms.userId = val[0].sysUserId
this.forms.wxUserId = val[0].id
}, },
getCheckedTree() { getCheckedTree() {
if (!this.$refs.tree.getCheckedNodes().length) { if (!this.$refs.tree.getCheckedNodes().length) {
@@ -461,10 +463,11 @@ export default {
...res.data, ...res.data,
girdInfoList: res.data.girdInfoList || [] girdInfoList: res.data.girdInfoList || []
}; };
this.user = [{ this.users = [{
name: res.data.name, name: res.data.name,
phone: res.data.phone, phone: res.data.phone,
userId: res.data.id userId: res.data.id,
id: res.data.wxUserId
}] }]
this.girdInfoStr = '' this.girdInfoStr = ''
this.photoList = [{ url: this.forms.photo }]; this.photoList = [{ url: this.forms.photo }];