1 line
9.1 KiB
JavaScript
1 line
9.1 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1170153f"],{"305b":function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-form",{ref:"dataForm",attrs:{model:t.dataForm,rules:t.dataRule,"label-width":"120px"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.dataFormSubmitHandle()}}},[a("el-form-item",{attrs:{prop:"type",label:t.$t("menu.type"),size:"mini"}},[a("el-radio-group",{attrs:{disabled:!!t.dataForm.id},model:{value:t.dataForm.type,callback:function(e){t.$set(t.dataForm,"type",e)},expression:"dataForm.type"}},[a("el-radio",{attrs:{label:0}},[t._v(t._s(t.$t("menu.type0")))]),a("el-radio",{attrs:{label:1}},[t._v(t._s(t.$t("menu.type1")))])],1)],1),a("el-form-item",{attrs:{prop:"name",label:t.$t("menu.name")}},[a("el-input",{attrs:{placeholder:t.$t("menu.name")},model:{value:t.dataForm.name,callback:function(e){t.$set(t.dataForm,"name",e)},expression:"dataForm.name"}})],1),a("el-form-item",{staticClass:"menu-list",attrs:{prop:"parentName",label:t.$t("menu.parentName")}},[a("el-popover",{ref:"menuListPopover",attrs:{placement:"bottom-start",trigger:"click"},model:{value:t.menuListVisible,callback:function(e){t.menuListVisible=e},expression:"menuListVisible"}},[a("el-tree",{ref:"menuListTree",attrs:{data:t.menuList,props:{label:"name",children:"children"},"node-key":"id","highlight-current":!0,"expand-on-click-node":!1,accordion:""},on:{"current-change":t.menuListTreeCurrentChangeHandle}})],1),a("el-input",{directives:[{name:"popover",rawName:"v-popover:menuListPopover",arg:"menuListPopover"}],attrs:{readonly:!0,placeholder:t.$t("menu.parentName")},model:{value:t.dataForm.parentName,callback:function(e){t.$set(t.dataForm,"parentName",e)},expression:"dataForm.parentName"}},["0"!==t.dataForm.pid?a("i",{staticClass:"el-icon-circle-close el-input__icon",attrs:{slot:"suffix"},on:{click:function(e){return e.stopPropagation(),t.deptListTreeSetDefaultHandle()}},slot:"suffix"}):t._e()])],1),0===t.dataForm.type?a("el-form-item",{attrs:{prop:"url",label:t.$t("menu.url")}},[a("el-input",{attrs:{placeholder:t.$t("menu.url")},model:{value:t.dataForm.url,callback:function(e){t.$set(t.dataForm,"url",e)},expression:"dataForm.url"}})],1):t._e(),a("el-form-item",{attrs:{prop:"sort",label:t.$t("menu.sort")}},[a("el-input-number",{attrs:{"controls-position":"right",min:0,label:t.$t("menu.sort")},model:{value:t.dataForm.sort,callback:function(e){t.$set(t.dataForm,"sort",e)},expression:"dataForm.sort"}})],1),a("el-form-item",{attrs:{prop:"permissions",label:t.$t("menu.permissions")}},[a("el-input",{attrs:{placeholder:t.$t("menu.permissionsTips")},model:{value:t.dataForm.permissions,callback:function(e){t.$set(t.dataForm,"permissions",e)},expression:"dataForm.permissions"}})],1),0===t.dataForm.type?a("el-form-item",{staticClass:"icon-list",attrs:{prop:"icon",label:t.$t("menu.icon")}},[a("el-popover",{ref:"iconListPopover",attrs:{placement:"bottom-start",trigger:"click","popper-class":"mod-sys__menu-icon-popover"},model:{value:t.iconListVisible,callback:function(e){t.iconListVisible=e},expression:"iconListVisible"}},[a("div",{staticClass:"mod-sys__menu-icon-inner"},[a("div",{staticClass:"mod-sys__menu-icon-list"},t._l(t.iconList,(function(e,i){return a("el-button",{key:i,class:{"is-active":t.dataForm.icon===e},on:{click:function(a){return t.iconListCurrentChangeHandle(e)}}},[a("svg",{staticClass:"icon-svg",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#"+e}})])])})),1)])]),a("el-input",{directives:[{name:"popover",rawName:"v-popover:iconListPopover",arg:"iconListPopover"}],attrs:{readonly:!0,placeholder:t.$t("menu.icon")},model:{value:t.dataForm.icon,callback:function(e){t.$set(t.dataForm,"icon",e)},expression:"dataForm.icon"}})],1):t._e()],1)},n=[],r=(a("b0c0"),a("5530")),o=a("b047c"),s=a.n(o),u=a("ed08"),c=a("3d7b"),m={mixins:[c["a"]],data:function(){return{urlOptions:{submitURL:"/sys/menu/",infoURL:"/sys/menu"},visible:!1,menuList:[],menuListVisible:!1,iconList:[],iconListVisible:!1,dataForm:{id:
|