1 line
8.0 KiB
JavaScript
1 line
8.0 KiB
JavaScript
"use strict";(self["webpackChunktft_mes"]=self["webpackChunktft_mes"]||[]).push([[4362],{4362:function(t,e,n){n.r(e),n.d(e,{default:function(){return h}});var r=function(){var t=this,e=t._self._c;return e("div",{staticClass:"main-box"},[e("el-row",{attrs:{gutter:10}},[e("el-col",{attrs:{span:4}},[e("div",{staticClass:"left-box"},[e("el-tree",{attrs:{data:t.treeData,"node-key":"id",props:t.defaultTime,"default-expand-all":""},on:{"node-click":t.clickDevice}})],1)]),e("el-col",{attrs:{span:20}},[e("div",{staticClass:"right-box"},[e("search-bar",{ref:"searchBarForm",attrs:{formConfigs:t.formConfig},on:{headBtnClick:t.buttonClick}}),e("div",{staticStyle:{clear:"both"}},[e("span",[t._v("报警总时长为"+t._s(t.totalTime)+"分钟")])]),e("base-table",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,"table-props":t.tableProps,"table-data":t.tableData,"max-height":t.tableH}}),e("pagination",{attrs:{page:t.listQuery.current,limit:t.listQuery.size,total:t.total},on:{"update:page":function(e){return t.$set(t.listQuery,"current",e)},"update:limit":function(e){return t.$set(t.listQuery,"size",e)},pagination:function(e){return t.getList()}}})],1)])],1)],1)},a=[],i=n(475),o=n(5591),u=n(147),l=n(381),s=n.n(l);const m=[{prop:"line",label:"产线"},{prop:"unit",label:"单元"},{prop:"equipmentName",label:"设备名称",minWidth:120},{prop:"alarmCode",label:"报警代码",minWidth:120},{prop:"alarmContent",label:"报警内容",minWidth:150},{prop:"startTime",filter:i.g6,label:"报警开始时间",minWidth:160},{prop:"endTime",filter:i.g6,label:"报警结束时间",minWidth:160},{prop:"maintainTime",label:"报警持续时间/秒",width:150}];var c={name:"HistoryAlarm",data(){return{treeData:[],defaultTime:{children:"children",label:"name"},formConfig:[{type:"datePicker",label:"报警开始时间",dateType:"datetimerange",format:"yyyy-MM-dd HH:mm:ss",valueFormat:"yyyy-MM-ddTHH:mm:ss",rangeSeparator:"-",startPlaceholder:"开始时间",endPlaceholder:"结束时间",param:"timeVal",defaultSelect:[],width:350},{type:"input",label:"报警代码",placeholder:"报警代码",param:"alarmCode"},{type:"button",btnName:"查询",name:"search",color:"primary"}],tableProps:m,tableData:[],tableH:(0,i.NC)(340),total:0,listQuery:{current:1,size:20},totalTime:""}},mounted(){window.addEventListener("resize",(()=>{this.tableH=(0,i.NC)(340)})),this.getTree(),this.formConfig[0].defaultSelect=[s()().format("yyyy-MM-DD")+"T00:00:00",s()().format("yyyy-MM-DD")+"T23:59:59"],this.listQuery.startTime=s()().format("yyyy-MM-DD")+"T00:00:00",this.listQuery.endTime=s()().format("yyyy-MM-DD")+"T23:59:59",this.getList()},methods:{getTree(){(0,o.SI)().then((t=>{this.treeData=t.data}))},getList(){(0,u.Uw)({...this.listQuery}).then((t=>{0===t.code&&(this.total=t.data.total,this.tableData=t.data.records,this.totalTime=t.data.records.length>0?t.data.records[0].totalTime:0)}))},buttonClick(t){this.listQuery.startTime=t.timeVal?t.timeVal[0]:"",this.listQuery.endTime=t.timeVal?t.timeVal[1]:"",this.listQuery.alarmCode=t.alarmCode,this.listQuery.equipmentName="",this.getList()},clickDevice(t){console.log(t),t.children||(this.formConfig[0].defaultSelect=[],this.$refs.searchBarForm.resetForm(),this.listQuery.startTime="",this.listQuery.endTime="",this.listQuery.alarmCode="",this.listQuery.equipmentName=t.name,this.listQuery.current=1,this.getList())}}},d=c,p=n(1001),f=(0,p.Z)(d,r,a,!1,null,"81f66dc2",null),h=f.exports},5591:function(t,e,n){n.d(e,{FH:function(){return u},Hp:function(){return l},JQ:function(){return o},SI:function(){return i},WQ:function(){return c},b6:function(){return s},iv:function(){return a},m:function(){return m}});var r=n(8859);function a(){return(0,r.Z)({url:"/common/getList",method:"post"})}function i(){return(0,r.Z)({url:"/common/getTreeData",method:"post"})}function o(t){return(0,r.Z)({url:"/common/updateEqSeq",method:"post",data:t})}function u(t){return(0,r.Z)({url:"/common/attachment/downloadFile",method:"get",responseType:"blob",params:t,timeout:6e4})}function l(t){return(0,r.Z)({url:"/common/getAlarmData",method:"post",data:t})}function s(t){return(0,r.Z)({url:"/common/getProductData",method:"post",data:t})}function m(t){return(0,r.Z)({url:"/common/getMaterialData",method:"post",data:t})}const c="/api/common/attachment/uploadFileFormData"},147:function(t,e,n){n.d(e,{$7:function(){return w},$F:function(){return y},$N:function(){return C},$d:function(){return d},A5:function(){return T},Ah:function(){return o},Dr:function(){return f},HJ:function(){return s},Im:function(){return q},KK:function(){return v},KQ:function(){return D},Ko:function(){return x},Ku:function(){return h},OP:function(){return l},OT:function(){return g},UP:function(){return b},Uw:function(){return F},YG:function(){return Q},bO:function(){return c},co:function(){return M},fK:function(){return S},h:function(){return A},jL:function(){return H},lJ:function(){return p},lZ:function(){return u},pl:function(){return k},rd:function(){return m},uN:function(){return i},yx:function(){return Z},zG:function(){return P},zh:function(){return a}});var r=n(8859);function a(t){return(0,r.Z)({url:"/equipment/PerformanceAnalysis/get",method:"post",data:t})}function i(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 u(t){return(0,r.Z)({url:"/equipment/PalletIndicatorAnalysis/page",method:"post",data:t})}function l(t){return(0,r.Z)({url:"/equipment/PalletIndicatorAnalysis/getType",method:"post",data:t})}function s(t){return(0,r.Z)({url:"/equipment/SparePartStock/page",method:"post",data:t})}function m(t){return(0,r.Z)({url:"/equipment/SparePartStock/inStock",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/equipment/SparePartStock/get",method:"post",data:t})}function d(t){return(0,r.Z)({url:"/equipment/SparePartStock/update",method:"post",data:t})}function p(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 y(t){return(0,r.Z)({url:"/equipment/SparePartStock/export",method:"post",responseType:"blob",data:t,timeout:6e4})}function g(t){return(0,r.Z)({url:"/equipment/SparePartStock/PageHis",method:"post",data:t})}function M(t){return(0,r.Z)({url:"/equipment/SparePartStock/exportHis",method:"post",responseType:"blob",data:t,timeout:6e4})}function b(t){return(0,r.Z)({url:"/equipment/MaintainManage/pageSelect",method:"post",data:t})}function Z(t){return(0,r.Z)({url:"/equipment/MaintainManage/unDistributeGet",method:"post",data:t})}function q(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 T(t){return(0,r.Z)({url:"/equipment/MaintainManage/completedDistribute",method:"post",data:t})}function P(t){return(0,r.Z)({url:"/equipment/MaintainManage/dispatch",method:"post",data:t})}function D(t){return(0,r.Z)({url:"/equipment/MaintainManage/confirm",method:"post",data:t})}function k(t){return(0,r.Z)({url:"/equipment/MaintainManage/PlainMaintainDelete",method:"post",data:t})}function Q(t){return(0,r.Z)({url:"/equipment/MaintainManage/PlanMaintainExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function C(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainPageSelect",method:"post",data:t})}function A(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainAdd",method:"post",data:t})}function v(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainModify",method:"post",data:t})}function H(t){return(0,r.Z)({url:"/equipment/MaintainManage/AUtoMaintainDelete",method:"post",data:t})}function w(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function x(t){return(0,r.Z)({url:"/equipment/AlarmMessage/nowAlertSelect",method:"post",data:t})}function F(t){return(0,r.Z)({url:"/equipment/AlarmMessage/historyAlertSelect",method:"post",data:t})}}}]); |