You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

1 line
12 KiB

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-d1b16d38"],{2516:function(e,t,a){"use strict";a.d(t,"d",(function(){return i})),a.d(t,"f",(function(){return r})),a.d(t,"g",(function(){return s})),a.d(t,"b",(function(){return l})),a.d(t,"c",(function(){return c})),a.d(t,"e",(function(){return u})),a.d(t,"a",(function(){return d}));var n=a("b775"),o=(a("4328"),window.sessionStorage.getItem("token"));function i(e){return Object(n["a"])({url:"/portal/v1/sysfunction/listAllVoForSource",method:"POST",data:e,headers:{"Content-Type":"application/json",token:o}})}function r(e){return Object(n["a"])({url:"/portal/v1/sysfunction/save",method:"POST",data:e,headers:{"Content-Type":"application/json",token:o}})}function s(e){return Object(n["a"])({url:"/portal/v1/syssource/listAll",method:"POST",data:e,headers:{"Content-Type":"application/json",token:o}})}function l(e){return Object(n["a"])({url:"/portal/v1/sysfunction/delBySids/"+e.sid,method:"get",data:e,headers:{"Content-Type":"application/json",token:o}})}function c(e){return Object(n["a"])({url:"/portal/v1/sysfunction/fetchBySid/"+e.id,method:"get",data:e,headers:{"Content-Type":"application/json",token:o}})}function u(e){return Object(n["a"])({url:"/portal/v1/sysfunction/update/"+e.sid,method:"POST",data:e,headers:{"Content-Type":"application/json",token:o}})}function d(e){return Object(n["a"])({url:"/portal/v1/sysfunction/updateIsEnable/"+e.sid+"/"+e.isEnable,method:"POST",data:e,headers:{"Content-Type":"application/json",token:o}})}},"4c3c":function(e,t,a){},"4fe7":function(e,t,a){},5523:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-tabs",{staticClass:"my-tabs",attrs:{type:"card"},on:{"tab-click":e.handleClick},model:{value:e.activeName,callback:function(t){e.activeName=t},expression:"activeName"}},[a("el-tab-pane",{attrs:{label:"菜单列表",name:"roleList"}},[a("div",{staticClass:"content"},[a("div",{staticClass:"table-describe clearfix"},[a("h4",{staticStyle:{color:"#000"}},[e._v("菜单列表")])]),a("el-table",{ref:"multipleTable",staticStyle:{width:"100%"},attrs:{data:e.tableData,border:"","row-key":"sid","tree-props":{children:"children",hasChildren:"hasChildren"}}},[a("el-table-column",{attrs:{prop:"name",label:"菜单名称",width:"220"}}),a("el-table-column",{attrs:{label:"操作",width:"260",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.add(t.row)}}},[e._v(" 添加子菜单 ")]),"0"==t.row.isSource?a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(a){return e.editRow(t.row)}}},[e._v(" 修改 ")]):e._e(),"0"==t.row.isSource?a("el-button",{attrs:{type:"danger",size:"mini"},nativeOn:{click:function(a){return a.preventDefault(),e.deleteRow(t.row)}}},[e._v(" 删除 ")]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"pageUrl",label:"链接地址",align:"center"}}),a("el-table-column",{attrs:{prop:"isEnable",label:"可见性",align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-switch",{attrs:{"active-color":"#13ce66","inactive-color":"#ff4949","active-value":"1","inactive-value":"0"},on:{change:function(a){return e.enabledChange(t.row.isEnable,t.row)}},model:{value:t.row.isEnable,callback:function(a){e.$set(t.row,"isEnable",a)},expression:"scope.row.isEnable"}})]}}])})],1)],1),a("el-dialog",{attrs:{title:e.dialogTitle+"功能信息",visible:e.editDialog,width:"40%"},on:{"update:visible":function(t){e.editDialog=t}}},[a("table",{staticClass:"e-table",attrs:{cellspacing:"0"}},[a("tr",[a("td",[e._v("上级菜单")]),a("td",[a("el-input",{staticStyle:{width:"300px"},attrs:{disabled:!0},model:{value:e.form.pname,callback:function(t){e.$set(e.form,"pname",t)},expression:"form.pname"}})],1)]),a("tr",[a("td",[e._v("资源名称")]),a("td",[a("el-select",{attrs:{disabled:e.isadd},on:{change:function(t){return e.$forceUpdate()}},model:{value:e.form.sourceSid,callback:function(t){e.$set(e.form,"sourceSid",t)},expression:"form.sourceSid"}},e._l(e.sourc