修改用户数据添加表单

master
夜笙歌 2 years ago
parent c54d2f2e2d
commit c2443fab36

@ -517,7 +517,6 @@ export default {
this.initPassword = response.msg;
});
getDatasourceIdList().then(e => {
console.log(e)
this.datasourceIdList = e.rows.map(val => {
return {
label: val.parkName,
@ -584,7 +583,7 @@ export default {
remark: undefined,
postIds: [],
roleIds: [],
datasourceId:[]
datasourceId: []
};
this.resetForm("form");
},
@ -637,7 +636,7 @@ export default {
const userId = row.userId || this.ids;
getUser(userId).then(response => {
this.form = response.data;
this.form.datasourceId = response.data?.datasourceId?.split(',');
this.form.datasourceId = response.data?.datasourceId?.split(',').filter(e=>!!e);
this.postOptions = response.posts;
this.roleOptions = response.roles;
this.$set(this.form, "postIds", response.postIds);

Loading…
Cancel
Save