Files
ftdlDTY_acs/acs2/nladmin-ui/dist_acs/static/js/chunk-84abe82e.95dd54fe.js
2025-11-11 19:34:21 +08:00

1 line
13 KiB
JavaScript

(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-84abe82e"],{"025d":function(t,e,i){t.exports=i.p+"static/img/bigScreenTwo.1603094d.png"},1:function(t,e){},"2f21":function(t,e,i){"use strict";var n=i("79e5");t.exports=function(t,e){return!!t&&n((function(){e?t.call(null,(function(){}),1):t.call(null)}))}},"3cdc":function(t,e,i){"use strict";i("55dd");var n=i("5530"),o=i("c7eb"),s=(i("96cf"),i("1da1")),a=i("7e1e"),c=i("ed08"),r=i("e350");e["a"]={data:function(){return{data:[],sort:["id,desc"],page:0,size:10,total:0,url:"",params:{},query:{},time:50,isAdd:!1,downloadLoading:!1,loading:!0,delLoading:!1,delAllLoading:!1,dialog:!1,form:{},resetForm:{},title:""}},methods:{parseTime:c["d"],downloadFile:c["c"],checkPermission:r["a"],init:function(){var t=Object(s["a"])(Object(o["a"])().mark((function t(){var e=this;return Object(o["a"])().wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.next=2,this.beforeInit();case 2:if(t.sent){t.next=4;break}return t.abrupt("return");case 4:return t.abrupt("return",new Promise((function(t,i){e.loading=!0,Object(a["b"])(e.url,e.getQueryParame()).then((function(i){e.total=i.totalElements,e.data=i.content,setTimeout((function(){e.loading=!1}),e.time),t(i)})).catch((function(t){e.loading=!1,i(t)}))})));case 5:case"end":return t.stop()}}),t,this)})));function e(){return t.apply(this,arguments)}return e}(),beforeInit:function(){return!0},getQueryParame:function(){return Object(n["a"])(Object(n["a"])({page:this.page,size:this.size,sort:this.sort},this.query),this.params)},pageChange:function(t){this.page=t-1,this.init()},sizeChange:function(t){this.page=0,this.size=t,this.init()},dleChangePage:function(t){void 0===t&&(t=1),this.data.length===t&&0!==this.page&&(this.page=this.page-1)},toQuery:function(){this.page=0,this.init()},submitSuccessNotify:function(){this.$notify({title:"提交成功",type:"success",duration:2500})},addSuccessNotify:function(){this.$notify({title:"新增成功",type:"success",duration:2500})},editSuccessNotify:function(){this.$notify({title:"编辑成功",type:"success",duration:2500})},delSuccessNotify:function(){this.$notify({title:"删除成功",type:"success",duration:2500})},notify:function(t,e){this.$notify({title:t,type:e,duration:2500})},beforeDelMethod:function(){return!0},delMethod:function(t){var e=this;this.beforeDelMethod()&&(this.delLoading=!0,this.crudMethod.del(t).then((function(){e.delLoading=!1,e.$refs[t].doClose(),e.dleChangePage(),e.delSuccessNotify(),e.afterDelMethod(),e.init()})).catch((function(){e.delLoading=!1,e.$refs[t].doClose()})))},afterDelMethod:function(){},beforeDelAllMethod:function(){var t=this;this.$confirm("你确定删除选中的数据吗?","提示",{confirmButtonText:"确定",cancelButtonText:"取消",type:"warning"}).then((function(){t.delAllMethod()}))},delAllMethod:function(){var t=this;this.delAllLoading=!0;for(var e=this.$refs.table.selection,i=[],n=0;n<e.length;n++)i.push(e[n].id);this.crudMethod.delAll(i).then((function(){t.delAllLoading=!1,t.dleChangePage(i.length),t.init(),t.$notify({title:"删除成功",type:"success",duration:2500})})).catch((function(){t.delAllLoading=!1}))},beforeShowAddForm:function(){},showAddFormDialog:function(){this.isAdd=!0,this.resetForm=JSON.parse(JSON.stringify(this.form)),this.beforeShowAddForm(),this.dialog=!0},beforeShowEditForm:function(t){},showEditFormDialog:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";this.isAdd=!1,t&&(this.resetForm=JSON.parse(JSON.stringify(this.form)),this.form=JSON.parse(JSON.stringify(t))),this.beforeShowEditForm(t),this.dialog=!0},addMethod:function(){var t=this;this.crudMethod.add(this.form).then((function(){t.addSuccessNotify(),t.loading=!1,t.afterAddMethod(),t.cancel(),t.init()})).catch((function(){t.loading=!1,t.afterAddErrorMethod()}))},afterAddMethod:function(){},afterAddErrorMethod:function(){},editMethod:function(){var t=this;this.crudMethod.edit(this.form).then((function(){t.editSuccessNotify(),t.loading=!1,t.afterEditMethod(),t.cancel(),t.init()})).catch((function(){t.loading=!1}))},afterEditMethod:function(){},beforeSubmitMethod:function(){return!0},submitMethod:function(){var t=this;this.beforeSubmitMethod()&&this.$refs["form"]&&this.$refs["form"].validate((function(e){e&&(t.loading=!0,t.isAdd?t.addMethod():t.editMethod())}))},cancel:function(){this.dialog=!1,this.$refs["form"]&&(this.$refs["form"].clearValidate(),this.form=this.resetForm)},getFormTitle:function(){return this.isAdd?"新增".concat(this.title):"编辑".concat(this.title)},downloadMethod:function(){var t=this;this.beforeInit(),this.downloadLoading=!0,Object(a["a"])(this.url+"/download",this.params).then((function(e){t.downloadFile(e,t.title+"数据","xlsx"),t.downloadLoading=!1})).catch((function(){t.downloadLoading=!1}))}}}},"55dd":function(t,e,i){"use strict";var n=i("5ca1"),o=i("d8e8"),s=i("4bf8"),a=i("79e5"),c=[].sort,r=[1,2,3];n(n.P+n.F*(a((function(){r.sort(void 0)}))||!a((function(){r.sort(null)}))||!i("2f21")(c)),"Array",{sort:function(t){return void 0===t?c.call(s(this)):c.call(s(this),o(t))}})},"67b6":function(t,e,i){"use strict";i("cef8")},"7e1e":function(t,e,i){"use strict";i.d(e,"b",(function(){return a})),i.d(e,"a",(function(){return c}));var n=i("b775"),o=i("4328"),s=i.n(o);function a(t,e){return e.createTime&&(e.begin_time=e.createTime[0],e.end_time=e.createTime[1]),Object(n["a"])({url:t+"?"+s.a.stringify(e,{indices:!1}),method:"get"})}function c(t,e){return Object(n["a"])({url:t+"?"+s.a.stringify(e,{indices:!1}),method:"get",responseType:"blob"})}},8752:function(t,e,i){"use strict";i("e23c")},cef8:function(t,e,i){},d839:function(t,e,i){"use strict";i.r(e);var n=function(){var t=this,e=t.$createElement,i=t._self._c||e;return i("div",{staticClass:"login",style:"background-image:url("+t.Background+");"},[i("div",{staticStyle:{"font-size":"42px",color:"#f4f4f5","text-align":"center","background-color":"transparent","padding-top":"20px"}},[t._v("\n "+t._s(t.$t("task.screen.title"))+"\n ")]),t._v(" "),i("div",[i("el-row",[i("el-col",{attrs:{span:12}},[i("div",{staticClass:"grid-content bg-purple-light"},[i("h2",{staticStyle:{"font-size":"50px",color:"#f4f4f5","margin-left":"100px","padding-top":"10px"}},[t._v("\n "+t._s(t.$t("task.screen.task_screen")))])]),t._v(" "),i("div",{staticClass:"grid-content bg-purple-light"},[i("el-form",{attrs:{inline:!0,"label-position":"right","label-suffix":":"}},[i("el-form-item",{staticClass:"custom-label",staticStyle:{"margin-left":"100px"},attrs:{label:t.$t("task.screen.device")}},[i("el-select",{attrs:{id:"item-size",clearable:"",filterable:"",size:"small",placeholder:t.$t("auto.common.please")},on:{change:t.changeDevice},model:{value:t.device,callback:function(e){t.device=e},expression:"device"}},t._l(t.ledList,(function(t){return i("el-option",{key:t.device_code,attrs:{label:t.device_name,value:t.device_code}})})),1)],1)],1)],1)]),t._v(" "),i("el-col",{attrs:{span:12}},[i("div",{staticClass:"grid-content bg-purple-light"},[i("h2",{staticStyle:{"font-size":"50px",color:"#f4f4f5","text-align":"right","margin-right":"140px"}},[t._v(t._s(t.getTime))])]),t._v(" "),i("div",{staticClass:"grid-content bg-purple-light"},[i("p",{staticStyle:{"font-size":"50px",color:"#f4f4f5","text-align":"right","margin-right":"110px"}},[i("b",[t._v(t._s(t.getDate))])])])])],1)],1),t._v(" "),""!=t.device?i("el-form",{ref:"form",staticStyle:{"margin-top":"50px","padding-top":"10px"},attrs:{model:t.form,rules:t.rules,size:"small","label-width":"200px"}},[i("el-row",[i("el-col",{staticStyle:{"padding-left":"100px"},attrs:{span:12}},[i("el-form-item",{staticClass:"custom-label",staticStyle:{"padding-bottom":"50px"},attrs:{prop:"task_code",label:t.$t("task.screen.task_code")}},[i("el-input",{staticClass:"cpp",model:{value:t.form.task_code,callback:function(e){t.$set(t.form,"task_code",e)},expression:"form.task_code"}})],1),t._v(" "),i("el-form-item",{staticClass:"custom-label",staticStyle:{"padding-bottom":"50px"},attrs:{label:t.$t("task.screen.inst_code"),prop:"inst_code"}},[i("el-input",{staticClass:"cpp",model:{value:t.form.inst_code,callback:function(e){t.$set(t.form,"inst_code",e)},expression:"form.inst_code"}})],1),t._v(" "),i("el-form-item",{staticClass:"custom-label",staticStyle:{"padding-bottom":"50px"},attrs:{label:t.$t("task.screen.start"),prop:"start_device_code"}},[i("el-input",{staticClass:"cpp",model:{value:t.form.start_device_code,callback:function(e){t.$set(t.form,"start_device_code",e)},expression:"form.start_device_code"}})],1),t._v(" "),i("el-form-item",{staticClass:"custom-label",staticStyle:{"padding-bottom":"50px"},attrs:{label:t.$t("task.screen.end"),prop:"next_device_code"}},[i("el-input",{staticClass:"cpp",model:{value:t.form.next_device_code,callback:function(e){t.$set(t.form,"next_device_code",e)},expression:"form.next_device_code"}})],1),t._v(" "),i("el-form-item",{staticClass:"custom-label",staticStyle:{"padding-bottom":"50px"},attrs:{label:t.$t("task.screen.material"),prop:"material_type"}},[i("el-input",{staticClass:"cpp",model:{value:t.form.material_type,callback:function(e){t.$set(t.form,"material_type",e)},expression:"form.material_type"}}),t._v(" "),i("span",{staticStyle:{color:"#f4f4f5","margin-left":"10px"}})],1)],1),t._v(" "),i("el-col",{staticStyle:{"padding-left":"100px"},attrs:{span:12}},[i("el-form-item",{staticClass:"custom-label",staticStyle:{"padding-bottom":"50px"},attrs:{label:t.$t("task.screen.material_num"),prop:"quantity"}},[i("el-input",{staticClass:"cpp",model:{value:t.form.quantity,callback:function(e){t.$set(t.form,"quantity",e)},expression:"form.quantity"}}),t._v(" "),i("span",{staticStyle:{color:"#f4f4f5","margin-left":"10px"}})],1),t._v(" "),i("el-form-item",{staticClass:"custom-label",staticStyle:{"padding-bottom":"50px"},attrs:{label:t.$t("task.screen.vehicle_code"),prop:"vehicle_code"}},[i("el-input",{staticClass:"cpp",model:{value:t.form.vehicle_code,callback:function(e){t.$set(t.form,"vehicle_code",e)},expression:"form.vehicle_code"}}),t._v(" "),i("span",{staticStyle:{color:"#f4f4f5","margin-left":"10px"}})],1),t._v(" "),i("el-form-item",{staticClass:"custom-label",staticStyle:{"padding-bottom":"50px"},attrs:{label:t.$t("task.screen.bar"),prop:"instruction_status"}},[i("el-input",{staticClass:"cpp",model:{value:t.form.instruction_status,callback:function(e){t.$set(t.form,"instruction_status",e)},expression:"form.instruction_status"}}),t._v(" "),i("span",{staticStyle:{color:"#f4f4f5","margin-left":"10px"}})],1),t._v(" "),i("el-form-item",{staticClass:"custom-label",staticStyle:{"padding-bottom":"50px"},attrs:{label:t.$t("task.screen.create_time"),prop:"entry_time"}},[i("el-input",{staticClass:"cpp",model:{value:t.form.entry_time,callback:function(e){t.$set(t.form,"entry_time",e)},expression:"form.entry_time"}}),t._v(" "),i("span",{staticStyle:{color:"#f4f4f5","margin-left":"10px"}})],1),t._v(" "),i("el-form-item",{staticClass:"custom-label",staticStyle:{"padding-bottom":"50px"},attrs:{label:t.$t("task.screen.IP"),prop:"ip"}},[i("el-input",{staticClass:"cpp",model:{value:t.form.ip,callback:function(e){t.$set(t.form,"ip",e)},expression:"form.ip"}}),t._v(" "),i("span",{staticStyle:{color:"#f4f4f5","margin-left":"10px"}})],1)],1)],1)],1):t._e(),t._v(" "),""!=t.device?i("div",{staticStyle:{"font-size":"30px",color:"#f4f4f5","text-align":"center","background-color":"transparent","padding-top":"50px"}},[i("i",{staticClass:"el-icon-lock"}),t._v("\n http://127.0.0.1:8014/bigScreen/screen\n ")]):t._e()],1)},o=[],s=i("3cdc"),a=i("b775");function c(){return Object(a["a"])({url:"api/screen",method:"get"})}function r(t){return Object(a["a"])({url:"api/screen/getLedMessage/"+t,method:"get"})}var l={selectLedList:c,getLedMessage:r},d=i("ff84"),f=i.n(d),u=i("025d"),p=i.n(u),m={mixins:[s["a"]],data:function(){return{Background:f.a,BackgroundTwo:p.a,device_code:"",device_id:"",device:"",vehicle_code:"",bar_code:"",entry_time:"",ip:"",form:{task_code:"",inst_code:"",start_device_code:"",next_device_code:"",material_type:"",quantity:"",vehicle_code:"",instruction_status:"",entry_time:"",ip:""},ledList:[],getTime:"",getDate:"",src:"../images/bigScreen.png"}},mounted:function(){var t=this;this.init();var e=setInterval((function(){t.settime(),t.getMessage()}),1e3);this.$once("hook:beforeDestroy",(function(){clearInterval(e)}))},beforeDestroy:function(){clearInterval(this.timer)},created:function(){var t=this;this.$nextTick((function(){l.selectLedList().then((function(e){t.ledList=e}))}))},methods:{changeDevice:function(t){this.device=t},getMessage:function(){var t=this;l.getLedMessage(this.device).then((function(e){t.form=e}))},settime:function(){var t=this,e=(new Date).getFullYear(),i=(new Date).getMonth()+1,n=(new Date).getDate(),o=(new Date).getHours(),s=(new Date).getMinutes()<10?"0"+(new Date).getMinutes():(new Date).getMinutes(),a=(new Date).getSeconds()<10?"0"+(new Date).getSeconds():(new Date).getSeconds();t.getDate=e+"年"+i+"月"+n+"日 星期"+"日一二三四五六".charAt((new Date).getDay()),t.getTime=o+":"+s+":"+a}}},h=m,g=(i("8752"),i("67b6"),i("2877")),b=Object(g["a"])(h,n,o,!1,null,"4af18b6e",null);e["default"]=b.exports},e23c:function(t,e,i){},e350:function(t,e,i){"use strict";i.d(e,"a",(function(){return o}));i("6762"),i("2fdb");var n=i("4360");function o(t){if(t&&t instanceof Array&&t.length>0){var e=n["a"].getters&&n["a"].getters.roles,i=t,o=e.some((function(t){return i.includes(t)}));return!!o}return!1}},ff84:function(t,e,i){t.exports=i.p+"static/img/bigScreen.f40177d8.png"}}]);