(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-979b8bd8"],{"5b32":function(t,e,r){},"70a8":function(t,e,r){"use strict";r.r(e);var n=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=[],c=(r("8e6e"),r("ac6a"),r("456d"),r("6762"),r("2fdb"),r("ade3")),o=r("4b38"),a=r("5880");function s(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function u(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?s(Object(r),!0).forEach((function(e){Object(c["a"])(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):s(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}var f={name:"index",data:function(){return{form:{type:[]}}},computed:u(u({},Object(a["mapGetters"])(["permission"])),{},{permissionList:function(){return{saveBtn:this.vaildData(this.permission[this.$route.query.id].save,!1)}},formOption:function(){return{submitBtn:this.permissionList.saveBtn,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(o["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 r=this,n={userSecuritySwith:this.form.type.includes(0),ipSecuritySwith:this.form.type.includes(1)};Object(o["saveSecretGrade"])(n).then((function(t){t.data.success&&r.$message.success("保存成功"),e()})).catch((function(t){e()}))}}},p=f,b=(r("aaf7"),r("2877")),l=Object(b["a"])(p,n,i,!1,null,"169a6b08",null);e["default"]=l.exports},aaf7:function(t,e,r){"use strict";r("5b32")}}]);
|