This commit is contained in:
朱文强 2023-04-21 16:53:32 +08:00
parent 6cb6bfd65c
commit 5b2bba6a78
58 changed files with 420 additions and 288 deletions

71
dist/index.html vendored
View File

@ -1,10 +1,3 @@
<!--
* @Author: zwq
* @Date: 2023-04-14 15:56:14
* @LastEditors: zwq
* @LastEditTime: 2023-04-17 11:02:09
* @Description:
-->
<!DOCTYPE html> <!DOCTYPE html>
<html> <html>
@ -36,66 +29,66 @@
<link href=css/chunk-1170153f.5eb363cb.css rel=prefetch> <link href=css/chunk-1170153f.5eb363cb.css rel=prefetch>
<link href=css/chunk-29123a65.1dd6932c.css rel=prefetch> <link href=css/chunk-29123a65.1dd6932c.css rel=prefetch>
<link href=css/chunk-48ba882a.4926aee4.css rel=prefetch> <link href=css/chunk-48ba882a.4926aee4.css rel=prefetch>
<link href=css/chunk-58875ae8.4926aee4.css rel=prefetch>
<link href=css/chunk-76c3d685.ea07d6b9.css rel=prefetch> <link href=css/chunk-76c3d685.ea07d6b9.css rel=prefetch>
<link href=css/chunk-79cfc12e.febf9065.css rel=prefetch> <link href=css/chunk-8ef588e4.febf9065.css rel=prefetch>
<link href=css/chunk-9b0ca826.5eb363cb.css rel=prefetch> <link href=css/chunk-e9d2ba92.5eb363cb.css rel=prefetch>
<link href=css/chunk-b54fdb7c.4926aee4.css rel=prefetch>
<link href=css/chunk-f088640e.febf9065.css rel=prefetch> <link href=css/chunk-f088640e.febf9065.css rel=prefetch>
<link href=js/chunk-0208ac81.47361044.js rel=prefetch>
<link href=js/chunk-033617f4.9c7fa2c1.js rel=prefetch> <link href=js/chunk-033617f4.9c7fa2c1.js rel=prefetch>
<link href=js/chunk-08b006d8.fc18fa0a.js rel=prefetch>
<link href=js/chunk-0c531809.0bd626df.js rel=prefetch> <link href=js/chunk-0c531809.0bd626df.js rel=prefetch>
<link href=js/chunk-1161c3c4.517d7539.js rel=prefetch>
<link href=js/chunk-1170153f.e19c562c.js rel=prefetch> <link href=js/chunk-1170153f.e19c562c.js rel=prefetch>
<link href=js/chunk-12d9958a.2c7b5f67.js rel=prefetch>
<link href=js/chunk-14826fa3.c7d64fb0.js rel=prefetch> <link href=js/chunk-14826fa3.c7d64fb0.js rel=prefetch>
<link href=js/chunk-14dfb0d6.10711882.js rel=prefetch>
<link href=js/chunk-16ac8ede.7f6a231e.js rel=prefetch> <link href=js/chunk-16ac8ede.7f6a231e.js rel=prefetch>
<link href=js/chunk-1906b817.569db105.js rel=prefetch> <link href=js/chunk-18360c16.c612f88d.js rel=prefetch>
<link href=js/chunk-197acb3c.9a073b4b.js rel=prefetch> <link href=js/chunk-197acb3c.9a073b4b.js rel=prefetch>
<link href=js/chunk-1a308918.bd156efe.js rel=prefetch>
<link href=js/chunk-2505857e.37424f40.js rel=prefetch> <link href=js/chunk-2505857e.37424f40.js rel=prefetch>
<link href=js/chunk-25362e2c.fd7d6bfe.js rel=prefetch>
<link href=js/chunk-29123a65.76c27926.js rel=prefetch> <link href=js/chunk-29123a65.76c27926.js rel=prefetch>
<link href=js/chunk-29a88fcd.3556225b.js rel=prefetch>
<link href=js/chunk-2a99da18.7100c0bb.js rel=prefetch> <link href=js/chunk-2a99da18.7100c0bb.js rel=prefetch>
<link href=js/chunk-2bec94fe.ad1c416e.js rel=prefetch>
<link href=js/chunk-2d0a3858.bd583605.js rel=prefetch> <link href=js/chunk-2d0a3858.bd583605.js rel=prefetch>
<link href=js/chunk-2d0d6021.2b459621.js rel=prefetch>
<link href=js/chunk-2d0e5f4f.b17367ed.js rel=prefetch> <link href=js/chunk-2d0e5f4f.b17367ed.js rel=prefetch>
<link href=js/chunk-2d22491e.8710d9dd.js rel=prefetch> <link href=js/chunk-2d22491e.8710d9dd.js rel=prefetch>
<link href=js/chunk-2d22d73a.80cc485d.js rel=prefetch> <link href=js/chunk-2d22d73a.80cc485d.js rel=prefetch>
<link href=js/chunk-2d22d77b.a8ae5c16.js rel=prefetch> <link href=js/chunk-2d22d77b.a8ae5c16.js rel=prefetch>
<link href=js/chunk-2d312cce.22bf6f2b.js rel=prefetch> <link href=js/chunk-2eddeb0a.f1732d2b.js rel=prefetch>
<link href=js/chunk-31c1800a.f50a3692.js rel=prefetch> <link href=js/chunk-31c1800a.f50a3692.js rel=prefetch>
<link href=js/chunk-3303ce4b.8398249e.js rel=prefetch> <link href=js/chunk-39000622.3b870aef.js rel=prefetch>
<link href=js/chunk-370d1544.c60ea972.js rel=prefetch> <link href=js/chunk-3d2a27ce.6be57c75.js rel=prefetch>
<link href=js/chunk-3abba25d.a651226d.js rel=prefetch> <link href=js/chunk-42928897.2c15d60f.js rel=prefetch>
<link href=js/chunk-3fad1336.2af14073.js rel=prefetch>
<link href=js/chunk-41554618.d56cde64.js rel=prefetch>
<link href=js/chunk-443f0802.a62b7b18.js rel=prefetch>
<link href=js/chunk-48ba882a.133b2a10.js rel=prefetch> <link href=js/chunk-48ba882a.133b2a10.js rel=prefetch>
<link href=js/chunk-4eb0b0b6.5901073a.js rel=prefetch> <link href=js/chunk-4bf95564.22c98f95.js rel=prefetch>
<link href=js/chunk-4ed66fc2.1966bd53.js rel=prefetch> <link href=js/chunk-52169e8c.853a9203.js rel=prefetch>
<link href=js/chunk-52a534b1.40d90d4d.js rel=prefetch>
<link href=js/chunk-551bd403.75e37ff8.js rel=prefetch> <link href=js/chunk-551bd403.75e37ff8.js rel=prefetch>
<link href=js/chunk-58875ae8.995a5b92.js rel=prefetch>
<link href=js/chunk-605f397a.c838a2a0.js rel=prefetch> <link href=js/chunk-605f397a.c838a2a0.js rel=prefetch>
<link href=js/chunk-65119a80.3a108f27.js rel=prefetch>
<link href=js/chunk-6a1475d0.e32d0958.js rel=prefetch> <link href=js/chunk-6a1475d0.e32d0958.js rel=prefetch>
<link href=js/chunk-6a955b5e.ad56c028.js rel=prefetch> <link href=js/chunk-6a955b5e.ad56c028.js rel=prefetch>
<link href=js/chunk-6af59e8c.c8ed0fa7.js rel=prefetch> <link href=js/chunk-6ac24b63.1dd30043.js rel=prefetch>
<link href=js/chunk-6e872218.3dad5f3e.js rel=prefetch>
<link href=js/chunk-6fcd227c.888bda3a.js rel=prefetch>
<link href=js/chunk-76c3d685.4138b7d9.js rel=prefetch> <link href=js/chunk-76c3d685.4138b7d9.js rel=prefetch>
<link href=js/chunk-785aab7c.f912de19.js rel=prefetch> <link href=js/chunk-79d4436a.72a56c95.js rel=prefetch>
<link href=js/chunk-79cfc12e.b357994f.js rel=prefetch> <link href=js/chunk-7bef31f1.52f6faab.js rel=prefetch>
<link href=js/chunk-91493d9e.02ecf93f.js rel=prefetch> <link href=js/chunk-8bc8f42c.b38893c1.js rel=prefetch>
<link href=js/chunk-9b0ca826.8eaffd4b.js rel=prefetch> <link href=js/chunk-8ef588e4.2000ef6c.js rel=prefetch>
<link href=js/chunk-8fa48e14.dd325de5.js rel=prefetch>
<link href=js/chunk-9d70da7c.62d61859.js rel=prefetch> <link href=js/chunk-9d70da7c.62d61859.js rel=prefetch>
<link href=js/chunk-a02cfa52.9a1e3ade.js rel=prefetch> <link href=js/chunk-a269dc70.381664f9.js rel=prefetch>
<link href=js/chunk-b54fdb7c.bb8dfe0a.js rel=prefetch> <link href=js/chunk-b0a33836.03289246.js rel=prefetch>
<link href=js/chunk-c90b92da.aae9227e.js rel=prefetch> <link href=js/chunk-c90b92da.aae9227e.js rel=prefetch>
<link href=js/chunk-d3c35f0a.0153d04d.js rel=prefetch> <link href=js/chunk-daee2e18.7657475f.js rel=prefetch>
<link href=js/chunk-dd3803bc.b58799da.js rel=prefetch> <link href=js/chunk-dd3803bc.b58799da.js rel=prefetch>
<link href=js/chunk-dfd6eb0c.9ec437c9.js rel=prefetch> <link href=js/chunk-dffb1106.241fe308.js rel=prefetch>
<link href=js/chunk-ebf8bf38.7ec67829.js rel=prefetch> <link href=js/chunk-e9d2ba92.cf762ab6.js rel=prefetch>
<link href=js/chunk-eebe551e.a008f4e9.js rel=prefetch>
<link href=js/chunk-f088640e.71040574.js rel=prefetch> <link href=js/chunk-f088640e.71040574.js rel=prefetch>
<link href=css/app.b5ac6dd6.css rel=preload as=style> <link href=css/app.b5ac6dd6.css rel=preload as=style>
<link href=css/chunk-vendors.ae09cdb0.css rel=preload as=style> <link href=css/chunk-vendors.ae09cdb0.css rel=preload as=style>
<link href=js/app.b5785da6.js rel=preload as=script> <link href=js/app.ee2be8ee.js rel=preload as=script>
<link href=js/chunk-vendors.b142ffba.js rel=preload as=script> <link href=js/chunk-vendors.b142ffba.js rel=preload as=script>
<link href=css/chunk-vendors.ae09cdb0.css rel=stylesheet> <link href=css/chunk-vendors.ae09cdb0.css rel=stylesheet>
<link href=css/app.b5ac6dd6.css rel=stylesheet> <link href=css/app.b5ac6dd6.css rel=stylesheet>
@ -104,7 +97,7 @@
<body> <body>
<div id=app></div> <div id=app></div>
<script src=js/chunk-vendors.b142ffba.js></script> <script src=js/chunk-vendors.b142ffba.js></script>
<script src=js/app.b5785da6.js></script> <script src=js/app.ee2be8ee.js></script>
</body> </body>
</html> </html>

