From 8ef9e366be48dc5e8e52617ea8ed48b37a0e1f74 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 29 二月 2024 14:33:58 +0800
Subject: [PATCH]  在线部署功能上传,标准申请接口bug修改

---
 Source/UBCS-WEB/src/views/system/deploy.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/Source/UBCS-WEB/src/views/system/deploy.vue b/Source/UBCS-WEB/src/views/system/deploy.vue
index cac5509..a3d857c 100644
--- a/Source/UBCS-WEB/src/views/system/deploy.vue
+++ b/Source/UBCS-WEB/src/views/system/deploy.vue
@@ -15,6 +15,7 @@
             @on-load="onLoad">
             <template slot="menu" slot-scope="{ row, index }">
                 <el-button type="text"
+                    :disabled="row.name === 'ubcs-deploy'"
                     icon="el-icon-upload"
                     size="small"
                     v-if="permissionList.upload"
@@ -29,6 +30,7 @@
                     {{ row.status === 'UP' ?  '閲� 鍚�': '鍚� 鍔�' }}
                 </el-button>
                 <el-button type="text"
+                    :disabled="row.name === 'ubcs-deploy'"
                     v-if="permissionList.editBtn"
                     icon="el-icon-edit"
                     size="small"
@@ -67,12 +69,13 @@
       
     },
     computed: {
+        ...mapGetters(["userInfo", "permission"]),
         permissionList() {
             return {
-                upload: true,
-                restart: true,
-                editBtn: true,// this.vaildData(this.permission, true),
-                addBtn: true,
+                upload: this.vaildData(this.permission.deploy.deploy_upload, false),
+                restart: this.vaildData(this.permission.deploy.deploy_restart, false),
+                editBtn: this.vaildData(this.permission.deploy.deploy_edit, false),
+                addBtn: this.vaildData(this.permission.deploy.deploy_add, false),
             };
         },
         option(){

--
Gitblit v1.9.3