YM-WMS-WCS/dist/js/chunk-8ef588e4.2000ef6c.js

1 line
12 KiB
JavaScript
Raw Normal View History

2023-04-21 16:53:32 +08:00
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-8ef588e4","chunk-f088640e"],{1592:function(t,e,a){},"22e1":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("5494"),o=a("12cb"),d=[{prop:"name",label:o["a"].t("dept.name")},{prop:"parentName",label:o["a"].t("dept.parentName")},{prop:"sort",label:o["a"].t("dept.sort")}],c=[{type:"edit",btnName:"编辑"},{type:"delete",btnName:"删除"}],l={mixins:[r["a"]],data:function(){return{urlOptions:{getDataListURL:"/sys/dept/list",deleteURL:"/sys/dept"},tableProps:d,tableBtn:c,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}))}}},u=l,p=a("2877"),f=Object(p["a"])(u,i,n,!1,null,null,null);e["default"]=f.exports},"3d7b":function(t,e,a){"use strict";a("99af"),a("4160"),a("159b");e["a"]={data:function(){return{urlOptions:{submitURL:"",infoURL:"",getOption:!1,optionArrUrl:[],optionArr:{}},visible:!1,setData:!1,isGetCode:!1}},created:function(){},activated:function(){},methods:{init:function(t){var e=this;this.dataForm.id=t||"",this.visible=!0,this.urlOptions.getOption&&this.getArr(),this.$nextTick((function(){e.$refs["dataForm"].resetFields(),e.dataForm.id?e.$http.get("".concat(e.urlOptions.infoURL,"/").concat(e.dataForm.id)).then((function(t){var a=t.data;if(0!==a.code)return e.$message.error(a.msg);e.dataForm=a.data,e.setData&&e.setDataForm()})).catch((function(){})):e.isGetCode&&e.getCode()}))},getArr:function(){var t=this;this.urlOptions.optionArrUrl.forEach((function(e,a){t.$http.get(e,{params:{page:1,limit:500}}).then((function(e){var i=e.data;if(0!==i.code)return t.$message.error(i.msg);t.$set(t.urlOptions.optionArr,"arr".concat(a),i.data.list)})).catch((function(){}))}))},dataFormSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(e){if(!e)return!1;t.$http[t.dataForm.id?"put":"post"](t.urlOptions.submitURL,t.dataForm).then((function(e){var a=e.data;if(0!==a.code)return t.$message.error(a.msg);t.$message({message:t.$t("prompt.success"),type:"success",duration:500,onClose:function(){t.visible=!1,t.$emit("successSubmit")}})})).catch((function(){}))}))},formClear:function(){this.$refs.dataForm.resetFields()}}}},"408c":function(t,e,a){var i=a("2b3e"),n=function(){return i.Date.now()};t.exports=n},5494: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.dataFormSubmit()}}},[a("el-form-item",{attrs:{prop:"name",label:t.$t("dept.name")}},[a("el-input",{attrs:{placeholder:t.$t("dept.name")},model:{value:t.dataForm.name,callback:function(e){t.$set(t.dataForm,"name",e)},exp