tft-fe/dist/js/6831.95f35749.js
2023-05-18 11:14:03 +08:00

1 line
6.6 KiB
JavaScript

"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[6831],{6831:function(t,n,e){e.r(n),e.d(n,{default:function(){return d}});var r=function(){var t=this,n=t._self._c;return n("div",{staticClass:"real-time-alarm"},[n("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),n("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}}),n("pagination",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,total:t.total},on:{"update:page":function(n){return t.$set(t.listQuery,"current",n)},"update:limit":function(n){return t.$set(t.listQuery,"size",n)},pagination:function(n){return t.getList()}}})],1)},a=[],u=e(475),o=e(5591),i=e(147);const c=[{prop:"line",label:"产线",minWidth:120},{prop:"unit",label:"单元"},{prop:"equipmentName",label:"设备名称"},{prop:"alarmCode",label:"报警代码"},{prop:"alarmContent",label:"报警内容"},{prop:"startAlertTime",label:"报警开始时间",filter:u.g6,minWidth:160}];var l={name:"RealTimeAlarm",data(){return{formConfig:[{type:"cascader",label:"产线/单元/设备",selectOptions:[],param:"keyword",cascaderProps:{checkStrictly:!0,value:"name",label:"name"},width:250},{type:"button",btnName:"查询",name:"search",color:"primary"}],tableProps:c,tableData:[],tableH:(0,u.NC)(340),total:0,listQuery:{current:1,size:20}}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,u.NC)(340)})),this.getTree(),this.getList()},methods:{getTree(){(0,o.SI)().then((t=>{this.formConfig[0].selectOptions=t.data}))},getList(){(0,i.Ko)({...this.listQuery}).then((t=>{0===t.code&&(this.total=t.data.total,this.tableData=t.data.records)}))},buttonClick(t){this.listQuery.line=t.keyword[0],this.listQuery.unit=t.keyword[1],this.listQuery.equipmentName=t.keyword[2],this.getList()}}},p=l,s=e(1001),m=(0,s.Z)(p,r,a,!1,null,"f97d1bf4",null),d=m.exports},5591:function(t,n,e){e.d(n,{FH:function(){return i},Hp:function(){return c},JQ:function(){return o},SI:function(){return u},WQ:function(){return s},b6:function(){return l},iv:function(){return a},m:function(){return p}});var r=e(8859);function a(){return(0,r.Z)({url:"/common/getList",method:"post"})}function u(){return(0,r.Z)({url:"/common/getTreeData",method:"post"})}function o(t){return(0,r.Z)({url:"/common/updateEqSeq",method:"post",data:t})}function i(t){return(0,r.Z)({url:"/common/attachment/downloadFile",method:"get",responseType:"blob",params:t,timeout:6e4})}function c(t){return(0,r.Z)({url:"/common/getAlarmData",method:"post",data:t})}function l(t){return(0,r.Z)({url:"/common/getProductData",method:"post",data:t})}function p(t){return(0,r.Z)({url:"/common/getMaterialData",method:"post",data:t})}const s="/api/common/attachment/uploadFileFormData"},147:function(t,n,e){e.d(n,{$7:function(){return H},$F:function(){return g},$N:function(){return Q},$d:function(){return m},A5:function(){return P},Ah:function(){return o},Dr:function(){return f},HJ:function(){return l},Im:function(){return y},KK:function(){return T},KQ:function(){return A},Ko:function(){return L},Ku:function(){return h},OP:function(){return c},OT:function(){return b},UP:function(){return M},Uw:function(){return x},YG:function(){return C},bO:function(){return s},co:function(){return Z},fK:function(){return S},h:function(){return w},jL:function(){return v},lJ:function(){return d},lZ:function(){return i},pl:function(){return D},rd:function(){return p},uN:function(){return u},yx:function(){return q},zG:function(){return k},zh:function(){return a}});var r=e(8859);function a(t){return(0,r.Z)({url:"/equipment/PerformanceAnalysis/get",method:"post",data:t})}function u(t){return(0,r.Z)({url:"/equipment/PerformanceAnalysis/getPlan",method:"post",data:t})}function o(t){return(0,r.Z)({url:"/equipment/PerformanceAnalysis/updatePlan",method:"post",data:t})}function i(t){return(0,r.Z)({url:"/equipment/PalletIndicatorAnalysis/page",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/equipment/PalletIndicatorAnalysis/getType",method:"post",data:t})}function l(t){return(0,r.Z)({url:"/equipment/SparePartStock/page",method:"post",data:t})}function p(t){return(0,r.Z)({url:"/equipment/SparePartStock/inStock",method:"post",data:t})}function s(t){return(0,r.Z)({url:"/equipment/SparePartStock/get",method:"post",data:t})}function m(t){return(0,r.Z)({url:"/equipment/SparePartStock/update",method:"post",data:t})}function d(t){return(0,r.Z)({url:"/equipment/SparePartStock/outStock",method:"post",data:t})}function f(t){return(0,r.Z)({url:"/equipment/SparePartStock/stockDetail",method:"post",data:t})}function h(t){return(0,r.Z)({url:"/equipment/SparePartStock/getBatchList",method:"post",data:t})}function g(t){return(0,r.Z)({url:"/equipment/SparePartStock/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function b(t){return(0,r.Z)({url:"/equipment/SparePartStock/PageHis",method:"post",data:t})}function Z(t){return(0,r.Z)({url:"/equipment/SparePartStock/exportHis",method:"post",responseType:"blob",data:t,timeout:6e4})}function M(t){return(0,r.Z)({url:"/equipment/MaintainManage/pageSelect",method:"post",data:t})}function q(t){return(0,r.Z)({url:"/equipment/MaintainManage/unDistributeGet",method:"post",data:t})}function y(t){return(0,r.Z)({url:"/equipment/MaintainManage/create",method:"post",data:t})}function S(t){return(0,r.Z)({url:"/equipment/MaintainManage/unDistribute",method:"post",data:t})}function P(t){return(0,r.Z)({url:"/equipment/MaintainManage/completedDistribute",method:"post",data:t})}function k(t){return(0,r.Z)({url:"/equipment/MaintainManage/dispatch",method:"post",data:t})}function A(t){return(0,r.Z)({url:"/equipment/MaintainManage/confirm",method:"post",data:t})}function D(t){return(0,r.Z)({url:"/equipment/MaintainManage/PlainMaintainDelete",method:"post",data:t})}function C(t){return(0,r.Z)({url:"/equipment/MaintainManage/PlanMaintainExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function Q(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainPageSelect",method:"post",data:t})}function w(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainAdd",method:"post",data:t})}function T(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainModify",method:"post",data:t})}function v(t){return(0,r.Z)({url:"/equipment/MaintainManage/AUtoMaintainDelete",method:"post",data:t})}function H(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function L(t){return(0,r.Z)({url:"/equipment/AlarmMessage/nowAlertSelect",method:"post",data:t})}function x(t){return(0,r.Z)({url:"/equipment/AlarmMessage/historyAlertSelect",method:"post",data:t})}}}]);