From eada8c650d43765a6bf0993af5fb771b8c0b363c Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期四, 29 二月 2024 21:05:16 +0800
Subject: [PATCH] 代码提交

---
 Source/UBCS-WEB/src/views/system/deploy.vue |   12 ++++++++----
 1 files changed, 8 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..04a5186 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"
@@ -53,6 +55,7 @@
 <script>
 import { getApplications,saveOrGetServiceConfInfo,saveOrUpdateServiceInfo,addSave,executeCmd } from "@/api/system/deploy";
 import moment from "moment";
+import {mapGetters} from "vuex";
 export default {
     data() {
         return {
@@ -67,12 +70,13 @@
       
     },
     computed: {
+        ...mapGetters(["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