2 lines
12 KiB
JavaScript
2 lines
12 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-4e877659"],{"038f":function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return"web"===e.value?a("web-menu",[a("el-select",{staticClass:"filter-item",attrs:{placeholder:e.$t("pSelect")},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1):a("app-menu",[a("el-select",{staticClass:"filter-item",attrs:{placeholder:e.$t("pSelect")},model:{value:e.value,callback:function(t){e.value=t},expression:"value"}},e._l(e.options,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1)},n=[],i=a("6221"),s=a("3439"),o={name:"Menu",components:{WebMenu:i["default"],AppMenu:s["default"]},data:function(){return{options:[{value:"web",label:"web菜单管理"},{value:"app",label:"app菜单管理"}],value:"web"}}},r=o,c=a("2877"),u=Object(c["a"])(r,l,n,!1,null,null,null);t["default"]=u.exports},3439:function(e,t,a){"use strict";a.r(t);var l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"app-container"},[a("div",{staticClass:"decorate"}),a("div",{staticClass:"filter-container"},[e._t("default"),a("div",{staticClass:"btn-box"},[a("span",{staticClass:"btn-item long",on:{click:function(t){return e.handleCreate(0)}}},[a("i",{staticClass:"iconfont icon-a-"}),e._v(e._s(e.$t("menu.addToplevel")))]),a("span",{staticClass:"btn-item long",on:{click:function(t){return e.handleCreate(1)}}},[a("i",{staticClass:"iconfont icon-a-"}),e._v(e._s(e.$t("menu.addChild")))])])],2),a("div",{staticClass:"table-container"},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:e.listLoading,expression:"listLoading"}],attrs:{"default-expand-all":!1,data:e.data,"row-key":"permissionId","max-height":"680","header-row-class-name":"table-header","row-class-name":"table-row","highlight-current-row":"","tree-props":{children:"children",hasChildren:"hasChildren"}},on:{"current-change":e.handleCurrentChange}},[a("el-table-column",{attrs:{prop:"permissionName",align:"left",label:e.$t("menu.permissionName")}}),a("el-table-column",{attrs:{label:e.$t("menu.permissionType"),align:"center"},scopedSlots:e._u([{key:"default",fn:function(t){return[0===t.row.permissionType?a("span",[e._v(e._s(e.$t("permissionType.list")))]):e._e(),1===t.row.permissionType?a("span",[e._v(e._s(e.$t("permissionType.menu")))]):e._e(),2===t.row.permissionType?a("span",[e._v(e._s(e.$t("permissionType.button")))]):e._e(),3===t.row.permissionType?a("span",[e._v(e._s(e.$t("permissionType.joggle")))]):e._e()]}}])}),a("el-table-column",{attrs:{prop:"title",align:"left",label:e.$t("menu.permissionNameEn")}}),a("el-table-column",{attrs:{prop:"path",align:"left",label:e.$t("menu.path")}}),a("el-table-column",{attrs:{prop:"component",align:"left",label:e.$t("menu.component")}}),a("el-table-column",{attrs:{prop:"icon",align:"left",label:e.$t("menu.icon"),width:"120"}}),a("el-table-column",{attrs:{prop:"buttonCode",align:"left",label:e.$t("menu.buttonCode")}}),a("el-table-column",{attrs:{prop:"",label:e.$t("menu.alwaysShow"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"btn",class:{red:1!==t.row.alwaysShow}},[e._v(" "+e._s(e._f("showStatusFilter")(t.row.alwaysShow,e.that)))])]}}])}),a("el-table-column",{attrs:{prop:"",label:e.$t("menu.noCache"),align:"center",width:"100"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"btn",class:{red:1!==t.row.noCache}},[e._v(e._s(e._f("cacheStatusFilter")(t.row.noCache,e.that)))])]}}])}),a("el-table-column",{attrs:{align:"center",width:"230",label:e.$t("table.operate")},scopedSlots:e._u([{key:"default",fn:function(t){return[a("span",{staticClass:"btnCancel",attrs:{title:e.$t("table.operate")},on:{click:function(a){return e.handleUpdate(t)}}},[a("i",{staticClass:"iconfont icon-bianji"}),e._v(e._s(e.$t("table.operate")))]),a("span",{staticClass:"btnCancel delete",attrs:{ti
|
||
|
//# sourceMappingURL=chunk-4e877659.8488e3e2.js.map
|