tft-fe/dist/js/6831.9e0c6df8.js

1 line
7.2 KiB
JavaScript
Raw Permalink Normal View History

2023-06-30 14:01:06 +08:00
"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()}}},s=l,m=e(1001),p=(0,m.Z)(s,r,a,!1,null,"f97d1bf4",null),d=p.exports},5591:function(t,n,e){e.d(n,{FH:function(){return i},Hp:function(){return l},JQ:function(){return o},SI:function(){return u},Vx:function(){return s},WQ:function(){return d},b6:function(){return m},iv:function(){return a},jL:function(){return c},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/getFpyData",method:"post",data:t})}function l(t){return(0,r.Z)({url:"/common/getAlarmData",method:"post",data:t})}function s(t){return(0,r.Z)({url:"/common/getCapacityData",method:"post",data:t})}function m(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 d="/api/common/attachment/uploadFileFormData"},147:function(t,n,e){e.d(n,{$7:function(){return x},$F:function(){return M},$N:function(){return v},$d:function(){return h},A5:function(){return D},Ah:function(){return o},Az:function(){return m},Dr:function(){return Z},HJ:function(){return p},Im:function(){return k},KK:function(){return F},KQ:function(){return Q},Ko:function(){return H},Ku:function(){return b},OP:function(){return l},OT:function(){return q},UP:function(){return P},Uw:function(){return K},YG:function(){return w},bO:function(){return f},co:function(){return y},fK:function(){return A},h:function(){return z},jD:function(){return i},jL:function(){return L},lJ:function(){return g},lZ:function(){return c},pl:function(){return T},rd:function(){return d},tR:function(){return s},uN:function(){return u},yx:function(){return S},zG:function(){return C},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