1 line
11 KiB
JavaScript
1 line
11 KiB
JavaScript
|
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2eddeb0a","chunk-14826fa3"],{"256a":function(t,a,e){"use strict";e.r(a);var i=function(){var t=this,a=t.$createElement,e=t._self._c||a;return e("el-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[e("div",{staticClass:"mod-sys__user"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),e("base-table",{attrs:{"table-props":t.tableProps,page:t.listQuery.page,limit:t.listQuery.limit,"table-data":t.tableData}},[t.tableBtn.length?e("method-btn",{attrs:{slot:"handleBtn",width:80,label:"操作","method-list":t.tableBtn},on:{clickBtn:t.handleClick},slot:"handleBtn"}):t._e()],1),e("pagination",{attrs:{limit:t.listQuery.limit,page:t.listQuery.page,total:t.listQuery.total},on:{"update:limit":function(a){return t.$set(t.listQuery,"limit",a)},"update:page":function(a){return t.$set(t.listQuery,"page",a)},pagination:t.getDataList}}),e("base-dialog",{attrs:{dialogTitle:t.addOrEditTitle,dialogVisible:t.addOrUpdateVisible,"before-close":t.handleCancel},on:{cancel:t.handleCancel,confirm:t.handleConfirm}},[e("add-or-update",{ref:"addOrUpdate",on:{successSubmit:t.successSubmit}})],1)],1)])},r=[],n=e("ed26"),s=e("d874"),o=e("12cb"),d=[{prop:"paramCode",label:o["a"].t("params.paramCode")},{prop:"paramValue",label:o["a"].t("params.paramValue")},{prop:"remark",label:o["a"].t("params.remark")}],l=[{type:"edit",btnName:"编辑"},{type:"delete",btnName:"删除"}],u={mixins:[n["a"]],data:function(){return{urlOptions:{getDataListURL:"/sys/params/page",deleteURL:"/sys/params"},tableProps:d,tableBtn:l,addDeleteURL:!0,formConfig:[{type:"input",label:o["a"].t("params.paramCode"),placeholder:o["a"].t("params.paramCode"),param:"paramCode"},{type:"button",btnName:"查询",name:"search",color:"primary"},{type:"button",btnName:"新增",name:"add",color:"primary",plain:!0}]}},components:{AddOrUpdate:s["default"]},methods:{buttonClick:function(t){switch(t.btnName){case"search":this.listQuery.paramCode=t.paramCode,this.listQuery.page=1,this.getDataList();break;case"add":this.addOrEditTitle="新增",this.addOrUpdateVisible=!0,this.addOrUpdateHandle();break;default:console.log(t)}}}},c=u,m=e("2877"),p=Object(m["a"])(c,i,r,!1,null,null,null);a["default"]=p.exports},"3d7b":function(t,a,e){"use strict";e("99af"),e("4160"),e("159b");a["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 a=this;this.dataForm.id=t||"",this.visible=!0,this.urlOptions.getOption&&this.getArr(),this.$nextTick((function(){a.$refs["dataForm"].resetFields(),a.dataForm.id?a.$http.get("".concat(a.urlOptions.infoURL,"/").concat(a.dataForm.id)).then((function(t){var e=t.data;if(0!==e.code)return a.$message.error(e.msg);a.dataForm=e.data,a.setData&&a.setDataForm()})).catch((function(){})):a.isGetCode&&a.getCode()}))},getArr:function(){var t=this;this.urlOptions.optionArrUrl.forEach((function(a,e){t.$http.get(a,{params:{page:1,limit:500}}).then((function(a){var i=a.data;if(0!==i.code)return t.$message.error(i.msg);t.$set(t.urlOptions.optionArr,"arr".concat(e),i.data.list)})).catch((function(){}))}))},dataFormSubmit:function(){var t=this;this.$refs["dataForm"].validate((function(a){if(!a)return!1;t.$http[t.dataForm.id?"put":"post"](t.urlOptions.submitURL,t.dataForm).then((function(a){var e=a.data;if(0!==e.code)return t.$message.error(e.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,a,e){var i=e("2b3e"),r=function(){return i.Date.now()};t.exports=r},b047c:function(t,a,e){var i=e("1a8c"),r=e("408c"),n=e("b4b0"),s="Expected a function",o=Math.max,d=Math.min;function l(t,a,e){var l,u,c,m,p,f,h=0,b=!1,g=!1,v=!0;if("function"!=typeof t)throw new TypeError(s);function $(a){var e=l,i=u;return l=u=void 0,h=a,m=t.apply(i,e),m}
|