From 1b84a05dd84e535284ac6e2d2b360d76a4b8e7ac Mon Sep 17 00:00:00 2001 From: 田源 <tianyuan@vci-tech.com> Date: 星期二, 17 十二月 2024 16:11:30 +0800 Subject: [PATCH] 查询模板&&功能权限模块添加按钮权限 --- Source/plt-web/plt-web-ui/src/views/authority/secure/classification/index.vue | 17 ++++++++++++++--- 1 files changed, 14 insertions(+), 3 deletions(-) diff --git a/Source/plt-web/plt-web-ui/src/views/authority/secure/classification/index.vue b/Source/plt-web/plt-web-ui/src/views/authority/secure/classification/index.vue index 86fe00f..bf9d7e3 100644 --- a/Source/plt-web/plt-web-ui/src/views/authority/secure/classification/index.vue +++ b/Source/plt-web/plt-web-ui/src/views/authority/secure/classification/index.vue @@ -8,6 +8,7 @@ <script> import {getSecretGradeConfig, saveSecretGrade} from "@/api/authority/secure/classification"; +import {mapGetters} from "vuex"; export default { name: "index", @@ -16,8 +17,18 @@ form:{ type:[], }, - formOption:{ - submitBtn: true, + } + }, + computed: { + ...mapGetters(["permission"]), + permissionList() { + return { + saveBtn: this.vaildData(this.permission[this.$route.query.id].save, false), + }; + }, + formOption() { + return { + submitBtn: this.permissionList.saveBtn, submitText:"淇濆瓨", emptyBtn: false, menuPosition:'left', @@ -32,7 +43,7 @@ { label: '鏈哄櫒瀵嗙骇', value: 1 }, ] }] - }, + } } }, created() { -- Gitblit v1.9.3