{"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\\statisticalReport\\patrolFillingStatistics_.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\statisticalReport\\patrolFillingStatistics_.vue","mtime":1670523241870},{"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":315532800000},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.function.name\";\nimport _toConsumableArray from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/toConsumableArray\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.string.iterator\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty\";\n\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }\n\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }\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 * as echarts from 'echarts';\nimport CascaderCompany from \"./components/CascaderCompany_.vue\";\nexport default {\n name: 'patrolFillingStatistics_',\n components: {\n CascaderCompany: CascaderCompany\n },\n data: function data() {\n return {\n formInline: {\n companyIds: ['1419863231459102720', '1430734631036129280'],\n accDateYear: '',\n accDateMonth: ''\n },\n loading: false,\n list: [// {\n // id: 1,\n // num: '368',\n // name: '道路数量',\n // img: 17\n // },\n {\n id: 2,\n num: '368',\n name: '桥梁数量',\n img: 18\n }, {\n id: 3,\n num: '368',\n name: '隧道数量',\n img: 19\n }, {\n id: 4,\n num: '368',\n name: '涵洞数量',\n img: 20\n }, {\n id: 5,\n num: '368',\n name: '边坡数量',\n img: 21\n }],\n active: 1,\n apiUrlActive: '/statisticalStatement/v1/countSiteDaily',\n textList: [{\n id: 1,\n name: '日巡',\n apiUrl: '/statisticalStatement/v1/countSiteDaily'\n }, {\n id: 2,\n name: '夜巡',\n apiUrl: '/statisticalStatement/v1/countSiteNight'\n }, {\n id: 3,\n name: '桥梁',\n apiUrl: '/statisticalStatement/v1/countBridgeCheck'\n }, {\n id: 4,\n name: '隧道',\n apiUrl: '/statisticalStatement/v1/countTunnelCheck'\n }, {\n id: 5,\n name: '涵洞',\n apiUrl: '/statisticalStatement/v1/countCulvertCheck'\n }, {\n id: 6,\n name: '边坡',\n apiUrl: '/statisticalStatement/v1/countSideSlopCheck'\n }]\n };\n },\n mounted: function mounted() {\n this.companyChange(['1419863231459102720', '1430734631036129280']);\n this.getPatrolInspectionNumber();\n },\n methods: {\n getPatrolInspectionNumber: function getPatrolInspectionNumber() {\n var _this = this;\n\n this.$http.get('${yhxt}/statisticalStatement/v1/findAllRoadIds?id=1430734631036129280').then(function (res) {\n var ids = res.data.value.join(',') || id || '';\n\n if (ids) {\n _this.formInline.accDateYear = new Date().getFullYear() + '';\n _this.formInline.accDateMonth = new Date().getMonth() + '';\n\n var params = _objectSpread({\n roadSegmentId: ids\n }, _this.formInline);\n\n var p1 = _this.$http.post('${yhxt}/statisticalStatement/v1/countBridgeCheck', params);\n\n var p2 = _this.$http.post('${yhxt}/statisticalStatement/v1/countTunnelCheck', params);\n\n var p3 = _this.$http.post('${yhxt}/statisticalStatement/v1/countCulvertCheck', params);\n\n var p4 = _this.$http.post('${yhxt}/statisticalStatement/v1/countSideSlopCheck', params);\n\n Promise.all([p1, p2, p3, p4]).then(function (values) {\n values && values.forEach(function (item, index) {\n _this.list[index].num = item.data.circles[0].value;\n });\n _this.list = _toConsumableArray(_this.list);\n });\n }\n });\n },\n onSubmit: function onSubmit() {\n this.load();\n },\n load: function load() {\n var _this2 = this;\n\n var params = _objectSpread({}, this.formInline);\n\n this.$http.post('${yhxt}/statisticalStatement/v1/countSiteDaily', params).then(function (res) {\n _this2.getLeftPieCharts(res.data);\n\n _this2.getRightBarChars(res.data);\n });\n },\n companyChange: function companyChange(val) {\n var _this3 = this;\n\n this.formInline.companyIds = val;\n var id = val && val[val.length - 1] || '';\n if (!id) return;\n this.loading = true;\n this.$http.get('${yhxt}/statisticalStatement/v1/findAllRoadIds?id=' + id).then(function (res) {\n var ids = res.data.value.join(',') || id || '';\n\n if (!ids) {\n _this3.getLeftPieCharts([]);\n\n _this3.getRightBarChars([]);\n } else {\n var params = _objectSpread({\n roadSegmentId: ids\n }, _this3.formInline);\n\n _this3.$http.post('${yhxt}' + _this3.apiUrlActive, params).then(function (res) {\n _this3.getLeftPieCharts(res.data);\n\n _this3.getRightBarChars(res.data);\n\n _this3.loading = false;\n }).catch(function () {\n _this3.loading = false;\n });\n }\n }).catch(function () {\n _this3.loading = false;\n });\n },\n textClick: function textClick(data) {\n this.active = data.id;\n this.apiUrlActive = data.apiUrl; // 桥梁的时候带入时间\n\n if (data.id == 3 || data.id == 4 || data.id == 5 || data.id == 6) {\n this.formInline.accDateYear = new Date().getFullYear() + '';\n this.formInline.accDateMonth = new Date().getMonth() + '';\n }\n\n this.companyChange(['1419863231459102720', '1430734631036129280']);\n },\n getLeftPieCharts: function getLeftPieCharts(data) {\n var chartDom = document.getElementById('leftPieCharts');\n var myChart = echarts.init(chartDom);\n var option = {\n tooltip: {\n trigger: 'item',\n formatter: function formatter(a) {\n return \"\".concat(a.marker, \" \").concat(a.data.name, \" \").concat(a.data.value, \"\\u4E2A \").concat(a.percent, \"%\");\n }\n },\n title: {\n text: '',\n left: 'center'\n },\n color: ['#56d0a3', '#578bf1'],\n legend: {\n icon: 'circle',\n orient: 'horizontal',\n bottom: 20,\n textStyle: {\n color: '#fff'\n }\n },\n series: [{\n name: '',\n type: 'pie',\n radius: ['40%', '60%'],\n center: ['50%', '45%'],\n data: data.circles,\n label: {\n color: '#fff',\n formatter: function formatter(a) {\n return \"{percent|\".concat(a.percent, \"%}\");\n },\n rich: {\n percent: {\n fontSize: 15,\n color: '#fff'\n }\n }\n },\n emphasis: {\n itemStyle: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)'\n }\n }\n }]\n };\n option && myChart.setOption(option);\n },\n getRightBarChars: function getRightBarChars(data) {\n var _legend, _ref, _ref2, _option;\n\n var chartDom = document.getElementById('rightBarCharts');\n var myChart = echarts.init(chartDom);\n var arr1 = [];\n var arr2 = [];\n var arr3 = [];\n data.inspectForRoadSegments.forEach(function (item) {\n arr1.push(item.roadSegmentName);\n arr2.push(item.valueFinish);\n arr3.push(item.valueUnFinish);\n });\n var option = (_option = {\n tooltip: {\n trigger: 'item'\n },\n legend: (_legend = {\n bottom: 'bottom',\n data: ['巡检完成', '巡检未完成']\n }, _defineProperty(_legend, \"bottom\", 10), _defineProperty(_legend, \"textStyle\", {\n color: '#fff'\n }), _legend)\n }, _defineProperty(_option, \"tooltip\", {\n trigger: 'axis',\n axisPointer: {\n type: 'shadow'\n }\n }), _defineProperty(_option, \"xAxis\", {\n type: 'category',\n data: arr1,\n axisLabel: {\n fontSize: 14,\n color: '#cefff2'\n },\n axisTick: {\n show: true,\n lineStyle: {\n color: '#fff'\n }\n },\n axisLine: {\n show: true,\n lineStyle: {\n color: '#fff'\n }\n }\n }), _defineProperty(_option, \"yAxis\", {\n type: 'value',\n splitLine: {\n show: true\n },\n //去除网格线\n axisLabel: {\n textStyle: {\n color: '#fff'\n }\n },\n axisTick: {\n //y轴刻度线\n show: true,\n lineStyle: {\n color: '#fff'\n }\n },\n axisLine: {\n //y轴\n show: false,\n lineStyle: {\n color: '#fff'\n }\n }\n }), _defineProperty(_option, \"series\", [(_ref = {\n name: '巡检完成',\n data: arr2,\n type: 'bar',\n barGap: 0,\n label: {\n show: false,\n position: 'top',\n textStyle: {\n fontSize: 12,\n color: '#fff'\n }\n },\n itemStyle: {\n color: '#188df0'\n },\n emphasis: {\n focus: 'series'\n }\n }, _defineProperty(_ref, \"itemStyle\", {\n normal: {\n barBorderRadius: [0, 0, 0, 0],\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{\n offset: 0,\n color: '#8366de'\n }, {\n offset: 0.5,\n color: '#5957ab'\n }, {\n offset: 1,\n color: '#2a4671'\n }])\n }\n }), _defineProperty(_ref, \"barWidth\", '25%'), _ref), (_ref2 = {\n name: '巡检未完成',\n data: arr3,\n type: 'bar',\n barGap: 0,\n label: {\n show: false,\n position: 'top',\n textStyle: {\n fontSize: 12,\n color: '#fff'\n }\n },\n itemStyle: {\n color: '#ee6666'\n },\n emphasis: {\n focus: 'series'\n }\n }, _defineProperty(_ref2, \"itemStyle\", {\n normal: {\n barBorderRadius: [0, 0, 0, 0],\n color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{\n offset: 0,\n color: '#5ddbe4'\n }, {\n offset: 0.5,\n color: '#4095a9'\n }, {\n offset: 1,\n color: '#23506e'\n }])\n }\n }), _defineProperty(_ref2, \"barWidth\", '25%'), _ref2)]), _option);\n option && myChart.setOption(option);\n }\n }\n};",null]}