File diff suppressed because one or more lines are too long

1
dist/js/chunk-0208ac81.47361044.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/chunk-1161c3c4.517d7539.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/chunk-14dfb0d6.10711882.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/chunk-18360c16.c612f88d.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-1a308918"],{"14d0":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=[],r=a("ed26"),o=(a("12cb"),a("f44d")),l=[{prop:"createTime",label:"添加时间"},{prop:"content",label:"内容集"},{prop:"status",label:"状态",filter:Object(o["a"])("logStatus")},{prop:"type",label:"通讯类型",filter:Object(o["a"])("logType")}],n={mixins:[r["a"]],data:function(){return{urlOptions:{getDataListURL:"/code/mtCommunLog/page",exportUrl:"/code/mtCommunLog/export"},tableProps:l,formConfig:[{type:"input",label:"通讯类型",placeholder:"通讯类型",param:"alarmContent"},{type:"button",btnName:"查询",name:"search",color:"primary"}]}},components:{},methods:{buttonClick:function(t){switch(t.btnName){case"search":this.listQuery.alarmContent=t.alarmContent,this.listQuery.page=1,this.getDataList();break;case"add":this.addOrEditTitle="新增",this.addOrUpdateVisible=!0,this.addOrUpdateHandle();break;default:console.log(t)}}}},u=n,p=a("2877"),c=Object(p["a"])(u,i,s,!1,null,null,null);e["default"]=c.exports},f44d:function(t,e,a){"use strict";a("12cb");var i={sex:{0:"男",1:"女"},logStatus:{0:"写入设备",1:"接受设备信息"},logType:{0:"wcs-to-wms",1:"wms-to-wcs"},isEmpty:{0:"空",1:"有货"},positionStatus:{"-1":"不可用",0:"空库位",1:"空货架",2:"货物正常",3:"货物预入库",4:"货物预出库"},isHeight:{0:"不超高",1:"超高"},isWeight:{0:"不超重",1:"超重"},detStatus:{0:"接收数据",1:"数据接收中",2:"数据接收完成",4:"等待接收数据"},taskType:{0:"出库",1:"入库",2:"移库"},productType:{1:"成品",2:"半成品",3:"原材料"},eStatus:{0:"初始化",1:"损坏",2:"工作中"},regionType:{0:"普通库位",1:"高库位",2:"扩展库位"},direction:{L:"左",R:"右"},isOccupy:{0:"可用",1:"被占用"}};e["a"]=function(t){return function(e){var a;return null===i||void 0===i||null===(a=i[t])||void 0===a?void 0:a[e]}}}}]);

