1 line
15 KiB
JavaScript
1 line
15 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-38a3fd8e"],{"009a":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{margin:"20px"}},[a("div",{staticStyle:{margin:"20px"}},[a("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.addOrUpdateHandle()}}},[t._v(t._s(t._f("i18nFilter")("btn.add")))])],1),t._v(" "),a("el-table",{staticStyle:{width:"100%"},attrs:{data:t.menuList,"header-cell-style":{background:"#eef1f6",color:"#606266",height:"56px"},stripe:!0,"highlight-current-row":"","row-key":"id",border:""}},[a("el-table-column",{attrs:{prop:"name","header-align":"center",align:"left",width:"200px",label:t.$t("menuManage.menuName")}}),t._v(" "),a("el-table-column",{attrs:{prop:"code","header-align":"center",align:"center",label:t.$t("menuManage.menuCode")}}),t._v(" "),a("el-table-column",{attrs:{prop:"enName","header-align":"center",align:"center",label:t.$t("menuManage.enName")}}),t._v(" "),a("el-table-column",{attrs:{prop:"category","header-align":"center",align:"center",label:t.$t("menuManage.menuClassify")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("commonFilter")(e.row.category,t.basicData("roleType")))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"type","header-align":"center",align:"center",label:t.$t("menuManage.type")},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v("\n "+t._s(t._f("commonFilter")(e.row.type,t.basicData("menuType")))+"\n ")]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"parentName","header-align":"center",align:"center",label:t.$t("menuManage.parentName")}}),t._v(" "),a("el-table-column",{attrs:{prop:"sortNo","header-align":"center",align:"center",label:t.$t("menuManage.sortNumber")}}),t._v(" "),a("el-table-column",{attrs:{prop:"icon","header-align":"center",align:"center",label:t.$t("menuManage.icon")},scopedSlots:t._u([{key:"default",fn:function(t){return[a("svg-icon",{attrs:{"icon-class":t.row.icon||""}})]}}])}),t._v(" "),a("el-table-column",{attrs:{prop:"href","header-align":"center",align:"center","show-overflow-tooltip":!0,label:t.$t("menuManage.menuURL")}}),t._v(" "),a("el-table-column",{attrs:{fixed:"right","header-align":"center",align:"center",label:t._f("i18nFilter")("tableHeader.operation")},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.addOrUpdateHandle(e.row.id)}}},[t._v(t._s(t._f("i18nFilter")("btn.edit")))]),t._v(" "),a("span",{staticStyle:{margin:"0 3px"}},[t._v("|")]),t._v(" "),a("el-button",{attrs:{type:"text",size:"small"},on:{click:function(a){return t.deleteHandle(e.row)}}},[t._v(t._s(t._f("i18nFilter")("btn.delete")))])]}}])})],1),t._v(" "),t.addOrUpdateVisible?a("add-or-update",{ref:"addOrUpdate",on:{refreshDataList:t.getDataList}}):t._e()],1)},r=[],i=(a("7f7f"),a("96cf"),a("1da1")),o=a("6b47"),s=a.n(o),l=a("3393"),c=a.n(l),u=a("a3e3"),d=a.n(u),m=a("4573"),p=a.n(m),f=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t._f("i18nFilter")(t.dataForm.id?"btn.edit":"btn.add"),"close-on-click-modal":!1,visible:t.visible},on:{"update:visible":function(e){t.visible=e}}},[a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"80px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmit()}}},[a("el-form-item",{attrs:{label:t.$t("menuManage.type"),prop:"type"}},[a("el-radio-group",{model:{value:t.dataForm.type,callback:function(e){t.$set(t.dataForm,"type",e)},expression:"dataForm.type"}},t._l(t.typeList,(function(e,n){return a("el-radio",{key:n,attrs:{label:n}},[t._v(t._s(e))])})),1)],1),t._v(" "),a("el-form-item",{attrs:{label:t.typeList[t.dataForm.type]+t.$t("menuManage.name"),prop:"name"}},[a("el-input",{attrs:{placeholder:t.typeList[t.dataForm.type]+t.$t("menuManage.name")},model:{value:t.dataForm.name,callback:function(e){t.$set(t.dataForm,"name",e)},expression:"data
|