{"remainingRequest":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\otherMonitor\\components\\CDateWaterPoint.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\monitor\\otherMonitor\\components\\CDateWaterPoint.vue","mtime":1684458239277},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/web.dom.iterable\";\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport * as echarts from 'echarts';\nimport waterPointContrast from '@/api/monitor/otherMonitor/waterPointContrast.js';\nexport default {\n name: 'DateWaterPoint',\n data: function data() {\n return {\n showFormDias: false,\n title: '',\n parmas: {\n subTime: \"\",\n type: \"yyyy-MM-dd\"\n },\n dateEchart: null,\n dateList: []\n };\n },\n created: function created() {},\n mounted: function mounted() {\n this.dateEcharts();\n },\n methods: {\n handleOpen: function handleOpen(date) {\n this.showFormDias = true;\n this.title = date;\n this.parmas.subTime = date;\n this.getData();\n },\n handleClose: function handleClose() {\n this.showFormDias = false;\n this.title = \"\";\n },\n getData: function getData() {\n var _this = this;\n\n waterPointContrast.stationStatisticsSub(this.parmas, function (res) {\n if (res.state) {\n // console.log(res.value);\n _this.dateList = res.value;\n\n _this.$nextTick(function () {\n _this.dateEcharts();\n });\n }\n });\n },\n dateEcharts: function dateEcharts() {\n var times = [];\n var ANum = [];\n var BNum = [];\n this.dateList.forEach(function (e) {\n times.push(e.x);\n ANum.push(e.ychain.last);\n BNum.push(e.ychain.current);\n });\n\n if (this.dateEchart != null && this.dateEchart != \"\" && this.dateEchart != undefined) {\n this.dateEchart.dispose(); //销毁\n } // let chartDom = document.getElementById('echartsBox')\n\n\n this.dateEchart = echarts.init(this.$refs.box);\n var option = {\n grid: {\n top: 30\n },\n legend: {\n show: true,\n data: ['当前', '环比']\n },\n xAxis: {\n type: 'category',\n data: times\n },\n yAxis: {\n name: '万m³',\n type: 'value'\n },\n tooltip: {\n trigger: 'axis',\n axisPointer: {\n type: 'shadow'\n }\n },\n series: [{\n name: '当前',\n data: BNum,\n type: 'bar',\n color: \"#91CC75\"\n }, {\n name: '环比',\n data: ANum,\n type: 'bar',\n color: \"#FFB938\"\n }]\n };\n option && this.dateEchart.setOption(option);\n }\n }\n};",null]}