From 5677cf19400eca6985fb9cd5d501b35691cdf193 Mon Sep 17 00:00:00 2001
From: ludc
Date: 星期日, 10 三月 2024 20:18:04 +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.10.0