1 line
8.1 KiB
JavaScript
1 line
8.1 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 x},$F:function(){return g},$N:function(){return A},$d:function(){return p},A5:function(){return P},Ah:function(){return o},Dr:function(){return h},HJ:function(){return m},Im:function(){return S},KK:function(){return H},KQ:function(){return k},Ko:function(){return F},Ku:function(){return y},OP:function(){return s},OT:function(){return M},UP:function(){return Z},Uw:function(){return L},YG:function(){return C},bO:function(){return d},co:function(){return b},fK:function(){return T},h:function(){return v},jD:function(){return u},jL:function(){return w},lJ:function(){return f},lZ:function(){return l},pl:function(){return Q},rd:function(){return c},uN:function(){return i},yx:function(){return q},zG:function(){return D},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/PerformanceAnalysis/getUtilization",method:"post",data:t})}function l(t){return(0,r.Z)({url:"/equipment/PalletIndicatorAnalysis/page",method:"post",data:t})}function s(t){return(0,r.Z)({url:"/equipment/PalletIndicatorAnalysis/getType",method:"post",data:t})}function m(t){return(0,r.Z)({url:"/equipment/SparePartStock/page",method:"post",data:t})}function c(t){return(0,r.Z)({url:"/equipment/SparePartStock/inStock",method:"post",data:t})}function d(t){return(0,r.Z)({url:"/equipment/SparePartStock/get",method:"post",data:t})}function p(t){return(0,r.Z)({url:"/equipment/SparePartStock/update",method:"post",data:t})}function f(t){return(0,r.Z)({url:"/equipment/SparePartStock/outStock",method:"post",data:t})}function h(t){return(0,r.Z)({url:"/equipment/SparePartStock/stockDetail",method:"post",data:t})}function y(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 M(t){return(0,r.Z)({url:"/equipment/SparePartStock/PageHis",method:"post",data:t})}function b(t){return(0,r.Z)({url:"/equipment/SparePartStock/exportHis",method:"post",responseType:"blob",data:t,timeout:6e4})}function Z(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 S(t){return(0,r.Z)({url:"/equipment/MaintainManage/create",method:"post",data:t})}function T(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 D(t){return(0,r.Z)({url:"/equipment/MaintainManage/dispatch",method:"post",data:t})}function k(t){return(0,r.Z)({url:"/equipment/MaintainManage/confirm",method:"post",data:t})}function Q(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 A(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainPageSelect",method:"post",data:t})}function v(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainAdd",method:"post",data:t})}function H(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainModify",method:"post",data:t})}function w(t){return(0,r.Z)({url:"/equipment/MaintainManage/AUtoMaintainDelete",method:"post",data:t})}function x(t){return(0,r.Z)({url:"/equipment/MaintainManage/AutoMaintainExport",method:"post",responseType:"blob",data:t,timeout:6e4})}function F(t){return(0,r.Z)({url:"/equipment/AlarmMessage/nowAlertSelect",method:"post",data:t})}function L(t){return(0,r.Z)({url:"/equipment/AlarmMessage/historyAlertSelect",method:"post",data:t})}}}]); |