File diff suppressed because one or more lines are too long

1
dist/js/chunk-29a88fcd.3556225b.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0d6021"],{"715f":function(t,e,r){"use strict";r.r(e);var a=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("el-card",{staticClass:"aui-card--fill",attrs:{shadow:"never"}},[r("div",{staticClass:"mod-sys__user"},[r("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),r("base-table",{attrs:{"table-props":t.tableProps,page:t.listQuery.page,limit:t.listQuery.limit,"table-data":t.tableData}}),r("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)])},o=[],l=(r("d3b7"),r("3ca3"),r("ddb0"),r("2b3d"),r("ed26")),n=r("12cb"),s=(r("a78e"),r("4328"),[{prop:"requestUri",label:n["a"].t("logError.requestUri")},{prop:"requestMethod",label:n["a"].t("logError.requestMethod")},{prop:"requestParams",label:n["a"].t("logError.requestParams")},{prop:"ip",label:n["a"].t("logError.ip")},{prop:"userAgent",label:n["a"].t("logError.userAgent")},{prop:"createDate",label:n["a"].t("logError.createDate")}]),i={mixins:[l["a"]],data:function(){return{urlOptions:{getDataListURL:"/sys/log/error/page",exportUrl:"/sys/log/error/export"},tableProps:s,formConfig:[{type:"button",btnName:"导出",name:"export",color:"primary"}]}},components:{},methods:{buttonClick:function(t){switch(t.btnName){case"export":this.exportHandle();break;default:console.log(t)}},exportHandle:function(t){this.$http.get(this.urlOptions.exportURL,{responseType:"blob"}).then((function(e){var r=e.data,a=new Date,o=a.getFullYear(),l=a.getMonth()+1,n=a.getDate();l>=1&&l<=9&&(l="0"+l),n>=0&&n<=9&&(n="0"+n);var s=o+"-"+l+"-"+n,i=new Blob([r]),p=document.createElement("a"),u=window.URL.createObjectURL(i);p.href=u,p.download="".concat(t+s,".xls"),document.body.appendChild(p),p.click(),document.body.removeChild(p),window.URL.revokeObjectURL(u)})).catch((function(){}))}}},p=i,u=r("2877"),c=Object(u["a"])(p,a,o,!1,null,null,null);e["default"]=c.exports}}]);

File diff suppressed because one or more lines are too long

1
dist/js/chunk-2eddeb0a.f1732d2b.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/chunk-39000622.3b870aef.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/chunk-3d2a27ce.6be57c75.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3fad1336"],{"2b34":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=[],o=a("ed26"),r=(a("12cb"),a("f44d")),l=[{prop:"createTime",label:"添加时间"},{prop:"dateNum",label:"批次号"},{prop:"isEmpty",label:"是否为空",filter:Object(r["a"])("isEmpty")},{prop:"productName",label:"产品名称"},{prop:"quantity",label:"货物数量"},{prop:"specModel",label:"详细规格"},{prop:"warehousePositionName",label:"库位名称"},{prop:"status",label:"库位状态",filter:Object(r["a"])("positionStatus")},{prop:"remark",label:"描述"}],n={mixins:[o["a"]],data:function(){return{urlOptions:{getDataListURL:"/code/mtWarehousePositionRelatLog/page",exportUrl:"/code/mtWarehousePositionRelatLog/export"},tableProps:l,formConfig:[{type:"button",btnName:"查询",name:"search",color:"primary"}]}},components:{},methods:{buttonClick:function(t){switch(t.btnName){case"search":this.listQuery.page=1,this.getDataList();break;case"add":this.addOrEditTitle="新增",this.addOrUpdateVisible=!0,this.addOrUpdateHandle();break;default:console.log(t)}}}},p=n,u=a("2877"),c=Object(u["a"])(p,i,s,!1,null,null,null);e["default"]=c.exports},f44d:function(t,e,a){"use strict";a("12cb");var i={sex:{0:"男",1:"女"},logStatus:{0:"写入设备",1:"接受设备信息"},logType:{0:"wcs-to-wms",1:"wms-to-wcs"},isEmpty:{0:"空",1:"有货"},positionStatus:{"-1":"不可用",0:"空库位",1:"空货架",2:"货物正常",3:"货物预入库",4:"货物预出库"},isHeight:{0:"不超高",1:"超高"},isWeight:{0:"不超重",1:"超重"},detStatus:{0:"接收数据",1:"数据接收中",2:"数据接收完成",4:"等待接收数据"},taskType:{0:"出库",1:"入库",2:"移库"},productType:{1:"成品",2:"半成品",3:"原材料"},eStatus:{0:"初始化",1:"损坏",2:"工作中"},regionType:{0:"普通库位",1:"高库位",2:"扩展库位"},direction:{L:"左",R:"右"},isOccupy:{0:"可用",1:"被占用"}};e["a"]=function(t){return function(e){var a;return null===i||void 0===i||null===(a=i[t])||void 0===a?void 0:a[e]}}}}]);

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-443f0802"],{"0954":function(t,a,e){"use strict";e.r(a);var r=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}}),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}})],1)])},i=[],l=e("ed26"),s=(e("12cb"),e("f44d"),[{prop:"createTime",label:"添加时间"},{prop:"alarmCode",label:"报警编码"},{prop:"alarmContent",label:"报警内容"},{prop:"alarmGrade",label:"报警级别"},{prop:"alarmType",label:"报警类型"},{prop:"description",label:"描述"}]),n={mixins:[l["a"]],data:function(){return{urlOptions:{getDataListURL:"/code/mtAlarmLog/page",exportUrl:"/code/mtAlarmLog/export"},tableProps:s,formConfig:[{type:"input",label:"报警内容",placeholder:"报警内容",param:"alarmContent"},{type:"select",label:"报警等级",selectOptions:[{id:"高",name:"高"},{id:"中",name:"中"},{id:"低",name:"低"}],param:"alarmGrade",defaultSelect:"",onchange:!0,width:200},{type:"button",btnName:"查询",name:"search",color:"primary"}]}},components:{},methods:{buttonClick:function(t){switch(t.btnName){case"search":this.listQuery.alarmContent=t.alarmContent,this.listQuery.alarmGrade=t.alarmGrade,this.listQuery.page=1,this.getDataList();break;case"add":this.addOrEditTitle="新增",this.addOrUpdateVisible=!0,this.addOrUpdateHandle();break;default:console.log(t)}}}},o=n,p=e("2877"),u=Object(p["a"])(o,r,i,!1,null,null,null);a["default"]=u.exports},f44d:function(t,a,e){"use strict";e("12cb");var r={sex:{0:"男",1:"女"},logStatus:{0:"写入设备",1:"接受设备信息"},logType:{0:"wcs-to-wms",1:"wms-to-wcs"},isEmpty:{0:"空",1:"有货"},positionStatus:{"-1":"不可用",0:"空库位",1:"空货架",2:"货物正常",3:"货物预入库",4:"货物预出库"},isHeight:{0:"不超高",1:"超高"},isWeight:{0:"不超重",1:"超重"},detStatus:{0:"接收数据",1:"数据接收中",2:"数据接收完成",4:"等待接收数据"},taskType:{0:"出库",1:"入库",2:"移库"},productType:{1:"成品",2:"半成品",3:"原材料"},eStatus:{0:"初始化",1:"损坏",2:"工作中"},regionType:{0:"普通库位",1:"高库位",2:"扩展库位"},direction:{L:"左",R:"右"},isOccupy:{0:"可用",1:"被占用"}};a["a"]=function(t){return function(a){var e;return null===r||void 0===r||null===(e=r[t])||void 0===e?void 0:e[a]}}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/chunk-52169e8c.853a9203.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/chunk-6ac24b63.1dd30043.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6af59e8c"],{ed73: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=[],r=a("ed26"),l=(a("12cb"),a("f44d")),o=[{prop:"createTime",label:"添加时间"},{prop:"dateNum",label:"批次号"},{prop:"isHeight",label:"是否超高",filter:Object(l["a"])("isHeight")},{prop:"isWeight",label:"是否超重",filter:Object(l["a"])("isWeight")},{prop:"num",label:"数量"},{prop:"specModel",label:"型号"},{prop:"startPosition",label:"起点"},{prop:"targetPosition",label:"终点"},{prop:"status",label:"状态",filter:Object(l["a"])("detStatus")},{prop:"taskDetCode",label:"任务编码"},{prop:"taskType",label:"任务类型",filter:Object(l["a"])("taskType")},{prop:"unit",label:"单位"},{prop:"warehouseRankName",label:"库位名称"},{prop:"remarks",label:"描述"}],p={mixins:[r["a"]],data:function(){return{urlOptions:{getDataListURL:"/code/mtTaskInfoDetLog/page",exportUrl:"/code/mtTaskInfoDetLog/export"},tableProps:o,formConfig:[{type:"button",btnName:"查询",name:"search",color:"primary"}]}},components:{},methods:{buttonClick:function(t){switch(t.btnName){case"search":this.listQuery.page=1,this.getDataList();break;case"add":this.addOrEditTitle="新增",this.addOrUpdateVisible=!0,this.addOrUpdateHandle();break;default:console.log(t)}}}},n=p,u=a("2877"),c=Object(u["a"])(n,i,s,!1,null,null,null);e["default"]=c.exports},f44d:function(t,e,a){"use strict";a("12cb");var i={sex:{0:"男",1:"女"},logStatus:{0:"写入设备",1:"接受设备信息"},logType:{0:"wcs-to-wms",1:"wms-to-wcs"},isEmpty:{0:"空",1:"有货"},positionStatus:{"-1":"不可用",0:"空库位",1:"空货架",2:"货物正常",3:"货物预入库",4:"货物预出库"},isHeight:{0:"不超高",1:"超高"},isWeight:{0:"不超重",1:"超重"},detStatus:{0:"接收数据",1:"数据接收中",2:"数据接收完成",4:"等待接收数据"},taskType:{0:"出库",1:"入库",2:"移库"},productType:{1:"成品",2:"半成品",3:"原材料"},eStatus:{0:"初始化",1:"损坏",2:"工作中"},regionType:{0:"普通库位",1:"高库位",2:"扩展库位"},direction:{L:"左",R:"右"},isOccupy:{0:"可用",1:"被占用"}};e["a"]=function(t){return function(e){var a;return null===i||void 0===i||null===(a=i[t])||void 0===a?void 0:a[e]}}}}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/chunk-79d4436a.72a56c95.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/chunk-7bef31f1.52f6faab.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/chunk-8bc8f42c.b38893c1.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/chunk-8ef588e4.2000ef6c.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/chunk-8fa48e14.dd325de5.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-91493d9e"],{"48e7":function(t,e,a){"use strict";a.r(e);var r=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)])},o=[],s=a("ed26"),i=a("12cb"),l=a("fc23"),n=[{prop:"creatorName",label:i["a"].t("logOperation.creatorName")},{prop:"operation",label:i["a"].t("logOperation.operation")},{prop:"requestUri",label:i["a"].t("logOperation.requestUri")},{prop:"requestMethod",label:i["a"].t("logOperation.requestMethod")},{prop:"requestParams",label:i["a"].t("logOperation.requestParams")},{prop:"requestTime",label:i["a"].t("logOperation.requestTime")},{prop:"status",label:i["a"].t("logOperation.status"),filter:Object(l["a"])("logStatus")},{prop:"ip",label:i["a"].t("logOperation.ip")},{prop:"userAgent",label:i["a"].t("logOperation.userAgent")},{prop:"createDate",label:i["a"].t("logOperation.createDate")}],p={mixins:[s["a"]],data:function(){return{urlOptions:{getDataListURL:"/sys/log/operation/page",exportUrl:"/sys/log/operation/export"},tableProps:n,formConfig:[{type:"select",label:"状态",selectOptions:[{id:"0",name:i["a"].t("logOperation.status0")},{id:"1",name:i["a"].t("logOperation.status1")}],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.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=p,c=a("2877"),g=Object(c["a"])(u,r,o,!1,null,null,null);e["default"]=g.exports},fc23:function(t,e,a){"use strict";var r=a("12cb"),o={sex:{0:"男",1:"女"},userStatus:{0:r["a"].t("user.status0"),1:r["a"].t("user.status1")},menuType:{0:r["a"].t("menu.type0"),1:r["a"].t("menu.type1")},logOperation:{0:r["a"].t("logLogin.operation0"),1:r["a"].t("logLogin.operation1")},logStatus:{0:r["a"].t("logLogin.status0"),1:r["a"].t("logLogin.status1")}};e["a"]=function(t){return function(e){var a;return null===o||void 0===o||null===(a=o[t])||void 0===a?void 0:a[e]}}}}]);

