yrik 4 роки тому
батько
коміт
4fee287cd8
1 змінених файлів з 2 додано та 3 видалено
  1. 2 3
      ruoyi-ui/src/views/system/role/index.vue

+ 2 - 3
ruoyi-ui/src/views/system/role/index.vue

@@ -532,9 +532,8 @@ export default {
     },
     /** 分配数据权限操作 */
     handleDataScope(row) {
-      this.reset();
-      const roleDeptTreeselect = this.getRoleDeptTreeselect(row.roleId);
-      getRole(row.roleId).then(response => {
+      const roleDeptTreeselect = this.getRoleDeptTreeselect(row.id);
+      getRole(row.id).then(response => {
         this.form = response.data;
         this.openDataScope = true;
         this.$nextTick(() => {