1 line
6.6 KiB
JavaScript
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",d
|