{"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\\DailyPatrolStatistics.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\yhxt-web\\src\\views\\statisticalReport\\patrolFillingStatistics\\DailyPatrolStatistics.vue","mtime":1667326395310},{"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/es7.object.get-own-property-descriptors\";\nimport \"core-js/modules/es6.object.keys\";\nimport \"core-js/modules/es6.regexp.split\";\nimport \"core-js/modules/es6.function.name\";\nimport \"core-js/modules/web.dom.iterable\";\nimport _defineProperty from \"D:/jenkins/workspace/yhxt-web/node_modules/@babel/runtime/helpers/esm/defineProperty.js\";\nfunction ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }\nfunction _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : 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\nimport * as echarts from 'echarts';\nimport basicData from '@/api/basicData.js';\nimport eipOrgSelector from '@/components/eipControl/selector/EipOrgSelector.vue';\nimport RoadInfoDialog from '@/components/dialog/RoadInfoDialog.vue';\nimport routerInfoSelector from '@/components/selector/routerInfoSelector.vue';\nimport CascaderCompany from \"./../components/CascaderCompany_.vue\";\nexport default {\n components: {\n // eipOrgSelector,\n RoadInfoDialog: RoadInfoDialog,\n CascaderCompany: CascaderCompany\n // routerInfoSelector\n },\n data: function data() {\n return {\n formInline: {\n companyIds: ['1419863231459102720', '1430734631036129280'],\n companyName: '',\n roadSegmentId: ''\n },\n roadData: []\n };\n },\n mounted: function mounted() {\n // this.load()\n // this.getRoadInfo()\n this.companyChange(['1419863231459102720', '1430734631036129280']);\n },\n methods: {\n companyChange: function companyChange(val) {\n var _this = this;\n console.log(val, 'val');\n this.formInline.companyIds = val;\n var id = val && val[val.length - 1] || '';\n if (!id) return;\n this.$http.get('${yhxt}/statisticalStatement/v1/findAllRoadIds?id=' + id).then(function (res) {\n var ids = res.data.value.join(',') || id || '';\n if (!ids) {\n _this.draw({\n circles: [],\n inspectForRoadSegments: []\n });\n } else {\n var params = {\n roadSegmentId: ids\n };\n _this.$http.post('${yhxt}/statisticalStatement/v1/countSiteDaily', params).then(function (res) {\n _this.draw(res.data);\n });\n }\n });\n },\n getRoadInfo: function getRoadInfo() {\n var _this2 = this;\n basicData.getRoadManagement().then(function (res) {\n if (res.rows.length !== 0) {\n _this2.roadData = res.rows;\n var id = _this2.roadData[0].id;\n _this2.formInline = {\n roadSegmentId: id\n };\n }\n });\n },\n etRoadInfo: function etRoadInfo() {\n var _this3 = this;\n basicData.getRoadManagement().then(function (res) {\n if (res.rows.length !== 0) {\n _this3.roadData = res.rows;\n var id = _this3.roadData[0].id;\n _this3.formInline = {\n roadSegmentId: ''\n };\n }\n });\n },\n draw: function draw(data) {\n var chartDom_1 = document.getElementById('main_1');\n var chartDom_2 = document.getElementById('main_2');\n var myChart_1 = echarts.init(chartDom_1);\n var myChart_2 = echarts.init(chartDom_2);\n var publicOption = {\n tooltip: {\n trigger: 'item'\n }\n // legend: {\n // orient: 'vertical',\n // bottom: 'bottom',\n // itemWidth: 15,\n // textStyle: {\n // color: '#fff'\n // }\n // }\n };\n\n console.log(data);\n var option_1 = _objectSpread({\n title: {\n text: '',\n left: 'center'\n },\n color: ['#63b2ee', '#76da91', '#f8cb7f', '#f89588', '#7cd6cf', '#9192ab', '#7898e1'],\n legend: {\n orient: 'horizontal',\n bottom: 'bottom',\n textStyle: {\n color: \"#fff\"\n }\n },\n series: [{\n name: '',\n type: 'pie',\n radius: '50%',\n data: data.circles,\n label: {\n color: '#fff',\n formatter: '{b}\\n\\n{c}'\n },\n emphasis: {\n itemStyle: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)'\n }\n }\n }]\n }, publicOption);\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 console.log(arr1);\n var option_2 = {\n legend: {\n bottom: 'bottom',\n data: ['巡检完成', '巡检未完成'],\n textStyle: {\n color: \"#fff\"\n }\n },\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n type: 'shadow'\n }\n },\n xAxis: {\n type: 'category',\n // boundaryGap: false,\n data: arr1,\n axisLabel: {\n fontSize: 14,\n color: '#fff'\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 },\n yAxis: {\n type: 'value',\n splitLine: {\n show: false\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: true,\n lineStyle: {\n color: '#fff'\n }\n }\n },\n series: [{\n name: '巡检完成',\n data: arr2,\n type: 'bar',\n barGap: 0,\n label: {\n show: true,\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 }, {\n name: '巡检未完成',\n data: arr3,\n type: 'bar',\n barGap: 0,\n label: {\n show: true,\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 }]\n };\n option_1 && myChart_1.setOption(option_1);\n option_2 && myChart_2.setOption(option_2);\n },\n load: function load() {\n var _this4 = this;\n var params = _objectSpread({}, this.formInline);\n this.$http.post('${yhxt}/statisticalStatement/v1/countSiteDaily', params).then(function (res) {\n // console.log(res)\n _this4.draw(res.data);\n });\n },\n onSubmit: function onSubmit() {\n this.load();\n },\n //所属路段获取焦点触发事件\n handleFocusRoad: function handleFocusRoad() {\n this.$refs.road.open();\n },\n //所属路线打开弹框\n openRoad: function openRoad() {\n this.$refs.road.open();\n },\n //选取路线回填数据\n handleSelectRoad: function handleSelectRoad(data) {\n // console.log(data.name, '路线信息')\n // this.formInline.roadSegmentName = data.name\n // this.formInline.roadSegmentId = data.id\n },\n //路线信息赋值\n changed: function changed(obj) {\n // console.log(obj)\n this.formInline.roadSegmentName = obj.name;\n this.formInline.roadSegmentId = obj.id;\n },\n value: function value(obj) {\n console.log(obj);\n this.formInline.roadSegmentName = obj.name;\n this.formInline.roadSegmentId = obj.id;\n },\n //公司赋值\n handleChanged: function handleChanged(obj) {\n // console.log(obj.valueInfo.join(','))\n this.formInline.companyIds = JSON.stringify(obj.valueInfo);\n this.formInline.companyName = obj.name;\n this.formInline.companyId = obj.id;\n },\n companyValue: function companyValue(obj) {\n // console.log(obj)\n this.formInline.companyName = obj.name;\n this.formInline.companyId = obj.id;\n this.formInline.companyIds = JSON.stringify(obj.id.split(' ')); //必须是空格\n }\n }\n};",null]}