瀏覽代碼

租户: 用户管理角色回填

lxf 2 年之前
父節點
當前提交
881fc4bace
共有 1 個文件被更改,包括 4 次插入2 次删除
  1. 4 2
      src/views/systemTenant/tenant/userTenant/index.vue

+ 4 - 2
src/views/systemTenant/tenant/userTenant/index.vue

@@ -334,9 +334,11 @@ const submitForm = () => {
   });
 };
 const getDtl = (row) => {
-  formData.data = { ...row };
-  modalType.value = "edit";
   dialogVisible.value = true;
+  proxy.get(`/tenantUser/${row.userId}`).then((res) => {
+    formData.data = { ...row, roleIds: res.roleIds };
+    modalType.value = "edit";
+  });
 };
 const newPassword = () => {
   formData.data.password = generatePassword();