(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2fbaece3"],{1725:function(t,e,n){},"1af5":function(t,e,n){"use strict";n("1725")},"70a8":function(t,e,n){"use strict";n.r(e);var c=function(){var t=this,e=t._self._c;return e("el-container",[e("basic-container",{staticStyle:{height:"calc(100vh - 118px)",width:"100%"}},[e("avue-form",{ref:"form",attrs:{option:t.formOption},on:{submit:t.saveHandler},model:{value:t.form,callback:function(e){t.form=e},expression:"form"}})],1)],1)},i=[],a=(n("6762"),n("2fdb"),n("4b38")),o={name:"index",data:function(){return{form:{type:[]},formOption:{submitBtn:!0,submitText:"保存",emptyBtn:!1,menuPosition:"left",column:[{label:"用户\\机器密级停启用配置",labelWidth:185,prop:"type",span:24,type:"checkbox",dicData:[{label:"用户密级",value:0},{label:"机器密级",value:1}]}]}}},created:function(){this.getSecretGradeConfig()},methods:{getSecretGradeConfig:function(){var t=this;Object(a["getSecretGradeConfig"])().then((function(e){e.data.obj.userSecuritySwith&&(t.form.type=[0]),e.data.obj.ipSecuritySwith&&t.form.type.push(1)})).catch((function(t){}))},saveHandler:function(t,e){var n=this,c={userSecuritySwith:this.form.type.includes(0),ipSecuritySwith:this.form.type.includes(1)};Object(a["saveSecretGrade"])(c).then((function(t){t.data.success&&n.$message.success("保存成功"),e()})).catch((function(t){e()}))}}},r=o,s=(n("1af5"),n("2877")),u=Object(s["a"])(r,c,i,!1,null,"76377cbc",null);e["default"]=u.exports}}]);
|