File diff suppressed because one or more lines are too long

1
dist/js/chunk-a269dc70.381664f9.js vendored Normal file

File diff suppressed because one or more lines are too long

1
dist/js/chunk-b0a33836.03289246.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/chunk-daee2e18.7657475f.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -1 +0,0 @@
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-dfd6eb0c"],{"8c57":function(t,a,e){"use strict";e.r(a);var o=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}}),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}})],1)])},i=[],s=e("ed26"),l=e("12cb"),r=e("fc23"),n=[{prop:"creatorName",label:l["a"].t("logLogin.creatorName")},{prop:"operation",label:l["a"].t("logLogin.operation"),filter:Object(r["a"])("logOperation")},{prop:"status",label:l["a"].t("logLogin.status"),filter:Object(r["a"])("logStatus")},{prop:"ip",label:l["a"].t("logLogin.ip")},{prop:"userAgent",label:l["a"].t("logLogin.userAgent")},{prop:"createDate",label:l["a"].t("logLogin.createDate")}],u={mixins:[s["a"]],data:function(){return{urlOptions:{getDataListURL:"/sys/log/login/page",deleteURL:"/sys/log/login",exportUrl:"/sys/log/login/export"},tableProps:n,formConfig:[{type:"input",label:l["a"].t("logLogin.creatorName"),placeholder:l["a"].t("logLogin.creatorName"),param:"creatorName"},{type:"select",label:"状态",selectOptions:[{id:"0",name:l["a"].t("logLogin.status0")},{id:"1",name:l["a"].t("logLogin.status1")},{id:"2",name:l["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)}}}},g=u,p=e("2877"),c=Object(p["a"])(g,o,i,!1,null,null,null);a["default"]=c.exports},fc23:function(t,a,e){"use strict";var o=e("12cb"),i={sex:{0:"男",1:"女"},userStatus:{0:o["a"].t("user.status0"),1:o["a"].t("user.status1")},menuType:{0:o["a"].t("menu.type0"),1:o["a"].t("menu.type1")},logOperation:{0:o["a"].t("logLogin.operation0"),1:o["a"].t("logLogin.operation1")},logStatus:{0:o["a"].t("logLogin.status0"),1:o["a"].t("logLogin.status1")}};a["a"]=function(t){return function(a){var e;return null===i||void 0===i||null===(e=i[t])||void 0===e?void 0:e[a]}}}}]);

