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

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

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