{"remainingRequest":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\yhxt-web\\src\\views\\maintenanceInspection\\specialInspection.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\maintenanceInspection\\specialInspection.vue","mtime":1720116814859},{"path":"D:\\jenkins\\workspace\\yhxt-web\\babel.config.js","mtime":1667326389982},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\yhxt-web\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n\nimport moment from 'moment';\nvar pathMap = [{\n path: 'regularInspection#regularInspectionBridges',\n key: 'check-Bridge'\n}, {\n path: 'regularInspection#regularInspectionSlope',\n key: 'check-Slope'\n}, {\n path: 'regularInspection#regularInspectionCulvert',\n key: 'check-Culvert'\n}, {\n path: 'regularInspection#regularInspectionTunnel',\n key: 'check-Tunnel'\n}, {\n path: 'checkFrequently#frequentInspectionBridges',\n key: 'of-Bridge'\n}, {\n path: 'checkFrequently#frequentInspectionSlope',\n key: 'of-Slope'\n}, {\n path: 'checkFrequently#frequentInspectionCulverts',\n key: 'of-Culvert'\n}, {\n path: 'checkFrequently#frequentInspectionTunnels',\n key: 'of-Tunnel'\n}, {\n path: 'specialProjectInspection#specialInspectionBridge',\n key: 'special-Bridge'\n}, {\n path: 'specialProjectInspection#specialInspectionTunnel',\n key: 'special-Tunnel'\n}];\nvar finish = [{\n key: 'checkFinishedBridge',\n name: 'Bridge'\n}, {\n key: 'checkFinishedCulvert',\n name: 'Culvert'\n}, {\n key: 'checkFinishedSlope',\n name: 'Slope'\n}, {\n key: 'checkFinishedTunnel',\n name: 'Tunnel'\n}];\nvar unfinish = [{\n key: 'checkUnfinishedBridge',\n name: 'Bridge'\n}, {\n key: 'checkUnfinishedCulvert',\n name: 'Culvert'\n}, {\n key: 'checkUnfinishedSlope',\n name: 'Slope'\n}, {\n key: 'checkUnfinishedTunnel',\n name: 'Tunnel'\n}];\nvar coming = [{\n key: 'checkComingBridge',\n name: 'Bridge'\n}, {\n key: 'checkComingCulvert',\n name: 'Culvert'\n}, {\n key: 'checkComingSlope',\n name: 'Slope'\n}, {\n key: 'checkComingTunnel',\n name: 'Tunnel'\n}];\nexport default {\n name: 'specialInspection',\n data: function data() {\n return {\n tableData: [],\n lastData: [],\n startTime: moment().startOf('year').format('YYYY-MM-DD'),\n endTime: moment().format('YYYY-MM-DD'),\n loading: false,\n cstatus: ''\n };\n },\n created: function created() {\n this.loadData();\n },\n methods: {\n objectSpanMethod: function objectSpanMethod(_ref) {\n var row = _ref.row,\n column = _ref.column,\n rowIndex = _ref.rowIndex,\n columnIndex = _ref.columnIndex;\n if (columnIndex === 0) {\n if (rowIndex % 3 === 0) {\n return {\n rowspan: 3,\n colspan: 1\n };\n } else {\n return {\n rowspan: 0,\n colspan: 0\n };\n }\n }\n if (columnIndex === 1) {\n if (rowIndex % 3 === 0) {\n return {\n rowspan: 3,\n colspan: 1\n };\n } else {\n return {\n rowspan: 0,\n colspan: 0\n };\n }\n }\n },\n reset: function reset() {\n this.startTime = moment().startOf('year').format('YYYY-MM-DD');\n this.endTime = moment().format('YYYY-MM-DD');\n this.loadData();\n },\n handleReset: function handleReset() {\n var length = this.lastData.length - 1;\n if (length === 0) return;\n this.tableData = this.formatTableDate(this.lastData[length - 1]);\n this.lastData.splice(length, 1);\n },\n hanldeRowClick: function hanldeRowClick(row) {\n var _this = this;\n if (row.chirldren.length == 0) {\n var path = 'regularInspection';\n if (this.cstatus) {\n path = pathMap.filter(function (item) {\n return item.key === _this.cstatus;\n })[0].path;\n }\n return this.$router.push({\n path: path\n });\n } else {\n this.tableData = this.formatTableDate(row.chirldren);\n this.lastData.push(row.chirldren);\n }\n },\n handleCellClick: function handleCellClick(row, column) {\n this.cstatus = column.columnKey;\n },\n loadData: function loadData() {\n var _this2 = this;\n this.loading = true;\n var str = \"?startDate=\".concat(this.startTime, \"&endDate=\").concat(this.endTime);\n this.$http.post('${yhxt}/baseDataStatistics/v1/getSpecialCount' + str).then(function (res) {\n if (res.status == 200 && res.data && res.data.value) {\n _this2.tableData = _this2.formatTableDate(res.data.value);\n _this2.lastData.push(res.data.value);\n }\n _this2.loading = false;\n }).catch(function () {\n _this2.loading = false;\n });\n },\n formatTableDate: function formatTableDate(data) {\n var temp = [];\n data.forEach(function (item) {\n var objFinish = {\n name: item.name,\n statusName: '已检查',\n chirldren: item.chirldren\n };\n var objUnfinish = {\n name: item.name,\n statusName: '未检查',\n chirldren: item.chirldren\n };\n var objComing = {\n name: item.name,\n statusName: '临期',\n chirldren: item.chirldren\n };\n if (item.oftenCheckDto) {\n var of = item.oftenCheckDto;\n finish.forEach(function (item) {\n objFinish[\"of-\".concat(item.name)] = of[item.key];\n });\n unfinish.forEach(function (item) {\n objUnfinish[\"of-\".concat(item.name)] = of[item.key];\n });\n coming.forEach(function (item) {\n objComing[\"of-\".concat(item.name)] = of[item.key];\n });\n }\n if (item.checkFrequentlyDto) {\n var check = item.checkFrequentlyDto;\n finish.forEach(function (item) {\n objFinish[\"check-\".concat(item.name)] = check[item.key];\n });\n unfinish.forEach(function (item) {\n objUnfinish[\"check-\".concat(item.name)] = check[item.key];\n });\n coming.forEach(function (item) {\n objComing[\"check-\".concat(item.name)] = check[item.key];\n });\n }\n if (item.specialProjectInspectionDto) {\n var special = item.specialProjectInspectionDto;\n finish.forEach(function (item) {\n objFinish[\"special-\".concat(item.name)] = special[item.key] || 0;\n });\n unfinish.forEach(function (item) {\n objUnfinish[\"special-\".concat(item.name)] = special[item.key] || 0;\n });\n coming.forEach(function (item) {\n objComing[\"special-\".concat(item.name)] = special[item.key] || 0;\n });\n }\n temp.push(objFinish, objUnfinish, objComing);\n });\n return temp;\n }\n }\n};",null]}