From 5569ff5c185797bb159ea2c58a52a92815e18db9 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期二, 13 六月 2023 19:51:16 +0800
Subject: [PATCH] code服务添加租户相关内容,角色配置界面修改

---
 Source/UBCS-WEB/src/views/authority/role.vue |   22 +++++++++++++++++-----
 1 files changed, 17 insertions(+), 5 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/authority/role.vue b/Source/UBCS-WEB/src/views/authority/role.vue
index 22c2a49..94180ad 100644
--- a/Source/UBCS-WEB/src/views/authority/role.vue
+++ b/Source/UBCS-WEB/src/views/authority/role.vue
@@ -12,6 +12,7 @@
                @row-save="rowSave"
                @search-change="searchChange"
                @search-reset="searchReset"
+               @row-click="clickRowChange"
                @selection-change="selectionChange"
                @current-change="currentChange"
                @size-change="sizeChange"
@@ -34,10 +35,11 @@
       </template>
     </avue-crud>
     <el-dialog title="瑙掕壊鏉冮檺閰嶇疆"
-               append-to-body
-               :visible.sync="box"
-               width="345px">
-      <el-tabs type="border-card">
+      append-to-body
+      :visible.sync="box"
+      width="350px" 
+      style="height: 115vh; margin-top: -13vh; overflow: hidden">
+      <el-tabs type="border-card" style="overflow-y: auto; height: 72vh">
         <el-tab-pane label="鑿滃崟鏉冮檺">
           <el-tree :data="menuGrantList"
                    show-checkbox
@@ -107,6 +109,7 @@
           total: 0
         },
         option: {
+          height: "auto",
           tip: false,
           simplePage: true,
           searchShow: true,
@@ -118,6 +121,7 @@
           viewBtn: true,
           dialogWidth: 900,
           dialogClickModal: false,
+          highlightCurrentRow: true, //琛岄�変腑鏃堕珮浜�
           column: [
             {
               label: "瑙掕壊鍚嶇О",
@@ -136,7 +140,7 @@
               label: "鎵�灞炵鎴�",
               prop: "tenantId",
               type: "tree",
-              dicUrl: "/api/blade-system/tenant/select",
+              dicUrl: "/api/ubcs-system/tenant/select",
               addDisplay: false,
               editDisplay: false,
               viewDisplay: website.tenantMode,
@@ -304,6 +308,13 @@
       },
       selectionChange(list) {
         this.selectionList = list;
+        this.$refs.crud.setCurrentRow(this.selectionList[list.length-1]);
+      },
+      clickRowChange(row){
+        this.selectionList = row;
+        this.$refs.crud.toggleSelection();
+        this.$refs.crud.setCurrentRow(row);
+        this.$refs.crud.toggleRowSelection(row); //閫変腑褰撳墠琛�
       },
       selectionClear() {
         this.selectionList = [];
@@ -360,6 +371,7 @@
       },
       currentChange(currentPage) {
         this.page.currentPage = currentPage;
+
       },
       sizeChange(pageSize) {
         this.page.pageSize = pageSize;

--
Gitblit v1.9.3