From c65c0b31e6dfd01db744a450dda3816f65eebbc1 Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期四, 05 十二月 2024 11:41:10 +0800
Subject: [PATCH] 1、修改使用当前用户的类型查询用户接口,可以传入用户类型。 2、增加根据用户主键获取关联的部门接口。 3、增加查询授权结果接口。 4、增加查询业务对象接口。

---
 Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue |   30 ++++++++++++++++++++++++------
 1 files changed, 24 insertions(+), 6 deletions(-)

diff --git a/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue b/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue
index f1c21f7..2b0c6fa 100644
--- a/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue
+++ b/Source/plt-web/plt-web-ui/src/views/authority/ui/dataAuthorization/index.vue
@@ -50,7 +50,7 @@
               <data-view ref="editView" key="editView" :btmNode="nodeRow" :selectRow="title === 'add'?{}:selectRow" :actionMap="actionMap" :readOnly="false" :height="clientHeight-260"></data-view>
             </div>
             <span slot="footer" class="dialog-footer">
-               <el-button size="small" type="primary" @click="addDialogSavaHandler">纭� 瀹�</el-button>
+               <el-button size="small" type="primary" @click="addDialogSavaHandler">淇� 瀛�</el-button>
                <el-button size="small" @click="addDialogClose">鍙� 娑�</el-button>
             </span>
         </el-dialog>
@@ -264,13 +264,31 @@
     },
     // 鏂板缂栬緫淇濆瓨
     addDialogSavaHandler() {
-      saveGrand(this.viewData).then(res => {
-        if (res.data.code === 200) {
-          this.$message.success(res.data.obj);
+      let form=this.$refs.editView.form;
+      form.users=''
+      form.userGroups='';
+      form.roles=''
+      this.$refs.editView.authData.forEach(item=>{
+        let infos=item.name.split(', ');
+        infos[0]=infos[0].replace('{','')
+        if(infos[2]=='user}'){
+          form.users+=infos[0]+','
+        }
+        if(infos[2]=='userGroup}'){
+          form.userGroups+=infos[0]+','
+        }
+        if(infos[2]=='role}'){
+          form.roles+=infos[0]+','
+        }
+      });
+      console.log(form)
+      //saveGrand(this.viewData).then(res => {
+        //if (res.data.code === 200) {
+          //this.$message.success(res.data.obj);
           this.getTableList();
           this.addDialogClose();
-        }
-      })
+        //}
+      //})
     },
     // 鏂板缂栬緫瀵硅瘽妗嗗彇娑�
     addDialogClose() {

--
Gitblit v1.9.3