提交 be079aa9 authored 作者: lidongxu's avatar lidongxu

fix(user): 修复编辑有错误提示问题

部门和角色初始值 undefined 和编辑获取的 null 冲突触发了 change 所以有 el 的错误提示
上级 023ea41b
...@@ -685,8 +685,8 @@ ...@@ -685,8 +685,8 @@
sex: undefined, sex: undefined,
status: "0", status: "0",
remark: undefined, remark: undefined,
postId: undefined, postId: null,
roleId: undefined, roleId: null,
proStatus: false, // 促销权限 proStatus: false, // 促销权限
privilegeId: undefined, privilegeId: undefined,
workCityList: [] // 工作城市 workCityList: [] // 工作城市
...@@ -717,6 +717,7 @@ ...@@ -717,6 +717,7 @@
reset(); reset();
const userId = row.userId || ids.value; const userId = row.userId || ids.value;
getUser(userId).then(async response => { getUser(userId).then(async response => {
console.log('response', response)
// 省市回显 // 省市回显
const index = provinceList.value.findIndex(o => o.value === response.data.workProvinceNum) const index = provinceList.value.findIndex(o => o.value === response.data.workProvinceNum)
if (index !== -1) { if (index !== -1) {
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论