From 1f0499711f667cdc8008f71402d190e623528db7 Mon Sep 17 00:00:00 2001
From: loulijun2021 <1694218219@qq.com>
Date: 星期三, 26 四月 2023 13:13:16 +0800
Subject: [PATCH] 1.提交

---
 vue.config.js                   |    2 +-
 src/views/jcsz/jsqd.vue         |   32 +++++++++++++++++---------------
 src/store/modules/permission.js |    1 +
 3 files changed, 19 insertions(+), 16 deletions(-)

diff --git a/src/store/modules/permission.js b/src/store/modules/permission.js
index 1ec0878..c0a06d4 100644
--- a/src/store/modules/permission.js
+++ b/src/store/modules/permission.js
@@ -109,6 +109,7 @@
             return i
           }
         })
+        newRoutes.push({ path: '*', redirect: '/404', hidden: true })
       } else {
         newRoutes = getAsyncRoutes(asyncRoutes, menu)
       }
diff --git a/src/views/jcsz/jsqd.vue b/src/views/jcsz/jsqd.vue
index 8a26993..c8ad272 100644
--- a/src/views/jcsz/jsqd.vue
+++ b/src/views/jcsz/jsqd.vue
@@ -410,7 +410,7 @@
         </el-button>
       </div>
       <el-table
-        ref="multipleTable"
+        ref="multipleTableRef"
         :data="dialogFormUserTable"
         border
         :row-class-name="tableRowClassName"
@@ -981,7 +981,7 @@
     },
 
     /* 鍏宠仈鐢ㄦ埛妯″潡*/
-    async  userClick(row) {
+    userClick(row) {
       if (row.role_code === 'S001') {
         return this.$message.info('姝よ鑹叉棤娉曟搷浣滐紒')
       }
@@ -995,29 +995,31 @@
 
       this.userForm.roleName = row.role_name
       this.dialogFormUser.rolecode = row.role_code
-      const res = await this.getRoleAssociationUser()
 
-      if (res.code === '200') {
-        setTimeout(() => {
-          loading.close()
-          this.userDialogVisible = true
-          this.$nextTick(() => {
-            this.$refs.multipleTable.doLayout()
+      this.getRoleAssociationUser().then(res => {
+        if (res.code === '200') {
+          setTimeout(() => {
+            loading.close()
+
+            this.$nextTick(() => {
+              this.$refs.multipleTableRef.doLayout()
+            })
           })
-        }, 1000)
-      } else {
-        loading.close()
-      }
+        } else {
+          loading.close()
+        }
+      })
     },
     // 鑾峰彇瑙掕壊娓呭崟鍏宠仈鐢ㄦ埛
     async getRoleAssociationUser() {
       const res = await RoleAssociationUser(this.dialogFormUser)
       this.dialogFormUserTable = res.data
       this.dialogFormUserTableLength = res.count
+      this.userDialogVisible = true
       this.$nextTick(() => {
         this.dialogFormUserTable.forEach((item, index) => {
           if (item.flag === 'Y') {
-            this.$refs.multipleTable.toggleRowSelection(this.dialogFormUserTable[index], true)
+            this.$refs.multipleTableRef.toggleRowSelection(this.dialogFormUserTable[index], true)
           }
         })
       })
@@ -1064,7 +1066,7 @@
       this.dialogFormUser.orgcode = ''
       this.dialogFormUser.isrole = ''
       this.$refs.dialogCascaderUser.checkedValue = ''
-      this.$refs.multipleTable.clearSelection()
+      this.$refs.multipleTableRef.clearSelection()
     },
     // 鍏宠仈鐢ㄦ埛瀵硅瘽妗嗗叧闂�
     userDialogVisibleCancel() {
diff --git a/vue.config.js b/vue.config.js
index ac3c0a7..7d139be 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -52,7 +52,7 @@
       [process.env.VUE_APP_BASE_API]: {
         // target: 'http://121.196.36.24:8005', // 璇锋眰鐨勭涓夆絽鎺モ紳鍦板潃      鏈湴鏈嶅姟鍣�(鐏电繑)
         // target: 'http://192.168.0.230:8001', // 璇锋眰鐨勭涓夆絽鎺モ紳鍦板潃   瀹㈡埛鏈嶅姟鍣�(鐏电繑)  (鏈笂浜�)
-        target: 'http://ncr3az.natappfree.cc', // 璇锋眰鐨勭涓夆絽鎺モ紳鍦板潃   瀹㈡埛鏈嶅姟鍣�(鐏电繑)  (涓婁簯)
+        target: 'http://3up6ju.natappfree.cc', // 璇锋眰鐨勭涓夆絽鎺モ紳鍦板潃   瀹㈡埛鏈嶅姟鍣�(鐏电繑)  (涓婁簯)
         changeOrigin: true, // 璇锋眰璺ㄥ煙鏃讹紝闇� 閰嶇疆姝ら」
         pathRewrite: { // 璺緞閲嶅啓,鏇挎崲target涓殑璇锋眰鍦板潃
           ['^' + process.env.VUE_APP_BASE_API]: '/api/'

--
Gitblit v1.9.3