webpackJsonp([219],{"8zmx":function(e,t){},CT0o:function(e,t,a){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var l=a("woOf"),n=a.n(l),s=a("d7EF"),i=a.n(s),r=a("//Fk"),o=a.n(r),c=a("bzuE"),d={data:function(){return{expandRowsPad:[],expandRowsMobile:[],expandRowsPc:[],returnedItem:"",resolveList:[],show_table:!1,isDisabled:!1,tableData1:[],rulesForm:{name:[{required:!0,message:"请输入菜单名称",trigger:"blur"}],type:[{required:!0,message:"请选择菜单类型",trigger:"change"}],parentId:[{required:!0,message:"请选择上级组织",trigger:"change"}]},total:0,pageSizes:[10,20,50],search_data:{pageno:1,pagesize:10},formData:{},typeList:[{id:0,name:"目录"},{id:1,name:"菜单"},{id:2,name:"按钮"},{id:3,name:"内页"}],menus:[],menus_all:[],btnDelDisabled:!0,btnOtherDisabled:!0,rowIds:[],tableData:[],tableData_all:[],dialogVisible:!1,pictLoading:!1,chooseID:void 0,dialogTitle:"新增菜单",config:c.a,activeName:"first"}},mounted:function(){this.getList(),this.getMenus(),this.show_table=!0},methods:{rowKey:function(e){return e.id},load:function(e,t,a){e.children1&&a(e.children1)},handleExpandChangePad:function(e,t){if(t)-1==this.expandRowsPad.indexOf(e.id.toString())&&this.expandRowsPad.push(e.id.toString());else for(var a=0;a0&&l.getTreeChildren(e.children1,t,a):"pad"==a?l.$set(l.$refs.pad_table.store.states.lazyTreeNodeMap,t,e.children1):"mobile"==a?l.$set(l.$refs.mobile_table.store.states.lazyTreeNodeMap,t,e.children1):"pc"==a&&l.$set(l.$refs.pc_table.store.states.lazyTreeNodeMap,t,e.children1)})},handleClick:function(e,t){if("first"==e.name){this.tableData=this.tableData_all[0];var a=this;this.$nextTick(function(){for(var e=0;e0&&(l.hasChildren=!0),a.push(l)}),a},buildTree:function(e){for(var t={},a=[],l=0;l0?(a=!1,1==e.length&&(t=!1)):(t=!0,a=!0),this.btnDelDisabled=a,this.btnOtherDisabled=t}}},p={render:function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"sys-box knowledge-box"},[a("el-tabs",{staticStyle:{width:"100%","padding-left":"10px","padding-right":"10px","box-sizing":"border-box"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"pc端",name:"first"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add(0)}}},[e._v("新增")])],1),e._v(" "),a("div",{staticClass:"sys-search"}),e._v(" "),a("div",{staticClass:"sys-table"},[e.show_table?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],ref:"pc_table",attrs:{"expand-row-keys":e.expandRowsPc,data:e.tableData,"row-key":"id",border:"",lazy:"",load:e.load,"tree-props":{hasChildren:"hasChildren"},"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"expand-change":e.handleExpandChangePc,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"orderNumber",label:"排序号",width:"100",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"text",label:"名称",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"typeName",align:"center",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["目录"==t.row.typeName?a("el-tag",{attrs:{type:"primary","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e(),e._v(" "),"菜单"==t.row.typeName?a("el-tag",{attrs:{type:"success","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e(),e._v(" "),"按钮"==t.row.typeName?a("el-tag",{attrs:{type:"info","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e(),e._v(" "),"内页"==t.row.typeName?a("el-tag",{attrs:{type:"info","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e()]}}],null,!1,510158458)}),e._v(" "),a("el-table-column",{attrs:{prop:"routePath",align:"center",label:"路由","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"perms",align:"center",label:"权限标识","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",align:"center",label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.addSub(t.row,0)}}},[e._v("增加子菜单")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.openDetails(t.row,0)}}},[e._v("编辑")])]}}],null,!1,90360515)})],1):e._e()],1)]),e._v(" "),a("el-tab-pane",{attrs:{label:"手机端",name:"second"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add(1)}}},[e._v("新增")])],1),e._v(" "),a("div",{staticClass:"sys-search"}),e._v(" "),a("div",{staticClass:"sys-table"},[e.show_table?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],ref:"mobile_table",attrs:{"expand-row-keys":e.expandRowsMobile,data:e.tableData,"row-key":"id",border:"",lazy:"",load:e.load,"tree-props":{hasChildren:"hasChildren"},"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"expand-change":e.handleExpandChangeMobile,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"orderNumber",label:"排序号",width:"100",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"text",label:"名称",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"typeName",align:"center",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["目录"==t.row.typeName?a("el-tag",{attrs:{type:"primary","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e(),e._v(" "),"菜单"==t.row.typeName?a("el-tag",{attrs:{type:"success","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e(),e._v(" "),"按钮"==t.row.typeName?a("el-tag",{attrs:{type:"info","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e(),e._v(" "),"内页"==t.row.typeName?a("el-tag",{attrs:{type:"info","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e()]}}],null,!1,510158458)}),e._v(" "),a("el-table-column",{attrs:{prop:"routePath",align:"center",label:"路由","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"perms",align:"center",label:"权限标识","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",align:"center",label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.addSub(t.row,1)}}},[e._v("增加子菜单")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.openDetails(t.row,1)}}},[e._v("编辑")])]}}],null,!1,2495195683)})],1):e._e()],1)]),e._v(" "),a("el-tab-pane",{attrs:{label:"平板端",name:"three"}},[a("div",{staticClass:"sys-operate"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.add(2)}}},[e._v("新增")])],1),e._v(" "),a("div",{staticClass:"sys-search"}),e._v(" "),a("div",{staticClass:"sys-table"},[e.show_table?a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.pictLoading,expression:"pictLoading"}],ref:"pad_table",attrs:{"expand-row-keys":e.expandRowsPad,data:e.tableData,"row-key":e.rowKey,border:"",lazy:"",load:e.load,"tree-props":{hasChildren:"hasChildren"},"header-cell-style":{fontWeight:"normal",textAlign:"center",backgroundColor:"#eceff4",color:"#222"}},on:{"expand-change":e.handleExpandChangePad,"selection-change":e.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",width:"55",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"orderNumber",label:"排序号",width:"100",align:"center"}}),e._v(" "),a("el-table-column",{attrs:{prop:"text",label:"名称",align:"center","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"typeName",align:"center",label:"类型","show-overflow-tooltip":""},scopedSlots:e._u([{key:"default",fn:function(t){return["目录"==t.row.typeName?a("el-tag",{attrs:{type:"primary","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e(),e._v(" "),"菜单"==t.row.typeName?a("el-tag",{attrs:{type:"success","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e(),e._v(" "),"按钮"==t.row.typeName?a("el-tag",{attrs:{type:"info","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e(),e._v(" "),"内页"==t.row.typeName?a("el-tag",{attrs:{type:"info","disable-transitions":""}},[e._v(e._s(t.row.typeName)+"\n ")]):e._e()]}}],null,!1,510158458)}),e._v(" "),a("el-table-column",{attrs:{prop:"routePath",align:"center",label:"路由","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"perms",align:"center",label:"权限标识","show-overflow-tooltip":""}}),e._v(" "),a("el-table-column",{attrs:{prop:"",align:"center",label:"操作",width:"200"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.addSub(t.row,2)}}},[e._v("增加子菜单")]),e._v(" "),a("el-button",{attrs:{type:"primary",size:"small"},on:{click:function(a){return e.openDetails(t.row,2)}}},[e._v("编辑")])]}}],null,!1,2230101123)})],1):e._e()],1)])],1),e._v(" "),a("el-dialog",{attrs:{title:e.dialogTitle,center:"",visible:e.dialogVisible,width:"600px"},on:{"update:visible":function(t){e.dialogVisible=t}}},[a("el-form",{ref:"form",staticClass:"company-form",attrs:{"label-width":"80px",model:e.formData,rules:e.rulesForm}},[a("el-form-item",{attrs:{label:"上级菜单"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{placeholder:"请选择",filterable:""},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.formData.parentId,callback:function(t){e.$set(e.formData,"parentId",t)},expression:"formData.parentId"}},e._l(e.menus,function(e){return a("el-option",{key:e.menuId,attrs:{label:e.name,value:e.menuId}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{label:"菜单类型"}},[a("el-select",{staticStyle:{width:"100%"},attrs:{prop:"type",placeholder:"请选择"},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.formData.type,callback:function(t){e.$set(e.formData,"type",t)},expression:"formData.type"}},e._l(e.typeList,function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})}),1)],1),e._v(" "),a("el-form-item",{attrs:{prop:"name",label:"菜单名称"}},[a("el-input",{attrs:{placeholder:"请输入菜单名称"},model:{value:e.formData.name,callback:function(t){e.$set(e.formData,"name",t)},expression:"formData.name"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"url",label:"链接地址"}},[a("el-input",{attrs:{placeholder:"请输入链接地址"},model:{value:e.formData.url,callback:function(t){e.$set(e.formData,"url",t)},expression:"formData.url"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"routePath",label:"路由地址"}},[a("el-input",{attrs:{placeholder:"请输入路由地址"},model:{value:e.formData.routePath,callback:function(t){e.$set(e.formData,"routePath",t)},expression:"formData.routePath"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"routePath",label:"图标url"}},[a("el-input",{attrs:{placeholder:"请输入图标地址(图片url)"},model:{value:e.formData.iconUrl,callback:function(t){e.$set(e.formData,"iconUrl",t)},expression:"formData.iconUrl"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"routePath",label:"图标class"}},[a("el-input",{attrs:{placeholder:"请输入图标地址(class名)"},model:{value:e.formData.icon,callback:function(t){e.$set(e.formData,"icon",t)},expression:"formData.icon"}})],1),e._v(" "),a("el-form-item",{attrs:{prop:"perms",label:"权限标识"}},[a("el-input",{attrs:{placeholder:"请输入权限标识"},model:{value:e.formData.perms,callback:function(t){e.$set(e.formData,"perms",t)},expression:"formData.perms"}})],1),e._v(" "),a("el-form-item",{attrs:{label:"排序号"}},[a("el-input",{attrs:{placeholder:"请输入排序号"},model:{value:e.formData.orderNum,callback:function(t){e.$set(e.formData,"orderNum",t)},expression:"formData.orderNum"}})],1)],1),e._v(" "),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.dialogVisible=!1}}},[e._v(e._s(e.config.cancelText))]),e._v(" "),a("el-button",{attrs:{type:"primary",disabled:e.isDisabled},on:{click:function(t){return e.save("form")}}},[e._v("保存")])],1)],1)],1)},staticRenderFns:[]};var u=a("VU/8")(d,p,!1,function(e){a("8zmx"),a("UQGJ")},"data-v-3a9bfb5c",null);t.default=u.exports},UQGJ:function(e,t){}});