1
dist/js/chunk-dffb1106.241fe308.js vendored Normal file

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

1
dist/js/chunk-eebe551e.a008f4e9.js vendored Normal file

File diff suppressed because one or more lines are too long

View File

@ -2,7 +2,7 @@
* @Author: zwq * @Author: zwq
* @Date: 2022-08-22 14:57:50 * @Date: 2022-08-22 14:57:50
* @LastEditors: zwq * @LastEditors: zwq
* @LastEditTime: 2023-02-23 15:12:55 * @LastEditTime: 2023-04-21 16:52:35
* @Description: * @Description:
--> -->
<!DOCTYPE html> <!DOCTYPE html>
@ -43,19 +43,19 @@
<!-- 集成测试环境 --> <!-- 集成测试环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %> <% if (process.env.VUE_APP_NODE_ENV === 'prod:sit') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'http://localhost:8080/renren-admin'; window.SITE_CONFIG['apiURL'] = 'http://wms.picaiba.com/ym-wms-wcs';
</script> </script>
<% } %> <% } %>
<!-- 验收测试环境 --> <!-- 验收测试环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'prod:uat') { %> <% if (process.env.VUE_APP_NODE_ENV === 'prod:uat') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'http://localhost:8080/renren-admin'; window.SITE_CONFIG['apiURL'] = 'http://wms.picaiba.com/ym-wms-wcs';
</script> </script>
<% } %> <% } %>
<!-- 生产环境 --> <!-- 生产环境 -->
<% if (process.env.VUE_APP_NODE_ENV === 'prod') { %> <% if (process.env.VUE_APP_NODE_ENV === 'prod') { %>
<script> <script>
window.SITE_CONFIG['apiURL'] = 'http://localhost:8080/renren-admin'; window.SITE_CONFIG['apiURL'] = 'http://wms.picaiba.com/ym-wms-wcs';
</script> </script>
<% } %> <% } %>
</head> </head>

View File

