YM-WMS-WCS/dist/js/chunk-e9d2ba92.cf762ab6.js

1 line
15 KiB
JavaScript
Raw Normal View History

2023-04-21 16:53:32 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-e9d2ba92","chunk-1170153f"],{"1edd":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-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[a("div",{staticClass:"mod-sys__dept"},[a("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),a("base-table",{attrs:{"table-props":t.tableProps,page:t.listQuery.page,limit:t.listQuery.limit,"table-data":t.tableData,"row-key":"id","tree-props":{children:"children",hasChildren:"hasChildren"}}},[t.tableBtn.length?a("method-btn",{attrs:{slot:"handleBtn",width:80,label:"操作","method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"}):t._e()],1),a("base-dialog",{attrs:{dialogTitle:t.addOrEditTitle,dialogVisible:t.addOrUpdateVisible,"before-close":t.handleCancel},on:{cancel:t.handleCancel,confirm:t.handleConfirm}},[a("add-or-update",{ref:"addOrUpdate",on:{successSubmit:t.successSubmit}})],1)],1)])},n=[],r=a("ed26"),s=a("305b"),o=a("12cb"),l=a("fc23"),d=[{prop:"name",label:o["a"].t("menu.name")},{prop:"icon",label:o["a"].t("menu.icon")},{prop:"type",label:o["a"].t("menu.type"),filter:Object(l["a"])("menuType")},{prop:"sort",label:o["a"].t("menu.sort")},{prop:"url",label:o["a"].t("menu.url")},{prop:"permissions",label:o["a"].t("menu.permissions")}],u=[{type:"edit",btnName:"编辑"},{type:"delete",btnName:"删除"}],c={mixins:[r["a"]],data:function(){return{urlOptions:{getDataListURL:"/sys/menu/list",deleteURL:"/sys/menu"},tableProps:d,tableBtn:u,addDeleteURL:!0,formConfig:[{type:"button",btnName:"新增",name:"add",color:"primary",plain:!0}]}},components:{AddOrUpdate:s["default"]},methods:{getDataList:function(){var t=this;this.dataListLoading=!0,this.$http.get(this.urlOptions.getDataListURL,{params:this.listQuery}).then((function(e){var a=e.data;if(t.dataListLoading=!1,0!==a.code)return t.tableData=[],t.listQuery.total=0,t.$message.error(a.msg);t.tableData=a.data,t.listQuery.total=a.data.total})).catch((function(){t.dataListLoading=!1}))}}},m=c,p=a("2877"),f=Object(p["a"])(m,i,n,!1,null,null,null);e["default"]=f.exports},"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.dep