chunk-0bdc9797.eb0b435e.js 3.49 KB
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-0bdc9797"],{5661:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"dv",on:{keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.btnAction("query")}}},[a("sys-head",{attrs:{title:t.sysTitle,remark:"(停机时间 蓝色:大于等于2小于等于10,橙色:大于10小于等于20,红色大于20分钟)"}}),a("div",{staticClass:"time-select"},[a("bus-project-eq",{attrs:{isAGV:!1},on:{selectCallBackEmit:t.projectEqCallBackEmit}}),a("el-col",{attrs:{span:56}},[a("el-date-picker",{staticStyle:{width:"210px"},attrs:{required:"","data-msg":"开始日期时间不能为空",type:"datetime",placeholder:"选择开始日期时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.form.startTime,callback:function(e){t.$set(t.form,"startTime",e)},expression:"form.startTime"}}),a("el-date-picker",{staticStyle:{width:"210px"},attrs:{required:"",type:"datetime",placeholder:"选择结束日期时间","value-format":"yyyy-MM-dd HH:mm:ss"},model:{value:t.form.endTime,callback:function(e){t.$set(t.form,"endTime",e)},expression:"form.endTime"}})],1),a("el-button",{staticStyle:{margin:"0.2vw"},attrs:{icon:"el-icon-search"},on:{click:function(e){return t.btnAction("query")}}},[t._v("搜索")]),a("el-button",{staticStyle:{margin:"0.2vw"},on:{click:function(e){return t.btnAction("excel")}}},[t._v("Excel")]),a("sys-export",{ref:"childExport",attrs:{fileName:t.sysTitle,excelColumn:t.column.table}})],1),a("sys-table",{ref:"childTable",attrs:{tableHeight:"600",computeCls:t.computeObj,tableColumn:t.column.table}})],1)},i=[],l={data:function(){return{baseUrl:window.baseOnLineOrOff?window.appConfig.baseUlrOnLine:"http://127.0.0.1:10099",sysTitle:"故障分析 ver:"+window.appConfig.appId,form:{startTime:(new Date).format("yyyy-MM-dd 00:00:00"),endTime:(new Date).format("yyyy-MM-dd 23:59:59")},sysData:{},params:{nowSelectProjectVal:"",nowSelectEqVal:""},column:{table:window.faultAnalysis},computeObj:{func:function(t){if("ErrorDuration"==t.columnName)return t.val>=2&&t.val<=10?"color:#1e9fff":t.val>10&&t.val<=20?"color:#ffb800":t.val>20?"color:red":""}}}},methods:{projectEqCallBackEmit:function(t){this.params.nowSelectProjectVal=t.nowSelectProject["selectKey"],this.params.nowSelectEqVal=t.nowSelectEq["selectKey"]},btnAction:function(t){this.getData(t)},getData:function(t){var e=this;if(null!=this.form.startTime&&null!=this.form.endTime)if(new Date(this.form.startTime)>=new Date(this.form.endTime))this.$alert("开始时间不能大于等于结束时间","提示",{dangerouslyUseHTMLString:!0});else{var a={urlSuffix:"".concat(this.baseUrl,"/api/BulletinBoard/FaultStatistics?begin=").concat(this.form.startTime,"&end=").concat(this.form.endTime,"&projectCode=").concat(this.params.nowSelectProjectVal,"&equipmentCode=").concat(this.params.nowSelectEqVal),logTitle:"表格数据",isUrlALL:!0,isLoad:!0,falg:t},n=function(a){return e.sysData.tableData=a,"excel"==t&&e.$refs.childExport.exportExcel(a),a};this.$refs.childTable.initData(a,n)}else this.$alert("请选择开始时间-结束时间","提示",{dangerouslyUseHTMLString:!0})}},mounted:function(){this.getData()}},r=l,o=(a("d4ac"),a("76c8"),a("2877")),c=Object(o["a"])(r,n,i,!1,null,"759f3f98",null);e["default"]=c.exports},"76c8":function(t,e,a){"use strict";a("ce3c")},bab2:function(t,e,a){},ce3c:function(t,e,a){},d4ac:function(t,e,a){"use strict";a("bab2")}}]);
//# sourceMappingURL=chunk-0bdc9797.eb0b435e.js.map