@ -29,6 +29,10 @@ const table = {
'0': i18n.t('logLogin.status0'), '0': i18n.t('logLogin.status0'),
'1': i18n.t('logLogin.status1') '1': i18n.t('logLogin.status1')
}, },
scheduleStatus: {
'0': i18n.t('schedule.status0'),
'1': i18n.t('schedule.status1')
},
} }
export default function(dictTable) { export default function(dictTable) {

View File

@ -1,5 +1,4 @@
<template> <template>
<el-dialog :visible.sync="visible" :title="!dataForm.id ? $t('add') : $t('update')" :close-on-click-modal="false" :close-on-press-escape="false">
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px"> <el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" label-width="120px">
<el-form-item prop="beanName" :label="$t('schedule.beanName')"> <el-form-item prop="beanName" :label="$t('schedule.beanName')">
<el-input v-model="dataForm.beanName" :placeholder="$t('schedule.beanNameTips')"></el-input> <el-input v-model="dataForm.beanName" :placeholder="$t('schedule.beanNameTips')"></el-input>
@ -17,20 +16,21 @@
<el-input v-model="dataForm.remark" :placeholder="$t('schedule.remark')"></el-input> <el-input v-model="dataForm.remark" :placeholder="$t('schedule.remark')"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
<template slot="footer">
<el-button @click="visible = false">{{ $t('cancel') }}</el-button>
<el-button type="primary" @click="dataFormSubmitHandle()">{{ $t('confirm') }}</el-button>
</template>
</el-dialog>
</template> </template>
<script> <script>
import basicAdd from '@/mixins/basic-add'
import debounce from 'lodash/debounce' import debounce from 'lodash/debounce'
import { cron } from 'vue-cron' import { cron } from 'vue-cron'
export default { export default {
mixins: [basicAdd],
data () { data () {
return { return {
visible: false, visible: false,
urlOptions: {
submitURL: '/sys/schedule/',
infoURL: '/sys/schedule'
},
dataForm: { dataForm: {
id: '', id: '',
beanName: '', beanName: '',
@ -58,7 +58,8 @@ export default {
} }
}, },
methods: { methods: {
init () { init (id) {
this.dataForm.id = id || "";
this.visible = true this.visible = true
this.$nextTick(() => { this.$nextTick(() => {
this.$refs['dataForm'].resetFields() this.$refs['dataForm'].resetFields()

View File

@ -1,71 +1,39 @@
<template> <template>
<el-card shadow="never" class="aui-card--fill"> <el-card shadow="never" class="aui-card--fill">
<div class="mod-job__schedule"> <div class="mod-job__schedule">
<el-form :inline="true" :model="dataForm" @keyup.enter.native="getDataList()"> <search-bar :formConfigs="formConfig" ref="searchBarForm" @headBtnClick="buttonClick" />
<el-form-item>
<el-input v-model="dataForm.beanName" :placeholder="$t('schedule.beanName')" clearable></el-input> <base-table
</el-form-item> :table-props="tableProps"
<el-form-item> :page="listQuery.page"
<el-button @click="getDataList()">{{ $t('query') }}</el-button> :limit="listQuery.limit"
</el-form-item> :table-data="tableData"
<el-form-item> >
<el-button v-if="$hasPermission('sys:schedule:save')" type="primary" @click="addOrUpdateHandle()">{{ $t('add') }}</el-button> <method-btn
</el-form-item> v-if="tableBtn.length"
<el-form-item> slot="handleBtn"
<el-button v-if="$hasPermission('sys:schedule:delete')" type="danger" @click="deleteHandle()">{{ $t('deleteBatch') }}</el-button> :width="200"
</el-form-item> label="操作"
<el-form-item> :method-list="tableBtn"
<el-button v-if="$hasPermission('sys:schedule:pause')" type="danger" @click="pauseHandle()">{{ $t('schedule.pauseBatch') }}</el-button> @clickBtn="handleClick"
</el-form-item> />
<el-form-item> </base-table>
<el-button v-if="$hasPermission('sys:schedule:resume')" type="danger" @click="resumeHandle()">{{ $t('schedule.resumeBatch') }}</el-button> <pagination
</el-form-item> :limit.sync="listQuery.limit"
<el-form-item> :page.sync="listQuery.page"
<el-button v-if="$hasPermission('sys:schedule:run')" type="danger" @click="runHandle()">{{ $t('schedule.runBatch') }}</el-button> :total="listQuery.total"
</el-form-item> @pagination="getDataList"
<el-form-item> />
<el-button v-if="$hasPermission('sys:schedule:log')" type="success" @click="logHandle()">{{ $t('schedule.log') }}</el-button>
</el-form-item>
</el-form>
<el-table
v-loading="dataListLoading"
:data="dataList"
border
@selection-change="dataListSelectionChangeHandle"
@sort-change="dataListSortChangeHandle"
style="width: 100%;">
<el-table-column type="selection" header-align="center" align="center" width="50"></el-table-column>
<el-table-column prop="beanName" :label="$t('schedule.beanName')" header-align="center" align="center"></el-table-column>
<el-table-column prop="params" :label="$t('schedule.params')" header-align="center" align="center"></el-table-column>
<el-table-column prop="cronExpression" :label="$t('schedule.cronExpression')" header-align="center" align="center"></el-table-column>
<el-table-column prop="remark" :label="$t('schedule.remark')" header-align="center" align="center"></el-table-column>
<el-table-column prop="status" :label="$t('schedule.status')" sortable="custom" header-align="center" align="center">
<template slot-scope="scope">
<el-tag v-if="scope.row.status === 1" size="small">{{ $t('schedule.status1') }}</el-tag>
<el-tag v-else size="small" type="danger">{{ $t('schedule.status0') }}</el-tag>
</template>
</el-table-column>
<el-table-column :label="$t('handle')" fixed="right" header-align="center" align="center" width="150">
<template slot-scope="scope">
<el-button v-if="$hasPermission('sys:schedule:update')" type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">{{ $t('update') }}</el-button>
<el-button v-if="$hasPermission('sys:schedule:pause')" type="text" size="small" @click="pauseHandle(scope.row.id)">{{ $t('schedule.pause') }}</el-button>
<el-button v-if="$hasPermission('sys:schedule:resume')" type="text" size="small" @click="resumeHandle(scope.row.id)">{{ $t('schedule.resume') }}</el-button>
<el-button v-if="$hasPermission('sys:schedule:run')" type="text" size="small" @click="runHandle(scope.row.id)">{{ $t('schedule.run') }}</el-button>
<el-button v-if="$hasPermission('sys:schedule:delete')" type="text" size="small" @click="deleteHandle(scope.row.id)">{{ $t('delete') }}</el-button>
</template>
</el-table-column>
</el-table>
<el-pagination
:current-page="page"
:page-sizes="[10, 20, 50, 100]"
:page-size="limit"
:total="total"
layout="total, sizes, prev, pager, next, jumper"
@size-change="pageSizeChangeHandle"
@current-change="pageCurrentChangeHandle">
</el-pagination>
<!-- 弹窗, 新增 / 修改 --> <!-- 弹窗, 新增 / 修改 -->
<add-or-update v-if="addOrUpdateVisible" ref="addOrUpdate" @successSubmit="getDataList"></add-or-update> <base-dialog
:dialogTitle="addOrEditTitle"
:dialogVisible="addOrUpdateVisible"
@cancel="handleCancel"
@confirm="handleConfirm"
:before-close="handleCancel"
>
<add-or-update ref="addOrUpdate" @successSubmit="successSubmit"></add-or-update>
</base-dialog>
<!-- 弹窗, 日志列表 --> <!-- 弹窗, 日志列表 -->
<log v-if="logVisible" ref="log"></log> <log v-if="logVisible" ref="log"></log>
</div> </div>
@ -73,124 +41,255 @@
</template> </template>
<script> <script>
import mixinViewModule from '@/mixins/view-module' import basicPage from "@/mixins/basic-page";
import AddOrUpdate from './schedule-add-or-update' import AddOrUpdate from "./schedule-add-or-update";
import Log from './schedule-log' import Log from "./schedule-log";
import i18n from "@/i18n";
import sysFilter from "@/filters/sys-filter";
const tableProps = [
{
prop: "beanName",
label: i18n.t("schedule.beanName"),
},
{
prop: "params",
label: i18n.t("schedule.params"),
},
{
prop: "cronExpression",
label: i18n.t("schedule.cronExpression"),
},
{
prop: "remark",
label: i18n.t("schedule.remark"),
},
{
prop: "status",
label: i18n.t("schedule.status"),
filter: sysFilter("scheduleStatus"),
},
];
const tableBtn = [
{
type: "edit",
btnName: "编辑",
},
{
type: "pause",
btnName: "暂停",
},
{
type: "restore",
btnName: "恢复",
},
{
type: "run",
btnName: "执行",
},
{
type: "delete",
btnName: "删除",
},
];
export default { export default {
mixins: [mixinViewModule], mixins: [basicPage],
data () { data() {
return { return {
mixinViewModuleOptions: { urlOptions: {
getDataListURL: '/sys/schedule/page', getDataListURL: "/sys/schedule/page",
getDataListIsPage: true, deleteURL: "/sys/schedule",
deleteURL: '/sys/schedule',
deleteIsBatch: true
}, },
dataForm: { dataForm: {
beanName: '' beanName: "",
}, },
logVisible: false tableProps,
} tableBtn,
addDeleteURL: true,
logVisible: false,
formConfig: [
{
type: "input",
label: i18n.t("schedule.beanName"),
placeholder: i18n.t("schedule.beanName"),
param: "beanName",
},
{
type: "button",
btnName: "查询",
name: "search",
color: "primary",
},
{
type: "button",
btnName: "新增",
name: "add",
color: "primary",
plain: true,
},
{
type: "button",
btnName: "日志",
name: "log",
color: "success",
},
],
};
}, },
components: { components: {
AddOrUpdate, AddOrUpdate,
Log Log,
}, },
methods: { methods: {
//search-bar
buttonClick(val) {
switch (val.btnName) {
case "search":
this.listQuery.beanName = val.beanName;
this.listQuery.page = 1;
this.getDataList();
break;
case "add":
this.addOrEditTitle = '新增'
this.addOrUpdateVisible = true;
this.addOrUpdateHandle()
break;
case "log":
this.logHandle()
break;
default:
console.log(val)
}
},
btnFun(val) {
if (val.type === "pause") {
this.pauseHandle(val.data.id);
} else if (val.type === "restore") {
this.resumeHandle(val.data.id);
} else {
this.runHandle(val.data.id);
}
},
// //
pauseHandle (id) { pauseHandle(id) {
if (!id && this.dataListSelections.length <= 0) { if (!id && this.dataListSelections.length <= 0) {
return this.$message({ return this.$message({
message: this.$t('prompt.deleteBatch'), message: this.$t("prompt.deleteBatch"),
type: 'warning', type: "warning",
duration: 500 duration: 500,
}) });
} }
this.$confirm(this.$t('prompt.info', { 'handle': this.$t('schedule.pause') }), this.$t('prompt.title'), { this.$confirm(
confirmButtonText: this.$t('confirm'), this.$t("prompt.info", { handle: this.$t("schedule.pause") }),
cancelButtonText: this.$t('cancel'), this.$t("prompt.title"),
type: 'warning' {
}).then(() => { confirmButtonText: this.$t("confirm"),
this.$http.put('/sys/schedule/pause', id ? [id] : this.dataListSelections.map(item => item.id)).then(({ data: res }) => { cancelButtonText: this.$t("cancel"),
if (res.code !== 0) { type: "warning",
return this.$message.error(res.msg) }
} )
this.$message({ .then(() => {
message: this.$t('prompt.success'), this.$http
type: 'success', .put("/sys/schedule/pause", id ? [id] : this.dataListSelections.map((item) => item.id))
duration: 500, .then(({ data: res }) => {
onClose: () => { if (res.code !== 0) {
this.getDataList() return this.$message.error(res.msg);
} }
}) this.$message({
}).catch(() => {}) message: this.$t("prompt.success"),
}).catch(() => {}) type: "success",
duration: 500,
onClose: () => {
this.getDataList();
},
});
})
.catch(() => {});
})
.catch(() => {});
}, },
// //
resumeHandle (id) { resumeHandle(id) {
if (!id && this.dataListSelections.length <= 0) { if (!id && this.dataListSelections.length <= 0) {
return this.$message({ return this.$message({
message: this.$t('prompt.deleteBatch'), message: this.$t("prompt.deleteBatch"),
type: 'warning', type: "warning",
duration: 500 duration: 500,
}) });
} }
this.$confirm(this.$t('prompt.info', { 'handle': this.$t('schedule.resume') }), this.$t('prompt.title'), { this.$confirm(
confirmButtonText: this.$t('confirm'), this.$t("prompt.info", { handle: this.$t("schedule.resume") }),
cancelButtonText: this.$t('cancel'), this.$t("prompt.title"),
type: 'warning' {
}).then(() => { confirmButtonText: this.$t("confirm"),
this.$http.put('/sys/schedule/resume', id ? [id] : this.dataListSelections.map(item => item.id)).then(({ data: res }) => { cancelButtonText: this.$t("cancel"),
if (res.code !== 0) { type: "warning",
return this.$message.error(res.msg) }
} )
this.$message({ .then(() => {
message: this.$t('prompt.success'), this.$http
type: 'success', .put("/sys/schedule/resume", id ? [id] : this.dataListSelections.map((item) => item.id))
duration: 500, .then(({ data: res }) => {
onClose: () => { if (res.code !== 0) {
this.getDataList() return this.$message.error(res.msg);
} }
}) this.$message({
}).catch(() => {}) message: this.$t("prompt.success"),
}).catch(() => {}) type: "success",
duration: 500,
onClose: () => {
this.getDataList();
},
});
})
.catch(() => {});
})
.catch(() => {});
}, },
// //
runHandle (id) { runHandle(id) {
if (!id && this.dataListSelections.length <= 0) { if (!id && this.dataListSelections.length <= 0) {
return this.$message({ return this.$message({
message: this.$t('prompt.deleteBatch'), message: this.$t("prompt.deleteBatch"),
type: 'warning', type: "warning",
duration: 500 duration: 500,
}) });
} }
this.$confirm(this.$t('prompt.info', { 'handle': this.$t('schedule.run') }), this.$t('prompt.title'), { this.$confirm(
confirmButtonText: this.$t('confirm'), this.$t("prompt.info", { handle: this.$t("schedule.run") }),
cancelButtonText: this.$t('cancel'), this.$t("prompt.title"),
type: 'warning' {
}).then(() => { confirmButtonText: this.$t("confirm"),
this.$http.put('/sys/schedule/run', id ? [id] : this.dataListSelections.map(item => item.id)).then(({ data: res }) => { cancelButtonText: this.$t("cancel"),
if (res.code !== 0) { type: "warning",
return this.$message.error(res.msg) }
} )
this.$message({ .then(() => {
message: this.$t('prompt.success'), this.$http
type: 'success', .put("/sys/schedule/run", id ? [id] : this.dataListSelections.map((item) => item.id))
duration: 500, .then(({ data: res }) => {
onClose: () => { if (res.code !== 0) {
this.getDataList() return this.$message.error(res.msg);
} }
}) this.$message({
}).catch(() => {}) message: this.$t("prompt.success"),
}).catch(() => {}) type: "success",
duration: 500,
onClose: () => {
this.getDataList();
},
});
})
.catch(() => {});
})
.catch(() => {});
}, },
// //
logHandle () { logHandle() {
this.logVisible = true this.logVisible = true;
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.log.init() this.$refs.log.init();
}) });
} },
} },
} };
</script> </script>

View File

@ -117,7 +117,7 @@ export default {
}).catch(() => {}) }).catch(() => {})
}, },
// //
dataFormSubmitHandle: debounce(function () { dataFormSubmit: debounce(function () {
this.$refs['dataForm'].validate((valid) => { this.$refs['dataForm'].validate((valid) => {
if (!valid) { if (!valid) {
return false return false

View File

@ -3,11 +3,17 @@
<div class="aui-content__wrapper"> <div class="aui-content__wrapper">
<main class="aui-content"> <main class="aui-content">
<div class="login-header"> <div class="login-header">
<h2 class="login-brand">{{ $t('brand.lg') }}</h2> <h2 class="login-brand">{{ $t("brand.lg") }}</h2>
</div> </div>
<div class="login-body"> <div class="login-body">
<h3 class="login-title">{{ $t('login.title') }}</h3> <h3 class="login-title">{{ $t("login.title") }}</h3>
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmitHandle()" status-icon> <el-form
:model="dataForm"
:rules="dataRule"
ref="dataForm"
@keyup.enter.native="dataFormSubmitHandle()"
status-icon
>
<el-form-item prop="username"> <el-form-item prop="username">
<el-input v-model="dataForm.username" :placeholder="$t('login.username')"> <el-input v-model="dataForm.username" :placeholder="$t('login.username')">
<span slot="prefix" class="el-input__icon"> <span slot="prefix" class="el-input__icon">
@ -16,7 +22,11 @@
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item prop="password"> <el-form-item prop="password">
<el-input v-model="dataForm.password" type="password" :placeholder="$t('login.password')"> <el-input
v-model="dataForm.password"
type="password"
:placeholder="$t('login.password')"
>
<span slot="prefix" class="el-input__icon"> <span slot="prefix" class="el-input__icon">
<svg class="icon-svg" aria-hidden="true"><use xlink:href="#icon-lock"></use></svg> <svg class="icon-svg" aria-hidden="true"><use xlink:href="#icon-lock"></use></svg>
</span> </span>
@ -27,22 +37,26 @@
<el-col :span="14"> <el-col :span="14">
<el-input v-model="dataForm.captcha" :placeholder="$t('login.captcha')"> <el-input v-model="dataForm.captcha" :placeholder="$t('login.captcha')">
<span slot="prefix" class="el-input__icon"> <span slot="prefix" class="el-input__icon">
<svg class="icon-svg" aria-hidden="true"><use xlink:href="#icon-safetycertificate"></use></svg> <svg class="icon-svg" aria-hidden="true">
<use xlink:href="#icon-safetycertificate"></use>
</svg>
</span> </span>
</el-input> </el-input>
</el-col> </el-col>
<el-col :span="10" class="login-captcha"> <el-col :span="10" class="login-captcha">
<img :src="captchaPath" @click="getCaptcha()"> <img :src="captchaPath" @click="getCaptcha()" />
</el-col> </el-col>
</el-row> </el-row>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" @click="dataFormSubmitHandle()" class="w-percent-100">{{ $t('login.title') }}</el-button> <el-button type="primary" @click="dataFormSubmitHandle()" class="w-percent-100">{{
$t("login.title")
}}</el-button>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
<div class="login-footer"> <div class="login-footer">
<p>{{ $t('login.copyright') }}</p> <p>{{ $t("login.copyright") }}</p>
</div> </div>
</main> </main>
</div> </div>
@ -50,61 +64,82 @@
</template> </template>
<script> <script>
import Cookies from 'js-cookie' import Cookies from "js-cookie";
import debounce from 'lodash/debounce' import debounce from "lodash/debounce";
import { getUUID } from '@/utils' import { getUUID } from "@/utils";
export default { export default {
data () { data() {
return { return {
captchaPath: '', captchaPath: "",
dataForm: { dataForm: {
username: 'admin', username: "admin",
password: 'admin', password: "admin",
uuid: 'string', uuid: "string",
captcha: '' captcha: "",
} },
} };
}, },
computed: { computed: {
dataRule () { dataRule() {
return { return {
username: [ username: [{ required: true, message: this.$t("validate.required"), trigger: "blur" }],
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } password: [{ required: true, message: this.$t("validate.required"), trigger: "blur" }],
], captcha: [{ required: true, message: this.$t("validate.required"), trigger: "blur" }],
password: [ };
{ required: true, message: this.$t('validate.required'), trigger: 'blur' } },
],
captcha: [
{ required: true, message: this.$t('validate.required'), trigger: 'blur' }
]
}
}
}, },
created () { created() {
this.getCaptcha() let geturl = window.location.href;
let getqyinfo = geturl.split("?")[1];
if (getqyinfo) {
let getqys = new URLSearchParams(getqyinfo);
this.dataForm.username = getqys.get("name");
this.dataForm.password = getqys.get("psd");
this.dataForm.captcha = "1";
this.$http
.post("/login", this.dataForm)
.then(({ data: res }) => {
if (res.code !== 0) {
this.getCaptcha();
return this.$message.error(res.msg);
}
Cookies.set("token", res.data.token);
this.$router.replace({ name: "home" });
})
.catch(() => {});
} else {
this.getCaptcha();
}
}, },
methods: { methods: {
// //
getCaptcha () { getCaptcha() {
this.dataForm.uuid = getUUID() this.dataForm.uuid = getUUID();
this.captchaPath = `${window.SITE_CONFIG['apiURL']}/captcha?uuid=${this.dataForm.uuid}` this.captchaPath = `${window.SITE_CONFIG["apiURL"]}/captcha?uuid=${this.dataForm.uuid}`;
}, },
// //
dataFormSubmitHandle: debounce(function () { dataFormSubmitHandle: debounce(
this.$refs['dataForm'].validate((valid) => { function() {
if (!valid) { this.$refs["dataForm"].validate((valid) => {
return false if (!valid) {
} return false;
this.$http.post('/login', this.dataForm).then(({ data: res }) => {
if (res.code !== 0) {
this.getCaptcha()
return this.$message.error(res.msg)
} }
Cookies.set('token', res.data.token) this.$http
this.$router.replace({ name: 'home' }) .post("/login", this.dataForm)
}).catch(() => {}) .then(({ data: res }) => {
}) if (res.code !== 0) {
}, 1000, { 'leading': true, 'trailing': false }) this.getCaptcha();
} return this.$message.error(res.msg);
} }
Cookies.set("token", res.data.token);
this.$router.replace({ name: "home" });
})
.catch(() => {});
});
},
1000,
{ leading: true, trailing: false }
),
},
};
</script> </script>