From 37d730454255d0680c2bc4f1e15dc5cd1a55e6a9 Mon Sep 17 00:00:00 2001 From: ludc Date: 星期三, 30 十月 2024 09:58:36 +0800 Subject: [PATCH] 部门分配成员接口和界面传参修改,枚举修改报错修复提交 --- Source/plt-web/plt-web-ui/src/views/authority/secure/classification/index.vue | 22 +++++++++++++++------- 1 files changed, 15 insertions(+), 7 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..ddebd32 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 @@ -7,7 +7,7 @@ </template> <script> -import {deleteLog, getPeroid, savePeriod} from "@/api/system/log/logBasic"; +import {getSecretGradeConfig, saveSecretGrade} from "@/api/authority/secure/classification"; export default { name: "index", @@ -36,18 +36,26 @@ } }, 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.9.3