webpackJsonp([14],{ABBu:function(e,t){},X8hZ:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a("4YfN"),i=a.n(n),s=a("2Hum");var c=a("IcnI"),r=a("iF09"),o={name:"expertPage",data:function(){return{list:[],formData:{}}},mounted:function(){this.getData()},methods:{getData:function(){var e,t=this;(e={},Object(s.a)({url:"/api/team/menu/queryCheckMenuList",method:"POST",data:e})).then(function(e){t.list=e.respData;var a={};t.list.forEach(function(e){a[e.keyName]=e.isCheck}),t.formData=a})},changeHandle:function(e){var t=this,a=i()({},e);a.isCheck=this.formData[e.keyName],function(e){return Object(s.a)({url:"/api/team/menu/updateCheckMenuList",method:"POST",data:e})}(a).then(function(e){201===e.msg?(t.$message.success("修改成功"),c.a.dispatch("LoginByToken",r.a.getLoginInfo())):t.$message.success(e.content)})}}},u={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"main-page"},[e._m(0),e._v(" "),a("div",{staticClass:"main-page-body"},[a("div",{staticClass:"mainContent"},[a("el-form",{ref:"formData",attrs:{model:e.formData,size:"small"}},e._l(e.list,function(t){return a("el-form-item",{key:t.keyName,attrs:{prop:t.keyName,label:"是否展现"+t.menuName}},[a("el-switch",{attrs:{"inactive-text":"是","active-color":"#ff4949","inactive-color":"#13ce66","active-text":"否","active-value":2,"inactive-value":1},on:{change:function(a){return e.changeHandle(t)}},model:{value:e.formData[t.keyName],callback:function(a){e.$set(e.formData,t.keyName,a)},expression:"formData[item.keyName]"}})],1)}),1)],1)])])},staticRenderFns:[function(){var e=this.$createElement,t=this._self._c||e;return t("div",{staticClass:"main-page-header"},[t("p",{staticClass:"title"},[this._v("菜单配置")])])}]};var m=a("C7Lr")(o,u,!1,function(e){a("ABBu")},"data-v-49c18692",null);t.default=m.exports}});
//# sourceMappingURL=14.a9c247ae56bb873a823b.1629880373763.js.map