chunk-11bad47a.8a22f982.js.map
24.7 KB
{"version":3,"sources":["webpack:///./src/views/reportForms/anomalyAnalysisEquipmentAGV.vue?7235","webpack:///./src/views/reportForms/anomalyAnalysisEquipmentAGV.vue?9444","webpack:///./src/views/reportForms/anomalyAnalysisEquipmentAGV.vue?5325","webpack:///src/views/reportForms/anomalyAnalysisEquipmentAGV.vue","webpack:///./src/views/reportForms/anomalyAnalysisEquipmentAGV.vue?5379","webpack:///./src/views/reportForms/anomalyAnalysisEquipmentAGV.vue"],"names":["render","_vm","this","_h","$createElement","_c","_self","staticClass","on","$event","type","indexOf","_k","keyCode","key","btnAction","attrs","sysTitle","projectEqCallBackEmit","ref","faultCallBackEmit","staticStyle","model","value","form","callback","$$v","$set","expression","_v","directives","name","rawName","sysData","tableData","handleChangeCellStyle","textAlign","background","color","_l","column","prop","style","fixed","label","width","_m","staticRenderFns","component"],"mappings":"kHAAA,W,kFCAA,W,yCCAA,IAAIA,EAAS,WAAa,IAAIC,EAAIC,KAASC,EAAGF,EAAIG,eAAmBC,EAAGJ,EAAIK,MAAMD,IAAIF,EAAG,OAAOE,EAAG,MAAM,CAACE,YAAY,QAAQC,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,YAAYZ,EAAG,MAAM,CAACE,YAAY,eAAe,CAACF,EAAG,iBAAiB,CAACW,MAAM,CAAC,0BAA4B,EAAE,kBAAmB,EAAK,OAAQ,GAAMR,GAAG,CAAC,mBAAqBP,EAAIiB,yBAAyBb,EAAG,aAAa,CAACc,IAAI,mBAAmBH,MAAM,CAAC,MAAQ,WAAWR,GAAG,CAAC,mBAAqBP,EAAImB,qBAAqBf,EAAG,SAAS,CAACW,MAAM,CAAC,KAAO,KAAK,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AKA,OACA,4SADA,gBAEA,SAFA,OAGA,UAHA,EAIA,QAJA,EAKA,QAEA,cAEA,GADA,aACA,sCAEA,eAIA,6CACA,qFAEA,uBACA,4EAGA,0CACA,yCAXA,mCAaA,gBACA,uBAlCA,oEAJA,kEAyCA,gBA/EA,YA+EA,WACA,gCACA,mBACA,QACA,uBACA,6BACA,gCACA,gBACA,gBAFA,WAGA,eAGA,mCACA,KADA,WAEA,MAFA,KAGA,aAIA,cAlGA,YAkGA,WACA,8BACA,yBAEA,uBACA,wBACA,kCAFA,MAMA,oBA5GA,YAmHA,IAPA,WACA,EADA,GAGA,gCACA,IACA,KACA,IANA,cAQA,4BACA,EATA,EAWA,WACA,kCACA,2BACA,8DACA,KACA,aACA,cACA,MAGA,GACA,gBACA,gBAEA,OAEA,kBACA,yBAGA,gBACA,mBAEA,WA3BA,+BAoCA,IALA,oBAtCA,IA0CA,KACA,mBACA,4BACA,WACA,aACA,OACA,QAEA,yBAMA,kBACA,eACA,qBAIA,OAFA,UACA,iBACA,GAGA,sBA7KA,YA6KA,oDACA,0BACA,+FACA,mCAEA,2EACA,2BAEA,6FACA,0CADA,GAKA,YA1LA,YA2LA,qBACA,oDACA,mBACA,sBAEA,sBAGA,kCACA,aACA,0CAEA,sBAvMA,YAwMA,gEACA,0BACA,6DACA,oDACA,KAKA,QAtPA,WAwPA,yBCpS+a,I,kCCS3amB,EAAY,eACd,EACAhD,EACA+C,GACA,EACA,KACA,WACA,MAIa,aAAAC,E","file":"static/js/chunk-11bad47a.8a22f982.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!./anomalyAnalysisEquipmentAGV.vue?vue&type=style&index=1&id=d77fb426&lang=scss&scoped=true&\"","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!./anomalyAnalysisEquipmentAGV.vue?vue&type=style&index=0&id=d77fb426&lang=scss&scoped=true&\"","var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"whole\",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}}),_c('div',{staticClass:\"time-select\"},[_c('bus-project-eq',{attrs:{\"defaultSelectIndexProject\":1,\"AGVSelectIndexEq\":true,\"isAGV\":true},on:{\"selectCallBackEmit\":_vm.projectEqCallBackEmit}}),_c('sys-select',{ref:\"childSelectFault\",attrs:{\"title\":\"请选择故障信息\"},on:{\"selectCallBackEmit\":_vm.faultCallBackEmit}}),_c('el-col',{attrs:{\"span\":56}},[_c('el-date-picker',{staticStyle:{\"width\":\"210px\"},attrs:{\"required\":\"\",\"data-msg\":\"开始日期时间不能为空\",\"type\":\"date\",\"placeholder\":\"选择开始日期时间\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.form.startTime),callback:function ($$v) {_vm.$set(_vm.form, \"startTime\", $$v)},expression:\"form.startTime\"}}),_c('el-date-picker',{staticStyle:{\"width\":\"210px\"},attrs:{\"required\":\"\",\"type\":\"date\",\"placeholder\":\"选择结束日期时间\",\"value-format\":\"yyyy-MM-dd\"},model:{value:(_vm.form.endTime),callback:function ($$v) {_vm.$set(_vm.form, \"endTime\", $$v)},expression:\"form.endTime\"}})],1),_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}})],1),_c('el-table',{directives:[{name:\"loading\",rawName:\"v-loading\",value:(_vm.loading),expression:\"loading\"}],ref:\"tableList\",staticStyle:{\"width\":\"100%\",\"height\":\"50px\",\"margin-top\":\"8px\",\"color\":\"#000\"},attrs:{\"data\":_vm.sysData.tableData,\"cell-style\":_vm.handleChangeCellStyle,\"height\":\"360\",\"stripe\":\"\",\"border\":\"\",\"element-loading-text\":\"拼命加载中\",\"element-loading-spinner\":\"el-icon-loading\",\"header-cell-style\":{\n\t\t\ttextAlign: 'center',\n\t\t\tbackground: '#e4e4e4',\n\t\t\tcolor: '#000000',\n\t\t}}},[_c('el-table-column',{attrs:{\"prop\":\"year\",\"fixed\":\"\",\"label\":\"二维码点位\",\"width\":\"250\",\"align\":\"center\"}},[_c('el-table-column',{attrs:{\"prop\":\"year\",\"label\":\"AGV设备\",\"align\":\"center\",\"width\":\"250\"}})],1),_vm._l((_vm.sysData.tableDataColumn),function(column){return _c('el-table-column',{key:column.prop,style:(column.style),attrs:{\"align\":\"center\",\"fixed\":column.fixed,\"prop\":column.prop,\"label\":column.label,\"width\":column.width}})})],2),_vm._m(0)],1)}\nvar staticRenderFns = [function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:\"imgs\"},[_c('h1',{staticClass:\"imgs-test\"},[_vm._v(\"后期放置AGV点位图片区域\")])])}]\n\nexport { render, staticRenderFns }","<template>\r\n\t<div class=\"whole\" v-on:keyup.enter=\"btnAction('query')\">\r\n\t\t<sys-head :title=\"sysTitle\"></sys-head>\r\n\t\t<div class=\"time-select\">\r\n\t\t\t<bus-project-eq :defaultSelectIndexProject=\"1\" :AGVSelectIndexEq=\"true\" @selectCallBackEmit=\"projectEqCallBackEmit\" :isAGV=\"true\"></bus-project-eq>\r\n\t\t\t<sys-select ref=\"childSelectFault\" title=\"请选择故障信息\" @selectCallBackEmit=\"faultCallBackEmit\"></sys-select>\r\n\t\t\t<!-- 开始结束年月 -->\r\n\t\t\t<el-col :span=\"56\">\r\n\t\t\t\t<el-date-picker v-model=\"form.startTime\" required data-msg=\"开始日期时间不能为空\" type=\"date\" placeholder=\"选择开始日期时间\" value-format=\"yyyy-MM-dd\" style=\"width: 210px;\"> </el-date-picker>\r\n\t\t\t\t<el-date-picker v-model=\"form.endTime\" required type=\"date\" placeholder=\"选择结束日期时间\" value-format=\"yyyy-MM-dd\" style=\"width: 210px;\"> </el-date-picker>\r\n\t\t\t</el-col>\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\"></sys-export>\r\n\t\t</div>\r\n\t\t<el-table\r\n\t\t\tref=\"tableList\"\r\n\t\t\t:data=\"sysData.tableData\"\r\n\t\t\t:cell-style=\"handleChangeCellStyle\"\r\n\t\t\theight=\"360\"\r\n\t\t\tstripe\r\n\t\t\tborder\r\n\t\t\tv-loading=\"loading\"\r\n\t\t\telement-loading-text=\"拼命加载中\"\r\n\t\t\telement-loading-spinner=\"el-icon-loading\"\r\n\t\t\t:header-cell-style=\"{\r\n\t\t\t\ttextAlign: 'center',\r\n\t\t\t\tbackground: '#e4e4e4',\r\n\t\t\t\tcolor: '#000000',\r\n\t\t\t}\"\r\n\t\t\tstyle=\"width: 100%;height: 50px;margin-top: 8px; color: #000\"\r\n\t\t>\r\n\t\t\t<el-table-column prop=\"year\" fixed label=\"二维码点位\" width=\"250\" align=\"center\">\r\n\t\t\t\t<el-table-column prop=\"year\" label=\"AGV设备\" align=\"center\" width=\"250\"></el-table-column>\r\n\t\t\t</el-table-column>\r\n\t\t\t<el-table-column align=\"center\" v-for=\"column in sysData.tableDataColumn\" :fixed=\"column.fixed\" :style=\"column.style\" :key=\"column.prop\" :prop=\"column.prop\" :label=\"column.label\" :width=\"column.width\"> </el-table-column>\r\n\t\t</el-table>\r\n\t\t<div class=\"imgs\">\r\n\t\t\t<h1 class=\"imgs-test\">后期放置AGV点位图片区域</h1>\r\n\t\t</div>\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: 'AGV故障分析表(点位) ver:' + window.appConfig.appId,\r\n\t\t\tsysData: {\r\n\t\t\t\ttableData: [],\r\n\t\t\t\ttableDataColumn: [],\r\n\t\t\t},\r\n\t\t\t// 选择日期\r\n\t\t\tform: {\r\n\t\t\t\tstartTime: new Date(new Date().setDate(new Date(1).getDate())).format('yyyy-MM-dd'),\r\n\t\t\t\tendTime: new Date().format('yyyy-MM-dd'),\r\n\t\t\t},\r\n\t\t\tcolumn: {\r\n\t\t\t\ttable: window.faultAnalysis,\r\n\t\t\t},\r\n\t\t\tdayBetween: [],\r\n\t\t\tloading: false,\r\n\t\t\tparams: {\r\n\t\t\t\tnowSelectProjectVal: '',\r\n\t\t\t\tnowSelectEqVal: '',\r\n\t\t\t\tnowSelectFault: '',\r\n\r\n\t\t\t\t//第一次日期选择框触发加载数据标识\r\n\t\t\t\tisFristSelectDate: false,\r\n\t\t\t},\r\n\r\n\t\t\tyearMonthDayFlag: null,\r\n\t\t\tmaxVal: null,\r\n\t\t\tminValRate: null,\r\n\t\t\ttotalData: '',\r\n\t\t\ttemp: '',\r\n\t\t\timge: 'SB',\r\n\t\t\ttableTemp: [],\r\n\t\t}\r\n\t},\r\n\tmethods: {\r\n\t\tprojectEqCallBackEmit(selectObj) {\r\n\t\t\tthis.params.nowSelectFault = ''\r\n\t\t\tthis.$refs.childSelectFault.value = {\r\n\t\t\t\tvalue: '',\r\n\t\t\t\tlabel: '',\r\n\t\t\t}\r\n\t\t\tthis.params.nowSelectProjectVal = selectObj.nowSelectProject['selectKey']\r\n\t\t\tthis.params.nowSelectEqVal = selectObj.nowSelectEq['selectKey']\r\n\t\t\tthis.initFaultSelect()\r\n\t\t\tif (this.params.isFristSelectDate) return\r\n\t\t\tif (this.params.nowSelectProjectVal == '') return\r\n\t\t\tthis.params.isFristSelectDate = true\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tthis.getData('query')\r\n\t\t\t}, 500)\r\n\t\t},\r\n\t\tfaultCallBackEmit(selectObj) {\r\n\t\t\tthis.params.nowSelectFault = selectObj.selectKey\r\n\t\t},\r\n\t\tinitFaultSelect() {\r\n\t\t\tlet opt = {\r\n\t\t\t\turlSuffix: `${this.baseUrl}/api/BulletinBoard/GetAGVAlarmList?projectCode=${this.params.nowSelectProjectVal}&&equipmentCode=${this.params.nowSelectEqVal}`,\r\n\t\t\t\tlogTitle: '读取故障下拉框数据',\r\n\t\t\t\tisUrlALL: true,\r\n\t\t\t\tkeylabel: 'value',\r\n\t\t\t\tkeyValue: 'key',\r\n\t\t\t\tselectDefaultIndex: this.defaultSelectIndexProject,\r\n\t\t\t}\r\n\t\t\tthis.$refs.childSelectFault.initData(opt)\r\n\t\t},\r\n\r\n\t\t//搜索、导出\r\n\t\tbtnAction(falg) {\r\n\t\t\tthis.getData(falg)\r\n\t\t},\r\n\t\tgetData(falg) {\r\n\t\t\tif (this.params.nowSelectProjectVal == '') {\r\n\t\t\t\tthis.$alert('项目号不能为空,请选择项目号', '提示', { dangerouslyUseHTMLString: true })\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\t\t\tif (this.form.startTime == null || this.form.endTime == 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\tif (new Date(this.form.startTime) >= new Date(this.form.endTime)) {\r\n\t\t\t\tthis.$alert('开始时间不能大于等于结束时间', '提示', { dangerouslyUseHTMLString: true })\r\n\t\t\t\treturn\r\n\t\t\t}\r\n\r\n\t\t\tlet opt = {\r\n\t\t\t\turlSuffix: `${this.baseUrl}/api/BulletinBoard/GetAGVCodePointAlarmRecord?startTime=${this.form.startTime}&endTime=${this.form.endTime}&projectCode=${this.params.nowSelectProjectVal}&equipmentCode=${this.params.nowSelectEqVal}&alarmMsg=${this.params.nowSelectFault}`,\r\n\t\t\t\tlogTitle: '表格数据',\r\n\t\t\t\tisUrlALL: true,\r\n\t\t\t\tisLoad: true,\r\n\t\t\t\tfalg: falg,\r\n\t\t\t}\r\n\t\t\tlet callBackFn = (resultData) => {\r\n\t\t\t\tthis.loading = false\r\n\t\t\t\tif (!this.ajaxSuccessDataBefore(resultData, opt.logTitle)) return\r\n\t\t\t\t//excel\r\n\t\t\t\tif (falg == 'excel') {\r\n\t\t\t\t\tthis.exportExcel(resultData.data.data.result)\r\n\t\t\t\t\treturn\r\n\t\t\t\t}\r\n\t\t\t\tlet tempData = resultData.data.data.result.filter((bItem) => {\r\n\t\t\t\t\treturn !resultData.data.data.codepoints.some((aItem) => aItem.BarCode === bItem.CodePoint)\r\n\t\t\t\t})\r\n\t\t\t\ttempData.forEach((x) => {\r\n\t\t\t\t\tconsole.log('设备:', x.EquipmentName, ' 点位:', x.CodePoint, ' 次数:', x.count)\r\n\t\t\t\t})\r\n\t\t\t\t//表格\r\n\t\t\t\tthis.initTableColumn(resultData.data.data.codepoints)\r\n\t\t\t\tthis.initTableData(resultData.data.data.result)\r\n\t\t\t}\r\n\t\t\tthis.loading = true\r\n\t\t\t''.ajax(this, opt, callBackFn)\r\n\t\t},\r\n\t\t//初始化表格 动态生成列\r\n\t\tinitTableColumn(data) {\r\n\t\t\tthis.sysData.tableDataColumn = []\r\n\t\t\tthis.dayBetween = []\r\n\t\t\tlet index = 0\r\n\t\t\tdata.forEach((x) => {\r\n\t\t\t\tthis.dayBetween.push(x.BarCode)\r\n\t\t\t\tthis.sysData.tableDataColumn.push({\r\n\t\t\t\t\tprop: 'data' + index++,\r\n\t\t\t\t\tlabel: x.BarCode.toString(),\r\n\t\t\t\t\twidth: 105,\r\n\t\t\t\t})\r\n\t\t\t})\r\n\t\t\tthis.sysData.tableDataColumn.push({\r\n\t\t\t\tprop: 'Subtotal',\r\n\t\t\t\tlabel: '小计',\r\n\t\t\t\twidth: 110,\r\n\t\t\t})\r\n\t\t},\r\n\t\t//表格初始化数据\r\n\t\tinitTableData(data) {\r\n\t\t\tvar resultData = this.initTableDataHandle(data)\r\n\t\t\tthis.sysData.tableData = resultData\r\n\r\n\t\t\tsetTimeout(() => {\r\n\t\t\t\tthis.$nextTick(() => {\r\n\t\t\t\t\tthis.$refs.tableList.doLayout()\r\n\t\t\t\t})\r\n\t\t\t}, 500)\r\n\t\t},\r\n\t\tinitTableDataHandle(allData) {\r\n\t\t\tvar tempTableData = []\r\n\t\t\t// this.dayBetween = []\r\n\t\t\tconst resultUnique = allData.uniqueFunc('EquipmentName')\r\n\t\t\tlet index = 0\r\n\t\t\tlet falg = false\r\n\t\t\tlet sumTime = 0\r\n\t\t\tfor (let i = 0; i < resultUnique.length; i++) {\r\n\t\t\t\tvar tuosanRate = { year: resultUnique[i].EquipmentName }\r\n\t\t\t\tindex = 0\r\n\t\t\t\t//小计\r\n\t\t\t\tlet Subtotal = null\r\n\t\t\t\tthis.dayBetween.forEach((x) => {\r\n\t\t\t\t\tfor (let xp = 0; xp < allData.length; xp++) {\r\n\t\t\t\t\t\tif (resultUnique[i].EquipmentName == allData[xp].EquipmentName && allData[xp].CodePoint == x) {\r\n\t\t\t\t\t\t\tfalg = true\r\n\t\t\t\t\t\t\tsumTime = allData[xp].count\r\n\t\t\t\t\t\t\tSubtotal = Subtotal + allData[xp].count\r\n\t\t\t\t\t\t\tbreak\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t}\r\n\t\t\t\t\tif (falg) {\r\n\t\t\t\t\t\ttuosanRate['data' + index++] = sumTime\r\n\t\t\t\t\t\ttuosanRate['Subtotal'] = Subtotal\r\n\r\n\t\t\t\t\t\tfalg = false\r\n\t\t\t\t\t} else {\r\n\t\t\t\t\t\ttuosanRate['data' + index++] = '0'\r\n\t\t\t\t\t\ttuosanRate['Subtotal'] = Subtotal\r\n\t\t\t\t\t}\r\n\t\t\t\t})\r\n\t\t\t\tif (tuosanRate.Subtotal == undefined) {\r\n\t\t\t\t\ttuosanRate['Subtotal'] = '0'\r\n\t\t\t\t}\r\n\t\t\t\ttempTableData.push(tuosanRate)\r\n\t\t\t}\r\n\r\n\t\t\t// 获取数组a中所有对象的属性列表\r\n\t\t\tlet allKeys = Object.keys(tempTableData[0])\r\n\r\n\t\t\t// 遍历数组a,计算各个数值字段的合计\r\n\t\t\tlet temo = {}\r\n\t\t\tlet totals = {}\r\n\t\t\tfor (let i = 0; i < tempTableData.length; i++) {\r\n\t\t\t\tfor (let j = 0; j < allKeys.length; j++) {\r\n\t\t\t\t\tlet key = allKeys[j]\r\n\t\t\t\t\tif (key !== 'year') {\r\n\t\t\t\t\t\tif (!totals[key]) {\r\n\t\t\t\t\t\t\ttotals[key] = 0\r\n\t\t\t\t\t\t}\r\n\t\t\t\t\t\ttotals[key] += parseInt(tempTableData[i][key])\r\n\t\t\t\t\t}\r\n\t\t\t\t}\r\n\t\t\t}\r\n\r\n\t\t\t//在数组末尾添加合计对象\r\n\t\t\tlet totalObj = { year: '合计' }\r\n\t\t\tfor (let key in totals) {\r\n\t\t\t\ttotalObj[key] = totals[key].toString()\r\n\t\t\t}\r\n\t\t\ttempTableData.push(totalObj)\r\n\t\t\tthis.tableTemp = tempTableData\r\n\t\t\treturn tempTableData\r\n\t\t},\r\n\t\t//小计数据变颜色\r\n\t\thandleChangeCellStyle({ row, column, rowIndex, columnIndex }) {\r\n\t\t\tlet columnValue = parseInt(row[column.property])\r\n\t\t\tif (columnValue != NaN && columnValue > 1 && columnIndex == this.sysData.tableDataColumn.length && rowIndex != this.sysData.tableData.length - 1) {\r\n\t\t\t\treturn 'backgroundColor: rgb(0 176 240);'\r\n\t\t\t}\r\n\t\t\tif (columnIndex == this.sysData.tableDataColumn.length && rowIndex == this.sysData.tableData.length - 1) {\r\n\t\t\t\treturn 'backgroundColor: yellow;'\r\n\t\t\t}\r\n\t\t\tif (columnValue != NaN && columnValue > 0 && columnIndex > 0 && columnIndex != this.sysData.tableDataColumn.length && rowIndex != this.sysData.tableData.length - 1) {\r\n\t\t\t\treturn 'backgroundColor: rgb(216 228 188);'\r\n\t\t\t}\r\n\t\t},\r\n\t\t//excel导出文件\r\n\t\texportExcel(data) {\r\n\t\t\tlet tableHead = { year: 'AGV设备' }\r\n\t\t\tthis.sysData.tableDataColumn.forEach((x, index) => {\r\n\t\t\t\tif (x.prop != 'Subtotal') {\r\n\t\t\t\t\ttableHead['data' + index++] = x.label\r\n\t\t\t\t} else {\r\n\t\t\t\t\ttableHead['Subtotal'] = '小计'\r\n\t\t\t\t}\r\n\t\t\t})\r\n\t\t\tvar excelData = this.initTableDataHandle(data)\r\n\t\t\texcelData.unshift(tableHead)\r\n\t\t\tthis.$refs.childExport.exportExcel(excelData, false)\r\n\t\t},\r\n\t\tajaxSuccessDataBefore(resultData) {\r\n\t\t\tif (resultData.data.data.result == null || resultData.data.data.result.length == 0) {\r\n\t\t\t\tthis.sysData.tableData = []\r\n\t\t\t\tthis.$alert('业务操作查询无数据!', '提示', { dangerouslyUseHTMLString: true })\r\n\t\t\t\tif (this.eleEchartObj != null) this.eleEchartObj.clear()\r\n\t\t\t\treturn false\r\n\t\t\t}\r\n\t\t\treturn true\r\n\t\t},\r\n\t},\r\n\tmounted() {\r\n\t\t//故障下拉框\r\n\t\tthis.initFaultSelect()\r\n\t},\r\n}\r\n</script>\r\n\r\n<style lang=\"scss\" scoped>\r\n.dv-body {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\tbackground-color: #fff;\r\n\tbox-sizing: border-box;\r\n\ttext-align: center;\r\n\t.dv-body-title {\r\n\t\tfont-size: 23px;\r\n\t\tfont-weight: bold;\r\n\t}\r\n}\r\n.whole {\r\n\twidth: 100%;\r\n\theight: 100%;\r\n\r\n\tbackground-color: #fff;\r\n}\r\n\r\n.whole-herdr {\r\n\twidth: 100%;\r\n\r\n\tfont-size: 20px;\r\n\tfont-weight: 600;\r\n\ttext-align: center;\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: 5px 0.2vw;\r\n}\r\n.el-table th > .cell {\r\n\twidth: 146px;\r\n\tdisplay: inline-block;\r\n\t-webkit-box-sizing: border-box;\r\n\tbox-sizing: border-box;\r\n\tposition: relative;\r\n\tvertical-align: middle;\r\n\tpadding-left: 10px;\r\n\tpadding-right: 10px;\r\n\twidth: 100%;\r\n}\r\n.imgs {\r\n\twidth: 100%;\r\n\theight: 520px;\r\n\tposition: relative;\r\n\talign-items: center;\r\n\ttext-align: center;\r\n\toverflow: auto;\r\n}\r\n.imgs-test {\r\n\tmargin-top: 10%;\r\n}\r\n</style>\r\n\r\n<style lang=\"scss\" scoped>\r\n.app_container {\r\n\toverflow-x: hidden !important;\r\n\toverflow-y: auto !important;\r\n\tbackground: #fff !important;\r\n}\r\n/*::v-deep 这里主要的作用就是用来强制修改element默认的样式*/\r\n::v-deep .el-table thead.is-group th {\r\n\tbackground: none;\r\n\tpadding: 0px;\r\n}\r\n\r\n::v-deep .el-table thead.is-group tr:first-of-type th:first-of-type {\r\n\tborder-bottom: none; /*中间的横线去掉*/\r\n}\r\n\r\n::v-deep .el-table thead.is-group tr:first-of-type th:first-of-type div.cell {\r\n\ttext-align: right; /*上边文字靠右*/\r\n}\r\n\r\n::v-deep .el-table thead.is-group tr:last-of-type th:first-of-type div.cell {\r\n\ttext-align: left; /*下边文字靠左*/\r\n}\r\n/*核心代码*/\r\n::v-deep .el-table thead.is-group tr:first-of-type th:first-of-type:before {\r\n\tcontent: '';\r\n\tposition: absolute;\r\n\twidth: 1px;\r\n\theight: 250px; /*斜线的长度*/\r\n\ttop: 0;\r\n\tleft: 0;\r\n\tbackground-color: white;\r\n\topacity: 1;\r\n\tdisplay: block;\r\n\ttransform: rotate(-43deg); /*调整斜线的角度*/\r\n\ttransform: rotate(-70deg); /*调整斜线的角度*/\r\n\t-webkit-transform-origin: top;\r\n\ttransform-origin: top;\r\n}\r\n\r\n::v-deep .el-table thead.is-group tr:last-of-type th:first-of-type:before {\r\n\tcontent: '';\r\n\tposition: absolute;\r\n\twidth: 1px;\r\n\theight: 150px; /*斜线的长度*/\r\n\tbottom: 0;\r\n\tright: 0;\r\n\tbackground-color: white;\r\n\topacity: 1;\r\n\tdisplay: block;\r\n\ttransform: rotate(-45deg); /*调整斜线的角度*/\r\n\ttransform: rotate(-70deg); /*调整斜线的角度*/\r\n\t-webkit-transform-origin: bottom;\r\n\ttransform-origin: bottom;\r\n}\r\n::v-deep .el-table thead.is-group th {\r\n\theight: 45.5px;\r\n}\r\n::v-deep .el-table__footer-wrapper tbody td {\r\n\tcolor: red;\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!./anomalyAnalysisEquipmentAGV.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!./anomalyAnalysisEquipmentAGV.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./anomalyAnalysisEquipmentAGV.vue?vue&type=template&id=d77fb426&scoped=true&\"\nimport script from \"./anomalyAnalysisEquipmentAGV.vue?vue&type=script&lang=js&\"\nexport * from \"./anomalyAnalysisEquipmentAGV.vue?vue&type=script&lang=js&\"\nimport style0 from \"./anomalyAnalysisEquipmentAGV.vue?vue&type=style&index=0&id=d77fb426&lang=scss&scoped=true&\"\nimport style1 from \"./anomalyAnalysisEquipmentAGV.vue?vue&type=style&index=1&id=d77fb426&lang=scss&scoped=true&\"\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 \"d77fb426\",\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""}