修改用户数据添加表单

master
夜笙歌 2 years ago
parent 2695d48d31
commit c54d2f2e2d

@ -583,7 +583,8 @@ export default {
status: "0",
remark: undefined,
postIds: [],
roleIds: []
roleIds: [],
datasourceId:[]
};
this.resetForm("form");
},
@ -636,6 +637,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.postOptions = response.posts;
this.roleOptions = response.roles;
this.$set(this.form, "postIds", response.postIds);

Loading…
Cancel
Save