From 9e18636bed4fc3fceec08ca25d6c7916d4d9a429 Mon Sep 17 00:00:00 2001
From: wangting <wangting@vci-tech.com>
Date: 星期三, 25 十二月 2024 17:20:36 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'
---
Source/plt-web/plt-web-ui/src/views/authority/secure/classification/index.vue | 41 ++++++++++++++++++++++++++++++-----------
1 files changed, 30 insertions(+), 11 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 d87b584..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
@@ -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>
@@ -7,7 +7,8 @@
</template>
<script>
-import {deleteLog, getPeroid, savePeriod} from "@/api/system/log/logBasic";
+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,22 +43,30 @@
{ label: '鏈哄櫒瀵嗙骇', value: 1 },
]
}]
- },
+ }
}
},
created() {
- this.getPeroid()
+ this.getSecretGradeConfig()
},
methods:{
- getPeroid:function (){
- getPeroid().then(res => {
- //this.form=res.data.data;
+ getSecretGradeConfig:function (){
+ getSecretGradeConfig().then(res => {
+ if(res.data.obj.userSecuritySwith){
+ this.form.type=[0]
+ }
+ if(res.data.obj.ipSecuritySwith){
+ this.form.type.push(1)
+ }
}).catch(error => {
})
},
saveHandler:function (form,done){
- debugger;
- savePeriod({'type':this.form.type}).then(res => {
+ const params={
+ userSecuritySwith:this.form.type.includes(0),
+ ipSecuritySwith:this.form.type.includes(1)
+ }
+ saveSecretGrade(params).then(res => {
if (res.data.success) {
this.$message.success('淇濆瓨鎴愬姛')
}
--
Gitblit v1.10.0