feat(医疗模块): 更新关联用户功能,优化表单处理
- 将关联用户输入框的大小调整为大号,提升用户体验 - 在表单数据中添加用户ID字段,支持关联用户的选择 - 优化手机号和邮箱的自动补全逻辑,确保用户信息的准确性 - 增加调试信息以便于后续开发和问题排查
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
<el-row type="flex" justify="center">
|
<el-row type="flex" justify="center">
|
||||||
<el-form-item label="关联用户" prop="tel">
|
<el-form-item label="关联用户" prop="tel">
|
||||||
<el-autocomplete
|
<el-autocomplete
|
||||||
size="small"
|
size="large"
|
||||||
style="width: 500px;"
|
style="width: 500px;"
|
||||||
v-model="addForm.tel"
|
v-model="addForm.tel"
|
||||||
:debounce="500"
|
:debounce="500"
|
||||||
@@ -170,6 +170,7 @@
|
|||||||
content: '',
|
content: '',
|
||||||
cityId: '',
|
cityId: '',
|
||||||
provId: '',
|
provId: '',
|
||||||
|
userId: '', //关联用户id
|
||||||
tel: '',
|
tel: '',
|
||||||
sort: 0
|
sort: 0
|
||||||
},
|
},
|
||||||
@@ -270,6 +271,7 @@
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
loadAll(queryString, cb) {
|
loadAll(queryString, cb) {
|
||||||
|
console.log('queryString', queryString);
|
||||||
if (queryString == "") {
|
if (queryString == "") {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
@@ -293,7 +295,7 @@
|
|||||||
handleSelect(data) {
|
handleSelect(data) {
|
||||||
console.log("data at line 161:", data);
|
console.log("data at line 161:", data);
|
||||||
this.addForm.userId = data.id;
|
this.addForm.userId = data.id;
|
||||||
this.addForm.tel = data.tel;
|
this.addForm.tel = data.tel ? data.tel : data.email;
|
||||||
},
|
},
|
||||||
provinceChange() {
|
provinceChange() {
|
||||||
this.addForm.cityId = ''
|
this.addForm.cityId = ''
|
||||||
@@ -338,6 +340,7 @@
|
|||||||
this.addForm.typeId = row.type.toString()
|
this.addForm.typeId = row.type.toString()
|
||||||
this.addForm.sort = row.sort
|
this.addForm.sort = row.sort
|
||||||
this.addForm.tel = row.tel
|
this.addForm.tel = row.tel
|
||||||
|
this.addForm.userId = row.userId ? row.userId : ''
|
||||||
this.fileList = row.imgList
|
this.fileList = row.imgList
|
||||||
for (var i = 0; i < this.provinceEntity.length; i++) {
|
for (var i = 0; i < this.provinceEntity.length; i++) {
|
||||||
for (var j = 0; j < this.provinceEntity[i].cityList.length; j++) {
|
for (var j = 0; j < this.provinceEntity[i].cityList.length; j++) {
|
||||||
@@ -368,6 +371,8 @@
|
|||||||
content: '',
|
content: '',
|
||||||
cityId: '',
|
cityId: '',
|
||||||
provId: '',
|
provId: '',
|
||||||
|
userId: '',
|
||||||
|
tel: '',
|
||||||
sort: 0
|
sort: 0
|
||||||
}
|
}
|
||||||
this.fileList = []
|
this.fileList = []
|
||||||
|
|||||||
Reference in New Issue
Block a user