chunk-18897244.d3bc3a39.js.map
29.2 KB
{"version":3,"sources":["webpack:///./src/views/reportForms/faultFrequency.vue?a60d","webpack:///./src/views/reportForms/faultFrequency.vue?3ed7","webpack:///./src/views/reportForms/faultFrequency.vue?415f","webpack:///src/views/reportForms/faultFrequency.vue","webpack:///./src/views/reportForms/faultFrequency.vue?4ff3","webpack:///./src/views/reportForms/faultFrequency.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","on","$event","type","indexOf","_k","keyCode","key","btnAction","attrs","sysTitle","ref","projectCallBackEmit","dateCallBackEmit","staticStyle","_v","tableColumnAlarm40","tableDataSource","rate","background","color","height","lineHeight","overflow","whiteSpace","tableRateRowClick","tableRateColumnLabal","weekStr","monthStr","properly","_m","dialogRateInfo","title","visible","$set","column","staticRenderFns","component"],"mappings":"kHAAA,W,yDCAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,KAAKC,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAIA,EAAOC,KAAKC,QAAQ,QAAQV,EAAIW,GAAGH,EAAOI,QAAQ,QAAQ,GAAGJ,EAAOK,IAAI,SAAkB,KAAcb,EAAIc,UAAU,YAAY,CAACV,EAAG,WAAW,CAACW,MAAM,CAAC,MAAQf,EAAIgB,SAAS,OAAS,2BAA2BZ,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,cAAc,CAACa,IAAI,qBAAqBF,MAAM,CAAC,gBAAiB,GAAMR,GAAG,CAAC,mBAAqBP,EAAIkB,uBAAuBd,EAAG,sBAAsB,CAACa,IAAI,kBAAkBV,GAAG,CAAC,mBAAqBP,EAAImB,oBAAoBf,EAAG,YAAY,CAACgB,YAAY,CAAC,OAAS,SAASL,MAAM,CAAC,KAAO,kBAAkBR,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOR,EAAI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AEA,mCACA,CACA,OADA,EAEA,UAFA,EAGA,aAJA,IAUA,oBApOA,WAqOA,SAyBA,OAxBA,QACA,YADA,KAEA,YAFA,WAGA,eAHA,UAIA,aAJA,WAKA,gBALA,UAOA,YAPA,SAQA,wBAEA,+CACA,QACA,cADA,YAEA,cAFA,YAIA,iBAJA,eAKA,eALA,aAMA,kBANA,gBAQA,cARA,YASA,iCAIA,GAGA,oBAjQA,WAqQA,IAHA,SACA,eACA,0BACA,oBACA,WACA,kBAEA,UACA,QAeA,OAdA,6CACA,QACA,UACA,cAFA,YAGA,gBAHA,cAIA,QAJA,MAKA,gBALA,cAOA,cAPA,YAQA,SARA,OASA,aATA,WAUA,6BAGA,GAGA,sBA5RA,WA6RA,SACA,QACA,MADA,KAEA,cAFA,OAGA,kBAHA,OAIA,QAJA,UAKA,QALA,OAMA,iBAEA,QAWA,OAVA,sDACA,QACA,UACA,gBAFA,cAGA,oBAHA,kBAIA,UAJA,QAKA,UALA,QAMA,uBAGA,IAGA,QA7VA,WA+VA,kBCraka,I,kCCS9Z4B,EAAY,eACd,EACA5C,EACA2C,GACA,EACA,KACA,WACA,MAIa,aAAAC,E","file":"static/js/chunk-18897244.d3bc3a39.js","sourcesContent":["export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--8-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--8-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--8-oneOf-1-2!../../../node_modules/sass-loader/dist/cjs.js??ref--8-oneOf-1-3!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./faultFrequency.vue?vue&type=style&index=1&lang=scss&\"","export * from \"-!../../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--6-oneOf-1-0!../../../node_modules/css-loader/dist/cjs.js??ref--6-oneOf-1-1!../../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../../node_modules/postcss-loader/src/index.js??ref--6-oneOf-1-2!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./faultFrequency.vue?vue&type=style&index=0&id=d2b12050&scoped=true&lang=css&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"dv\",on:{\"keyup\":function($event){if(!$event.type.indexOf('key')&&_vm._k($event.keyCode,\"enter\",13,$event.key,\"Enter\")){ return null; }return _vm.btnAction('query')}}},[_c('sys-head',{attrs:{\"title\":_vm.sysTitle,\"remark\":'(点击妥善率表格行查看项目对应故障柱状图)'}}),_c('div',{staticClass:\"time-select\"},[_c('bus-project',{ref:\"childSelectProject\",attrs:{\"isCallBackEmit\":true},on:{\"selectCallBackEmit\":_vm.projectCallBackEmit}}),_c('sys-year-month-week',{ref:\"childSelectDate\",on:{\"selectCallBackEmit\":_vm.dateCallBackEmit}}),_c('el-button',{staticStyle:{\"margin\":\"0.2vw\"},attrs:{\"icon\":\"el-icon-search\"},on:{\"click\":function($event){return _vm.btnAction('query')}}},[_vm._v(\"搜索\")]),_c('el-button',{staticStyle:{\"margin\":\"0.2vw\"},on:{\"click\":function($event){return _vm.btnAction('excel')}}},[_vm._v(\"Excel\")]),_c('sys-export',{ref:\"childExport\",attrs:{\"fileName\":_vm.sysTitle,\"excelColumn\":_vm.tableColumnAlarm40}})],1),_c('div',{staticClass:\"table2\"},[_c('div',{staticClass:\"table2-one\"},[_c('el-table',{ref:\"tableDataOne\",attrs:{\"data\":_vm.tableDataSource.rate,\"height\":\"350\",\"stripe\":\"\",\"border\":\"\",\"element-loading-spinner\":\"el-icon-loading\",\"header-cell-style\":{\n\t\t\t\t\tbackground: '#008c8c',\n\t\t\t\t\tcolor: '#000000',\n\t\t\t\t\theight: '50px',\n\t\t\t\t\tlineHeight: '50px',\n\t\t\t\t\toverflow: 'hidden',\n\t\t\t\t\twhiteSpace: 'nowrap',\n\t\t\t\t}},on:{\"row-click\":_vm.tableRateRowClick}},[_c('el-table-column',{attrs:{\"prop\":\"projectName\",\"label\":\"项目(目标99%)\",\"width\":\"280\",\"fixed\":\"left\"}}),_c('el-table-column',{attrs:{\"label\":_vm.tableRateColumnLabal.weekStr}},[_c('el-table-column',{attrs:{\"prop\":\"sumTimeWeek\",\"label\":\"故障时间(分)\",\"width\":\"140\"}}),_c('el-table-column',{attrs:{\"prop\":\"weekTuoSanRate\",\"label\":\"妥善率(%)\",\"width\":\"120\"}})],1),_c('el-table-column',{attrs:{\"label\":_vm.tableRateColumnLabal.monthStr}},[_c('el-table-column',{attrs:{\"prop\":\"sumTimeMonth\",\"label\":\"故障时间(分)\",\"width\":\"140\"}}),_c('el-table-column',{attrs:{\"prop\":\"monthTuoSanRate\",\"label\":\"妥善率(%)\",\"width\":\"120\"}})],1),_c('el-table-column',{attrs:{\"label\":_vm.tableRateColumnLabal.properly}},[_c('el-table-column',{attrs:{\"prop\":\"weekDefault\",\"label\":\"周开机(分)\",\"width\":\"145\"}}),_c('el-table-column',{attrs:{\"prop\":\"monthDefault\",\"label\":\"月开机(分)\",\"width\":\"145\"}})],1)],1)],1),_vm._m(0)]),_c('div',{staticClass:\"table1\"},[_c('div',{staticClass:\"table1-one\"},[_c('sys-table',{ref:\"childTableAlarm40\",attrs:{\"tableHeight\":\"300\",\"tableColumn\":_vm.tableColumnAlarm40}})],1)]),_c('el-dialog',{attrs:{\"title\":_vm.dialogRateInfo.title,\"visible\":_vm.dialogRateInfo.visible,\"width\":\"90%\"},on:{\"update:visible\":function($event){return _vm.$set(_vm.dialogRateInfo, \"visible\", $event)}}},[_c('div',{staticClass:\"dialog-dv\"},[_c('div',{staticClass:\"dv-bottem\"},[_c('sys-table',{ref:\"childTableRateInfo\",attrs:{\"tableHeight\":\"400\",\"tableColumn\":_vm.dialogRateInfo.column}})],1)])])],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticStyle:{\"width\":\"45%\",\"height\":\"300px\"}},[_c('div',{staticStyle:{\"display\":\"flex\",\"width\":\"100px\",\"margin-left\":\"36px\"}}),_c('div',{staticStyle:{\"width\":\"100%\"},attrs:{\"id\":\"main\"}})])}]\n\nexport { render, staticRenderFns }","<template>\r\n\t<div class=\"dv\" v-on:keyup.enter=\"btnAction('query')\">\r\n\t\t<sys-head :title=\"sysTitle\" :remark=\"'(点击妥善率表格行查看项目对应故障柱状图)'\"></sys-head>\r\n\t\t<div class=\"time-select\">\r\n\t\t\t<bus-project ref=\"childSelectProject\" :isCallBackEmit=\"true\" @selectCallBackEmit=\"projectCallBackEmit\"></bus-project>\r\n\t\t\t<sys-year-month-week ref=\"childSelectDate\" @selectCallBackEmit=\"dateCallBackEmit\"></sys-year-month-week>\r\n\t\t\t<el-button @click=\"btnAction('query')\" icon=\"el-icon-search\" style=\"margin: 0.2vw;\">搜索</el-button>\r\n\t\t\t<el-button @click=\"btnAction('excel')\" style=\"margin: 0.2vw;\">Excel</el-button>\r\n\t\t\t<sys-export ref=\"childExport\" :fileName=\"sysTitle\" :excelColumn=\"tableColumnAlarm40\"></sys-export>\r\n\t\t</div>\r\n\t\t<!-- 本周和本月妥善率、柱状图 -->\r\n\t\t<div class=\"table2\">\r\n\t\t\t<div class=\"table2-one\">\r\n\t\t\t\t<el-table\r\n\t\t\t\t\tref=\"tableDataOne\"\r\n\t\t\t\t\t:data=\"tableDataSource.rate\"\r\n\t\t\t\t\t@row-click=\"tableRateRowClick\"\r\n\t\t\t\t\theight=\"350\"\r\n\t\t\t\t\tstripe\r\n\t\t\t\t\tborder\r\n\t\t\t\t\telement-loading-spinner=\"el-icon-loading\"\r\n\t\t\t\t\t:header-cell-style=\"{\r\n\t\t\t\t\t\tbackground: '#008c8c',\r\n\t\t\t\t\t\tcolor: '#000000',\r\n\t\t\t\t\t\theight: '50px',\r\n\t\t\t\t\t\tlineHeight: '50px',\r\n\t\t\t\t\t\toverflow: 'hidden',\r\n\t\t\t\t\t\twhiteSpace: 'nowrap',\r\n\t\t\t\t\t}\"\r\n\t\t\t\t>\r\n\t\t\t\t\t<el-table-column prop=\"projectName\" label=\"项目(目标99%)\" width=\"280\" fixed=\"left\"></el-table-column>\r\n\t\t\t\t\t<el-table-column :label=\"tableRateColumnLabal.weekStr\">\r\n\t\t\t\t\t\t<el-table-column prop=\"sumTimeWeek\" label=\"故障时间(分)\" width=\"140\" />\r\n\t\t\t\t\t\t<el-table-column prop=\"weekTuoSanRate\" label=\"妥善率(%)\" width=\"120\" />\r\n\t\t\t\t\t</el-table-column>\r\n\t\t\t\t\t<el-table-column :label=\"tableRateColumnLabal.monthStr\">\r\n\t\t\t\t\t\t<el-table-column prop=\"sumTimeMonth\" label=\"故障时间(分)\" width=\"140\" />\r\n\t\t\t\t\t\t<el-table-column prop=\"monthTuoSanRate\" label=\"妥善率(%)\" width=\"120\" />\r\n\t\t\t\t\t</el-table-column>\r\n\r\n\t\t\t\t\t<el-table-column :label=\"tableRateColumnLabal.properly\">\r\n\t\t\t\t\t\t<el-table-column prop=\"weekDefault\" label=\"周开机(分)\" width=\"145\" />\r\n\t\t\t\t\t\t<el-table-column prop=\"monthDefault\" label=\"月开机(分)\" width=\"145\" />\r\n\t\t\t\t\t</el-table-column>\r\n\t\t\t\t</el-table>\r\n\t\t\t</div>\r\n\t\t\t<div style=\" width: 45%; height: 300px;\">\r\n\t\t\t\t<div style=\"display: flex; width: 100px; margin-left: 36px;\"></div>\r\n\t\t\t\t<!-- 柱状图 -->\r\n\t\t\t\t<div style=\" width: 100%; \" id=\"main\"></div>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<!-- 超40分钟报警 -->\r\n\t\t<div class=\"table1\">\r\n\t\t\t<div class=\"table1-one\">\r\n\t\t\t\t<sys-table ref=\"childTableAlarm40\" tableHeight=\"300\" :tableColumn=\"tableColumnAlarm40\"></sys-table>\r\n\t\t\t</div>\r\n\t\t</div>\r\n\t\t<!-- 柱状图点击弹窗表格(本周和本月妥善率详情) -->\r\n\t\t<el-dialog :title=\"dialogRateInfo.title\" :visible.sync=\"dialogRateInfo.visible\" width=\"90%\">\r\n\t\t\t<div class=\"dialog-dv\">\r\n\t\t\t\t<div class=\"dv-bottem\">\r\n\t\t\t\t\t<sys-table ref=\"childTableRateInfo\" tableHeight=\"400\" :tableColumn=\"dialogRateInfo.column\"></sys-table>\r\n\t\t\t\t</div>\r\n\t\t\t</div>\r\n\t\t</el-dialog>\r\n\t</div>\r\n</template>\r\n\r\n<script>\r\nexport default {\r\n\tdata() {\r\n\t\treturn {\r\n\t\t\tbaseUrl: !window.baseOnLineOrOff ? 'http://127.0.0.1:10099' : window.appConfig.baseUlrOnLine,\r\n\t\t\tsysTitle: '故障报告 ver:' + window.appConfig.appId,\r\n\t\t\tparams: {\r\n\t\t\t\tnowSelectProjectVal: '',\r\n\t\t\t\tisFrist: false,\r\n\r\n\t\t\t\tselectYear: '', //年\r\n\t\t\t\tselectMonth: '', //月\r\n\t\t\t\tselectWeekStart: '',\r\n\t\t\t\tselectWeekEnd: '',\r\n\t\t\t\tselectWeekValue: '', //控件周选择的值\r\n\t\t\t\tisCurrentMonth: '', //是否当月\r\n\t\t\t},\r\n\r\n\t\t\tsysData: {\r\n\t\t\t\tweekDiffDay: 0, //周之间的天数\r\n\t\t\t\tmonthDiffDay: 0, //月之间的天数\r\n\t\t\t\tnowClickRowVal: {}, //当前行点击的信息\r\n\t\t\t},\r\n\t\t\ttableDataSource: {\r\n\t\t\t\trate: [],\r\n\t\t\t\talarmSum40: [],\r\n\t\t\t},\r\n\t\t\t//妥善率表格文本显示\r\n\t\t\ttableRateColumnLabal: {\r\n\t\t\t\tweekStr: '',\r\n\t\t\t\tmonthStr: '',\r\n\t\t\t\tprojectName: '',\r\n\t\t\t},\r\n\t\t\ttableColumnAlarm40: window.faultReportTable,\r\n\t\t\tdialogRateInfo: {\r\n\t\t\t\tcolumn: window.faultReportTableDialog,\r\n\t\t\t\tvisible: false,\r\n\t\t\t\tdata: [],\r\n\t\t\t\ttitle: '',\r\n\t\t\t},\r\n\t\t}\r\n\t},\r\n\tmethods: {\r\n\t\t//搜索、导出\r\n\t\tbtnAction(falg) {\r\n\t\t\tthis.getData(falg)\r\n\t\t},\r\n\t\t// 项目下拉框选择\r\n\t\tprojectCallBackEmit(selectObj) {\r\n\t\t\tdebugger\r\n\t\t\tthis.params.nowSelectProjectVal = selectObj['selectKey']\r\n\t\t\tif (this.params.isFrist) return\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tthis.getData('query')\r\n\t\t\t\tthis.params.isFrist = true\r\n\t\t\t}, 500)\r\n\t\t},\r\n\t\t// 年月周下拉框数据\r\n\t\tdateCallBackEmit(selectObj) {\r\n\t\t\t//console.log(selectObj)\r\n\t\t\tthis.params = { ...this.params, ...selectObj }\r\n\t\t},\r\n\t\t//妥善率表格行点击\r\n\t\ttableRateRowClick(row, column, event) {\r\n\t\t\tvar projectCode = row.ProjectCode\r\n\t\t\tif (!projectCode) return\r\n\t\t\tif (this.params.selectWeekStart == '' || this.params.selectWeekStart == null) {\r\n\t\t\t\tthis.$alert('点击妥善率表格行的时候,请不要替换选择条件!', '提示', { dangerouslyUseHTMLString: true })\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\tvar startTime = this.params.selectWeekStart\r\n\t\t\tvar endTime = this.params.selectWeekEnd\r\n\t\t\tthis.tableRateColumnLabal.projectName = row.projectName\r\n\t\t\tthis.sysData.nowClickRowVal = row\r\n\t\t\tlet xAxis = ''.enumerateDaysBetweenDates(this, startTime, endTime)\r\n\t\t\tlet data = this.sysData.projectAlarmSum.filter((x) => x.ProjectCode == projectCode)\r\n\t\t\tthis.initEchart(xAxis, data)\r\n\t\t},\r\n\t\tgetData(flag) {\r\n\t\t\tif (this.params.selectYear === '' || this.params.selectMonth === '' || this.params.selectWeekEnd === '') {\r\n\t\t\t\tthis.$alert('请选择年、月和周', '提示', { dangerouslyUseHTMLString: true })\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\tlet opt = {\r\n\t\t\t\turlSuffix: `${this.baseUrl}/api/BulletinBoard/GetFaultReport?yyyyMonth=${this.params.selectWeekValue}&projectCode=${this.params.nowSelectProjectVal}`,\r\n\t\t\t\tlogTitle: this.sysTitle,\r\n\t\t\t\tisUrlALL: true,\r\n\t\t\t\tisLoad: true,\r\n\t\t\t}\r\n\t\t\tlet callBackFn = (res) => {\r\n\t\t\t\tdebugger\r\n\t\t\t\tif (!this.ajaxSuccessDataBefore(res.data.data.listMonth)) return\r\n\r\n\t\t\t\tthis.initTableRateColumnLabal(res.data.data)\r\n\t\t\t\tthis.initTableProperRate(res.data.data)\r\n\t\t\t\tthis.initTableAlarm40(res.data.data.listAlarmSum40)\r\n\t\t\t\tif (flag == 'excel') this.exportExcel()\r\n\t\t\t}\r\n\t\t\t''.ajax(this, opt, callBackFn)\r\n\t\t},\r\n\t\t//初始化妥善率表头信息\r\n\t\tinitTableRateColumnLabal(dataSource) {\r\n\t\t\t//本周天之间的天数,不是当月weekDiffDay=当前时间-选择框周开始时间\r\n\t\t\tlet weekDiffDay = 7\r\n\t\t\tif (dataSource.isInterval == true) {\r\n\t\t\t\tconst startDate = this.$moment(this.params.selectWeekStart)\r\n\t\t\t\tconst endDate = this.$moment(new Date().format('yyyy-MM-dd'))\r\n\t\t\t\tweekDiffDay = Math.floor(endDate.diff(startDate, 'days')) + 1\r\n\t\t\t}\r\n\t\t\t//本月天之间的天数,不是当月monthDiffDay=当前时间-选择框月\r\n\t\t\tlet monthDiffDay = dataSource.diffDay\r\n\t\t\tif (this.params.isCurrentMonth) {\r\n\t\t\t\tvar start = this.params.selectYear + '-' + this.params.selectMonth + '-01'\r\n\t\t\t\tmonthDiffDay = ''.enumerateDaysBetweenDayCount(this, start, new Date())\r\n\t\t\t}\r\n\t\t\tthis.sysData.weekDiffDay = weekDiffDay\r\n\t\t\tthis.sysData.monthDiffDay = monthDiffDay\r\n\t\t\tthis.tableRateColumnLabal.weekStr = `本周${dataSource.weekStr}(当前${weekDiffDay}天)`\r\n\t\t\tthis.tableRateColumnLabal.monthStr = `本月${dataSource.monthStr}(${dataSource.diffDay},当前${monthDiffDay}天)`\r\n\t\t\tthis.tableRateColumnLabal.properly = `妥善率目标(${dataSource.properlyTarget[0].dictValue}%)`\r\n\t\t},\r\n\t\t//本周和本月妥善率表格加载\r\n\t\tinitTableProperRate(dataSource) {\r\n\t\t\tlet thisInfo = this\r\n\t\t\tvar resultData = []\r\n\t\t\tlet weekDefaultVal = 24 * 60 * this.sysData.weekDiffDay\r\n\t\t\tlet monthDefaultVal = 1440 * this.sysData.monthDiffDay\r\n\t\t\tdataSource.listMonth.forEach((y) => {\r\n\t\t\t\t//在参数y填充周的数据\r\n\t\t\t\tconst weekItem = dataSource.listWeek.find((item) => item.ProjectCode === y.ProjectCode)\r\n\t\t\t\tif (weekItem != null) {\r\n\t\t\t\t\ty['sumTimeWeek'] = weekItem.sumTime\r\n\t\t\t\t\ty['weekTuoSanRate'] = this.numberHandler(weekItem.sumTime, weekDefaultVal)\r\n\t\t\t\t}\r\n\t\t\t\ty['monthDefault'] = monthDefaultVal\r\n\t\t\t\ty['sumTimeMonth'] = y.sumTime\r\n\t\t\t\ty['monthTuoSanRate'] = this.numberHandler(y.sumTimeMonth, y.monthDefault)\r\n\r\n\t\t\t\ty['weekDefault'] = weekDefaultVal\r\n\t\t\t\tresultData.push(y)\r\n\t\t\t})\r\n\r\n\t\t\t//没有值填充 默认\r\n\t\t\tresultData.forEach((x) => {\r\n\t\t\t\tif (!x['sumTimeWeek']) x['sumTimeWeek'] = 0\r\n\t\t\t\tif (!x['weekTuoSanRate']) x['weekTuoSanRate'] = '100.00'\r\n\t\t\t})\r\n\t\t\tthis.tableDataSource.rate = resultData\r\n\r\n\t\t\t//默认触发第一行\r\n\t\t\tif (resultData.length > 1) {\r\n\t\t\t\tthisInfo.$nextTick(() => {\r\n\t\t\t\t\tdocument.querySelector('.el-table__row').click()\r\n\t\t\t\t})\r\n\t\t\t}\r\n\t\t},\r\n\t\t//本周故障 柱状图数据处理\r\n\t\techartDataHandle(xAxis, data) {\r\n\t\t\tconst option = window.faultReport_guZhangFengxi\r\n\t\t\toption.title.text = `${this.tableRateColumnLabal.projectName}:` + this.sysData.nowClickRowVal.sumTimeWeek + '分' + '(点击柱子查看明细)'\r\n\t\t\toption.xAxis[0].data = []\r\n\t\t\toption.series[0].data = []\r\n\t\t\toption.series[1].data = []\r\n\r\n\t\t\toption.xAxis[0].data = xAxis\r\n\t\t\t//总值\r\n\t\t\tconst sumAllVal = data.reduce((item, currentValue) => {\r\n\t\t\t\treturn item + currentValue.sumVal\r\n\t\t\t}, 0)\r\n\t\t\tfor (let index = 0; index < xAxis.length; index++) {\r\n\t\t\t\tconst element = xAxis[index]\r\n\t\t\t\tlet seriesItemData = data.find((x) => x.xAxis == element)\r\n\t\t\t\tif (seriesItemData != null) {\r\n\t\t\t\t\toption.series[0].data.push(seriesItemData.sumVal)\r\n\t\t\t\t\tvar itemVal = this.numberHandler(seriesItemData.sumVal, sumAllVal, true)\r\n\t\t\t\t\toption.series[1].data.push(itemVal)\r\n\t\t\t\t} else {\r\n\t\t\t\t\toption.series[0].data.push(0)\r\n\t\t\t\t\toption.series[1].data.push(0)\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\treturn option\r\n\t\t},\r\n\t\tinitEchart(xAxis, data) {\r\n\t\t\tlet thisInfo = this\r\n\t\t\tvar opt = this.echartDataHandle(xAxis, data)\r\n\t\t\tlet myChart = this.$echarts.init(document.getElementById('main'))\r\n\t\t\tif (myChart != null) myChart.setOption(opt)\r\n\t\t\tthis.initEchartEvent(myChart, thisInfo, xAxis)\r\n\t\t},\r\n\t\tinitEchartEvent(myChart, thisInfo, xAxis) {\r\n\t\t\tmyChart.off('click')\r\n\t\t\tmyChart.on('click', (params) => {\r\n\t\t\t\tlet sumTime = 0\r\n\t\t\t\tvar projectCode = this.sysData.nowClickRowVal.ProjectCode\r\n\t\t\t\tthis.dialogRateInfo.visible = true\r\n\t\t\t\tlet resultData = []\r\n\t\t\t\tlet xAxis = params.name\r\n\r\n\t\t\t\tthis.sysData.projectAlarmSumInfo.forEach((item) => {\r\n\t\t\t\t\tlet created = new Date(item.created).format('yyyy-MM-dd')\r\n\t\t\t\t\tif (item.ProjectCode === projectCode && created === xAxis) {\r\n\t\t\t\t\t\tlet newItem = {\r\n\t\t\t\t\t\t\t...item,\r\n\t\t\t\t\t\t\ttimeVal: item.timeVal,\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\tresultData.push(newItem)\r\n\t\t\t\t\t\tsumTime += newItem.timeVal\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tthisInfo.dialogRateInfo.title = this.sysData.nowClickRowVal.projectName + ',故障时间(分):' + ''.roundNumber(sumTime)\r\n\t\t\t\tthisInfo.$nextTick(() => {\r\n\t\t\t\t\tthisInfo.$refs.childTableRateInfo.setDataSource(resultData)\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t},\r\n\t\t//超40分钟报警\r\n\t\tinitTableAlarm40(dataSource) {\r\n\t\t\tthis.sysData.alarmSum40 = dataSource\r\n\t\t\tthis.$refs.childTableAlarm40.setDataSource(dataSource)\r\n\t\t},\r\n\t\t//接口数据返回为空时\r\n\t\tajaxSuccessDataBefore(data) {\r\n\t\t\tif (data == null || data.length == 0) {\r\n\t\t\t\tthis.tableDataSource.rate = []\r\n\t\t\t\tthis.sysData.nowClickRowVal.title = ''\r\n\t\t\t\tthis.$echarts.init(document.getElementById('main')).clear()\r\n\t\t\t\tthis.$refs.childTableAlarm40.setDataSource([])\r\n\t\t\t\tthis.$alert('业务操作查询无数据!', '提示', { dangerouslyUseHTMLString: true })\r\n\t\t\t\treturn false\r\n\t\t\t}\r\n\t\t\treturn true\r\n\t\t},\r\n\r\n\t\tnumberHandler(dividend, divisor, isPercentage = false) {\r\n\t\t\tif (dividend === 0 || divisor === 0) return 0\r\n\t\t\tvar val = dividend / divisor\r\n\t\t\tlet percentageDifference = 0\r\n\t\t\tif (isPercentage) {\r\n\t\t\t\tpercentageDifference = val * 100\r\n\t\t\t} else {\r\n\t\t\t\tpercentageDifference = (1 - dividend / divisor) * 100\r\n\t\t\t}\r\n\r\n\t\t\treturn percentageDifference.toFixed(2)\r\n\t\t},\r\n\t\tinitDate() {\r\n\t\t\tthis.$refs.childSelectDate.initYearMonthWeek()\r\n\t\t},\r\n\t\t// 初始化数据\r\n\t\tinitFrom() {\r\n\t\t\tthis.initDate()\r\n\t\t},\r\n\t\t//导出数据\r\n\t\texportExcel() {\r\n\t\t\tvar oneData = this.handleExportOneData()\r\n\t\t\tvar twoData = this.handleExportTwoData()\r\n\t\t\tvar threeData = this.handleExportThreeData()\r\n\r\n\t\t\tthis.$refs.childExport.exportExcel(\r\n\t\t\t\t{\r\n\t\t\t\t\t故障报告: oneData,\r\n\t\t\t\t\t超40分钟故障: twoData,\r\n\t\t\t\t\t故障明细信息: threeData,\r\n\t\t\t\t},\r\n\t\t\t\tfalse\r\n\t\t\t)\r\n\t\t},\r\n\t\t//妥善率故障表格数据处理\r\n\t\thandleExportOneData() {\r\n\t\t\tvar data = []\r\n\t\t\tdata.push({\r\n\t\t\t\tprojectName: '项目',\r\n\t\t\t\tsumTimeWeek: '周故障时间(分)',\r\n\t\t\t\tweekTuoSanRate: '周妥善率(%)',\r\n\t\t\t\tsumTimeMonth: '月故障时间(分)',\r\n\t\t\t\tmonthTuoSanRate: '月妥善率(%)',\r\n\r\n\t\t\t\tweekDefault: '周开机(分)',\r\n\t\t\t\tmonthDefault: '月开机(分)',\r\n\t\t\t})\r\n\t\t\tthis.tableDataSource.rate.forEach((x) => {\r\n\t\t\t\tdata.push({\r\n\t\t\t\t\tprojectName: x.projectName,\r\n\t\t\t\t\tsumTimeWeek: x.sumTimeWeek,\r\n\r\n\t\t\t\t\tweekTuoSanRate: x.weekTuoSanRate,\r\n\t\t\t\t\tsumTimeMonth: x.sumTimeMonth,\r\n\t\t\t\t\tmonthTuoSanRate: x.monthTuoSanRate,\r\n\r\n\t\t\t\t\tweekDefault: x.weekDefault,\r\n\t\t\t\t\tmonthDefault: x.monthDefault,\r\n\t\t\t\t})\r\n\t\t\t})\r\n\r\n\t\t\treturn data\r\n\t\t},\r\n\t\t//超40分钟\r\n\t\thandleExportTwoData() {\r\n\t\t\tvar tempDataTwo = []\r\n\t\t\tvar tempColumn = { index: '序号' }\r\n\t\t\tvar tempData = this.tableColumnAlarm40\r\n\t\t\tfor (let index = 0; index < tempData.length; index++) {\r\n\t\t\t\tconst element = tempData[index]\r\n\t\t\t\ttempColumn[element.prop] = element.label\r\n\t\t\t}\r\n\t\t\ttempDataTwo.push(tempColumn)\r\n\t\t\tlet index = 1\r\n\t\t\tthis.sysData.alarmSum40.forEach((x) => {\r\n\t\t\t\ttempDataTwo.push({\r\n\t\t\t\t\tindex: index++,\r\n\t\t\t\t\tProjectName: x.ProjectName,\r\n\t\t\t\t\tEquipmentName: x.EquipmentName,\r\n\t\t\t\t\tAlarm: x.Alarm,\r\n\t\t\t\t\tErrorDuration: x.ErrorDuration,\r\n\r\n\t\t\t\t\tAlarmReason: x.AlarmReason,\r\n\t\t\t\t\tReason: x.Reason,\r\n\t\t\t\t\tHandleInfo: x.HandleInfo,\r\n\t\t\t\t\tHandleUser: x.HandleUser,\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t\treturn tempDataTwo\r\n\t\t},\r\n\t\t//故障明细信息\r\n\t\thandleExportThreeData() {\r\n\t\t\tvar data = []\r\n\t\t\tdata.push({\r\n\t\t\t\tindex: '序号',\r\n\t\t\t\tEquipmentName: '设备名称',\r\n\t\t\t\tEquipmentPropName: '故障内容',\r\n\t\t\t\ttimeVal: '故障时间(分)',\r\n\t\t\t\tcreated: '开始日期',\r\n\t\t\t\tupdated: '结束日期',\r\n\t\t\t})\r\n\t\t\tlet index = 1\r\n\t\t\tthis.sysData.projectAlarmSumInfo.forEach((x) => {\r\n\t\t\t\tdata.push({\r\n\t\t\t\t\tindex: index++,\r\n\t\t\t\t\tEquipmentName: x.EquipmentName,\r\n\t\t\t\t\tEquipmentPropName: x.EquipmentPropName,\r\n\t\t\t\t\ttimeVal: x.timeVal,\r\n\t\t\t\t\tcreated: x.created,\r\n\t\t\t\t\tupdated: x.updated,\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t\treturn data\r\n\t\t},\r\n\t},\r\n\tmounted() {\r\n\t\tdebugger\r\n\t\tthis.initFrom()\r\n\t},\r\n}\r\n</script>\r\n\r\n<style scoped>\r\n.dv {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\r\n\tbackground-color: #fff;\r\n}\r\n\r\n.active {\r\n\tcolor: #f32b08;\r\n}\r\n.time-select {\r\n\tdisplay: flex;\r\n\tpadding-left: 20px;\r\n\twidth: 100%;\r\n\talign-items: center;\r\n\tjustify-items: center;\r\n}\r\n.el-button {\r\n\tbackground-color: #1bb293 !important;\r\n\tcolor: #fff !important;\r\n\tborder: none !important;\r\n\tmargin: 0 4vw;\r\n}\r\n.dv-herdr {\r\n\twidth: 100%;\r\n\tfont-size: 20px;\r\n\tfont-weight: 600;\r\n\ttext-align: center;\r\n}\r\n.table1 {\r\n\tdisplay: flex;\r\n\twidth: 100%;\r\n\tpadding-top: 3vh;\r\n\tjustify-content: space-between;\r\n}\r\n.table1-one {\r\n\twidth: 99.8%;\r\n\tbox-shadow: 5px 5px 5px #888888;\r\n}\r\n.table1-two {\r\n\twidth: 49%;\r\n\tbox-shadow: 5px 5px 5px #888888;\r\n}\r\n.table2 {\r\n\tdisplay: flex;\r\n\twidth: 100%;\r\n}\r\n.table2-one {\r\n\twidth: 50%;\r\n\tbox-shadow: 5px 5px 5px #888888;\r\n}\r\n#main {\r\n\twidth: 45%;\r\n\theight: 350px;\r\n\tmargin-left: 30px;\r\n}\r\n#mainMonth {\r\n\twidth: 45%;\r\n\theight: 300px;\r\n\tmargin-left: 30px;\r\n}\r\n.el-table tr td {\r\n\tborder: 1px solid #114696;\r\n}\r\n#minaDialog {\r\n\twidth: 100%;\r\n\theight: 500px;\r\n}\r\n.dv-bottem {\r\n\twidth: 100%;\r\n\theight: 500px;\r\n}\r\n</style>\r\n\r\n<style lang=\"scss\">\r\n.app_container {\r\n\toverflow-y: auto !important;\r\n\toverflow-y: scroll;\r\n\tbackground: #0000 !important;\r\n}\r\n.el-table td,\r\n.el-table th {\r\n\tpadding: 6px 0 !important;\r\n}\r\n.el-dialog__headerbtn {\r\n\tfont-size: 35px !important;\r\n}\r\n</style>\r\n","import mod from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/babel-loader/lib/index.js??ref--13-0!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./faultFrequency.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../../node_modules/cache-loader/dist/cjs.js??ref--12-0!../../../node_modules/thread-loader/dist/cjs.js!../../../node_modules/babel-loader/lib/index.js!../../../node_modules/babel-loader/lib/index.js??ref--13-0!../../../node_modules/cache-loader/dist/cjs.js??ref--0-0!../../../node_modules/vue-loader/lib/index.js??vue-loader-options!./faultFrequency.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./faultFrequency.vue?vue&type=template&id=d2b12050&scoped=true&\"\nimport script from \"./faultFrequency.vue?vue&type=script&lang=js&\"\nexport * from \"./faultFrequency.vue?vue&type=script&lang=js&\"\nimport style0 from \"./faultFrequency.vue?vue&type=style&index=0&id=d2b12050&scoped=true&lang=css&\"\nimport style1 from \"./faultFrequency.vue?vue&type=style&index=1&lang=scss&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n \"d2b12050\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}