From aee67ef5bf2e57a148bfded1cb986378e35e7e01 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 18 四月 2024 00:49:22 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 Source/UBCS-WEB/src/views/integration/integrationIndex.vue |   36 ++++++++++++++++++++++++------------
 1 files changed, 24 insertions(+), 12 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/integration/integrationIndex.vue b/Source/UBCS-WEB/src/views/integration/integrationIndex.vue
index 5cb52d3..083d865 100644
--- a/Source/UBCS-WEB/src/views/integration/integrationIndex.vue
+++ b/Source/UBCS-WEB/src/views/integration/integrationIndex.vue
@@ -59,16 +59,17 @@
                 <!--                <el-button :disabled="disabledPush" icon="el-icon-plus" size="small" type="primary"-->
                 <!--                           @click="dialogPush = true">鏂� 澧�-->
                 <!--                </el-button>-->
-                <el-button icon="el-icon-check" size="small" type="primary" @click="handleSave">淇� 瀛�
+                <el-button v-if="permissionList.saveBtn" icon="el-icon-check" size="small" type="primary"
+                           @click="handleSave">淇� 瀛�
                 </el-button>
-                <el-button icon="el-icon-connection" size="small" type="primary"
-                           @click="handleSync('all')">鍚屾涓绘ā鍨�
+                <el-button v-if="permissionList.allSyncBtn" icon="el-icon-connection" size="small"
+                           type="primary" @click="handleSync('all')">鍚屾涓绘ā鍨�
                 </el-button>
-                <el-button icon="el-icon-connection" size="small" type="primary"
-                           @click="handleSync('one')">鍚屾璇︾粏妯″瀷
+                <el-button v-if="permissionList.oneSyncBtn" icon="el-icon-connection" size="small"
+                           type="primary" @click="handleSync('one')">鍚屾璇︾粏妯″瀷
                 </el-button>
-                <el-button icon="el-icon-coordinate" size="small" type="primary"
-                           @click="handlerAuto">鑷姩濉厖
+                <el-button v-if="permissionList.autoBtn" icon="el-icon-coordinate" size="small"
+                           type="primary" @click="handlerAuto">鑷姩濉厖
                 </el-button>
               </template>
             </avue-crud>
@@ -78,8 +79,8 @@
                        @row-update="handleUpdate"
                        @row-dblclick="handleRowClick">
               <template slot="menuLeft">
-                <el-button icon="el-icon-coordinate" size="small" type="primary"
-                           @click="handlerBottomAuto">鑷姩濉厖
+                <el-button v-if="permissionList.bottomAutoBtn" icon="el-icon-coordinate" size="small"
+                           type="primary" @click="handlerBottomAuto">鑷姩濉厖
                 </el-button>
               </template>
             </avue-crud>
@@ -94,6 +95,7 @@
 <script>
 import integrationTransfer from './integrationTransfer.vue'
 import pinyin from 'js-pinyin'
+import {mapGetters} from "vuex";
 import {
   referCodeClassifyTree,
   referTree,
@@ -281,7 +283,17 @@
     },
     targetColumn() {
       return this.optionMapping.column.find(column => column.prop === 'targetAttrName');
-    }
+    },
+    ...mapGetters(["permission"]),
+    permissionList() {
+      return {
+        allSyncBtn: this.vaildData(this.permission.integration.integration_allSync, false),
+        autoBtn: this.vaildData(this.permission.integration.integration_auto, false),
+        bottomAutoBtn: this.vaildData(this.permission.integration.integration_bottomAuto, false),
+        oneSyncBtn: this.vaildData(this.permission.integration.integration_oneSync, false),
+        saveBtn: this.vaildData(this.permission.integration.integration_save, false),
+      }
+    },
   },
   methods: {
     handlerAuto() {
@@ -314,7 +326,7 @@
               }
             })
           })
-          this.$message.success('濉厖鎴愬姛锛�');
+          this.$message.success('鑷姩濉厖鎴愬姛锛岃纭灞炴�у悗鐐瑰嚮淇濆瓨锛�');
         })
         .catch(error => {
           console.log(error)
@@ -337,7 +349,7 @@
             }
           })
         })
-
+        this.$message.success('鑷姩濉厖鎴愬姛锛岃纭灞炴�у悗鐐瑰嚮淇濆瓨锛�')
       })
     },
     calculateSimilarity(str1, str2) {

--
Gitblit v1.9.3