YM-WMS-WCS/dist/js/chunk-a269dc70.381664f9.js
2023-04-21 16:53:32 +08:00

1 line
5.8 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-a269dc70"],{"8c57":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__user"},[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}}),a("pagination",{attrs:{limit:t.listQuery.limit,page:t.listQuery.page,total:t.listQuery.total},on:{"update:limit":function(e){return t.$set(t.listQuery,"limit",e)},"update:page":function(e){return t.$set(t.listQuery,"page",e)},pagination:t.getDataList}})],1)])},s=[],n=a("ed26"),o=a("12cb"),r=a("fc23"),l=[{prop:"creatorName",label:o["a"].t("logLogin.creatorName")},{prop:"operation",label:o["a"].t("logLogin.operation"),filter:Object(r["a"])("logOperation")},{prop:"status",label:o["a"].t("logLogin.status"),filter:Object(r["a"])("logStatus")},{prop:"ip",label:o["a"].t("logLogin.ip")},{prop:"userAgent",label:o["a"].t("logLogin.userAgent")},{prop:"createDate",label:o["a"].t("logLogin.createDate")}],d={mixins:[n["a"]],data:function(){return{urlOptions:{getDataListURL:"/sys/log/login/page",deleteURL:"/sys/log/login",exportUrl:"/sys/log/login/export"},tableProps:l,formConfig:[{type:"input",label:o["a"].t("logLogin.creatorName"),placeholder:o["a"].t("logLogin.creatorName"),param:"creatorName"},{type:"select",label:"状态",selectOptions:[{id:"0",name:o["a"].t("logLogin.status0")},{id:"1",name:o["a"].t("logLogin.status1")},{id:"2",name:o["a"].t("logLogin.status2")}],param:"status",defaultSelect:"",onchange:!0,width:200},{type:"button",btnName:"查询",name:"search",color:"primary"}]}},components:{},methods:{buttonClick:function(t){switch(t.btnName){case"search":this.listQuery.creatorName=t.creatorName,this.listQuery.status=t.status,this.listQuery.page=1,this.getDataList();break;case"add":this.addOrEditTitle="新增",this.addOrUpdateVisible=!0,this.addOrUpdateHandle();break;default:console.log(t)}}}},u=d,c=a("2877"),p=Object(c["a"])(u,i,s,!1,null,null,null);e["default"]=p.exports},ed26:function(t,e,a){"use strict";a("d3b7"),a("3ca3"),a("ddb0"),a("2b3d");e["a"]={data:function(){return{urlOptions:{getDataListURL:"",deleteURL:"",statusUrl:"",exportUrl:""},addOrEditTitle:"",tableData:[],listQuery:{limit:10,page:1,total:1},addDeleteURL:!1,dataListLoading:!1,addOrUpdateVisible:!1}},created:function(){},activated:function(){this.getDataList()},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.list,t.listQuery.total=a.data.total})).catch((function(){t.dataListLoading=!1}))},sizeChangeHandle:function(t){this.listQuery.limit=t,this.listQuery.page=1,this.getDataList()},currentChangeHandle:function(t){this.listQuery.page=t,this.getDataList()},addOrUpdateHandle:function(t){var e=this;this.addOrUpdateVisible=!0,this.$nextTick((function(){e.$refs.addOrUpdate.init(t)}))},cancel:function(t){this.$refs["popover-"+t].showPopper=!1},changeStatus:function(t){var e=this;this.$http.post(this.urlOptions.statusUrl,{id:t}).then((function(a){var i=a.data;if(0!==i.code)return e.$message.error(i.msg);e.$refs["popover-"+t].showPopper=!1,e.$message({message:e.$t("prompt.success"),type:"success",duration:500,onClose:function(){e.getDataList()}})})).catch((function(){}))},handleClick:function(t){var e=this;"edit"===t.type?(this.addOrUpdateVisible=!0,this.addOrEditTitle="编辑",this.$nextTick((function(){e.$refs.addOrUpdate.init(t.data.id)}))):"delete"===t.type?this.deleteHandle(t.data.id,t.data._pageIndex):this.btnFun(t)},deleteHandle:function(t,e){var a=this;this.$confirm("确定对[序号=".concat(e,"]进行删除操作?"),"提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){a.$http.delete(a.urlOptions.deleteURL+(a.addDeleteURL?"/"+t:""),{data:[t]}).then((function(t){var e=t.data;e&&0===e.code?a.$message({message:"操作成功",type:"success",duration:1500,onClose:function(){a.getDataList()}}):a.$message.error(e.msg)}))})).catch((function(){}))},buttonClick:function(t){switch(t.btnName){case"search":this.listQuery.xm1=t.xm1,this.listQuery.xm2=t.xm2,this.listQuery.page=1,this.getDataList();break;case"add":this.addOrEditTitle="新增",this.addOrUpdateVisible=!0,this.addOrUpdateHandle();break;default:console.log(t)}},handleCancel:function(){this.$refs.addOrUpdate.formClear(),this.addOrUpdateVisible=!1,this.addOrEditTitle=""},handleConfirm:function(){this.$refs.addOrUpdate.dataFormSubmit()},successSubmit:function(){this.handleCancel(),this.getDataList()},exportHandle:function(t){this.$http.get(this.urlOptions.exportUrl,{responseType:"blob"}).then((function(e){var a=e.data,i=new Date,s=i.getFullYear(),n=i.getMonth()+1,o=i.getDate();n>=1&&n<=9&&(n="0"+n),o>=0&&o<=9&&(o="0"+o);var r=s+"-"+n+"-"+o,l=new Blob([a]),d=document.createElement("a"),u=window.URL.createObjectURL(l);d.href=u,d.download="".concat(t+r,".xls"),document.body.appendChild(d),d.click(),document.body.removeChild(d),window.URL.revokeObjectURL(u)})).catch((function(){}))}}}},fc23:function(t,e,a){"use strict";var i=a("12cb"),s={sex:{0:"男",1:"女"},userStatus:{0:i["a"].t("user.status0"),1:i["a"].t("user.status1")},menuType:{0:i["a"].t("menu.type0"),1:i["a"].t("menu.type1")},logOperation:{0:i["a"].t("logLogin.operation0"),1:i["a"].t("logLogin.operation1")},logStatus:{0:i["a"].t("logLogin.status0"),1:i["a"].t("logLogin.status1")},scheduleStatus:{0:i["a"].t("schedule.status0"),1:i["a"].t("schedule.status1")}};e["a"]=function(t){return function(e){var a;return null===s||void 0===s||null===(a=s[t])||void 0===a?void 0:a[e]}}}}]);