From f49622515192a11878628b8eecbc7315671ae562 Mon Sep 17 00:00:00 2001
From: yuxc <yuxc@vci-tech.com>
Date: 星期四, 09 一月 2025 15:25:25 +0800
Subject: [PATCH] 在获取相关业务类型下的属性时,未在属性中定义的数据直接跳过
---
Source/plt-web/plt-web-ui/src/views/authority/secure/classification/index.vue | 19 +++++++++++++++----
1 files changed, 15 insertions(+), 4 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 ddebd32..0e133e6 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
@@ -1,4 +1,4 @@
-<template>
+ <template>
<el-container>
<basic-container style="height: calc(100vh - 118px);width: 100%;">
<avue-form ref="form" v-model="form" :option="formOption" @submit="saveHandler"></avue-form>
@@ -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.10.0