{"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\\frontScreens\\components\\gisTabComponents\\module\\WaterUserModel.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\bbsl-fvue\\src\\views\\frontScreens\\components\\gisTabComponents\\module\\WaterUserModel.vue","mtime":1684458238652},{"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/es6.regexp.split\";\nimport \"core-js/modules/web.dom.iterable\";\nimport \"core-js/modules/es6.function.name\";\nimport \"regenerator-runtime/runtime\";\nimport _asyncToGenerator from \"D:/jenkins/workspace/bbsl-fvue/node_modules/@babel/runtime/helpers/esm/asyncToGenerator\";\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 dictUtils from '@/components/dict/DictSelectUtils.js';\nimport gisMap from '@/api/frontScreen/gisMap.js';\nexport default {\n name: 'WaterUserModel',\n props: {\n currentPoint: {\n type: Object,\n default: function _default() {\n return {};\n }\n },\n isShow: {\n type: Boolean,\n default: false\n }\n },\n data: function data() {\n return {\n activeName: '取水户信息',\n param: {\n id: \"\",\n monitorLevelList: [],\n stcd: \"\",\n stnm: \"\",\n waterCode: \"\",\n waterName: \"\",\n waterPurposeList: [],\n waterSourceList: [],\n waterTypeList: []\n },\n defaultData: [{\n text: '取水户',\n content: 'XXX',\n key: 1\n }, {\n text: '监控级别',\n content: '省控级',\n key: 2\n }, {\n text: '许可量',\n content: 'xxx',\n key: 3\n }, {\n text: '年累计取水量',\n content: 'xxx',\n key: 4\n }],\n tableData: [],\n chart: null,\n //雨情监测\n yearWaterPalns: {}\n };\n },\n inject: ['mapData'],\n created: function created() {\n var mapData = this.mapData();\n this.T = mapData.T;\n this.map = mapData.map;\n },\n watch: {\n currentPoint: {\n handler: function handler(newVal) {\n console.log(this.currentPoint); // this.getWaterPlanLis()\n // this.getYearWaterPaln()\n\n this.activeName = '取水户信息';\n }\n }\n },\n mounted: function mounted() {\n this.$nextTick( /*#__PURE__*/_asyncToGenerator( /*#__PURE__*/regeneratorRuntime.mark(function _callee() {\n return regeneratorRuntime.wrap(function _callee$(_context) {\n while (1) {\n switch (_context.prev = _context.next) {\n case 0:\n case \"end\":\n return _context.stop();\n }\n }\n }, _callee);\n })));\n },\n beforeDestroy: function beforeDestroy() {},\n methods: {\n // getWaterPlanLis(){\n // \tthis.params.waterCode=this.currentPoint.waterCode\n // \tgisMap.waterPlanLis(this.params,res=>{\n // \t\tif(res.state){\n // \t\t\tthis.tableData=res.value\n // \t\t\t// this.$nextTick(() => {\n // \t\t\t// this.initChart()\n // \t\t\t// })\n // \t\t}\n // \t})\n // },\n getYearWaterPaln: function getYearWaterPaln() {\n var _this = this;\n\n this.param.stcd = this.currentPoint.stcd;\n gisMap.waterDataList(this.param, function (res) {\n if (res.state) {\n _this.yearWaterPalns = res.value;\n\n _this.$nextTick(function () {\n _this.initChart();\n });\n }\n });\n },\n handleClick: function handleClick(tab, event) {\n var _this2 = this;\n\n if (tab.name == 'data') {\n this.getYearWaterPaln();\n } else if (tab.name == 'rain') {\n this.getWaterPlanLis();\n }\n\n this.$nextTick(function () {\n _this2.chart.resize();\n });\n },\n monitorLevel: function monitorLevel(val) {\n var name;\n var jkjb = dictUtils.getDictItemsFromCache('jkjb');\n jkjb.forEach(function (e) {\n if (e.value == val) {\n name = e.name;\n }\n });\n return name;\n },\n initCharts: function initCharts() {\n this.initChart();\n },\n initChart: function initChart() {\n var chartDom = document.getElementById('chart');\n this.chart = echarts.init(chartDom);\n var Alist = []; //取水量\n\n var Blist = []; //取水累积量\n\n var times = []; //累计取水量\n\n this.yearWaterPalns.forEach(function (e) {\n Alist.push(e.sflow);\n Blist.push(e.flow);\n times.push(e.tm.split(' ')[1]);\n });\n var option = {\n tooltip: {\n trigger: 'axis',\n backgroundColor: 'rgba(0,0,0,0.7)',\n textStyle: {\n color: '#dddee0'\n },\n axisPointer: {\n type: 'cross',\n label: {\n backgroundColor: '#576580'\n }\n }\n },\n grid: {\n top: 30,\n right: '5%',\n bottom: 50\n },\n legend: {\n left: 5,\n bottom: 5,\n textStyle: {\n color: '#adb9ba',\n fontSize: 10\n },\n itemWidth: 10,\n itemHeight: 10\n },\n xAxis: {\n type: 'category',\n data: times,\n axisPointer: {\n type: 'shadow'\n }\n },\n yAxis: {\n scale: true,\n type: 'value',\n axisLabel: {\n formatter: '{value}'\n },\n splitLine: {\n lineStyle: {\n color: '#7c7c7c'\n }\n }\n },\n series: [{\n name: '取水量',\n type: 'bar',\n tooltip: {\n valueFormatter: function valueFormatter(value) {\n return value + '万m³';\n }\n },\n data: Alist,\n itemStyle: {\n color: '#6767ff'\n }\n }, {\n name: '累计取水量',\n type: 'line',\n smooth: true,\n tooltip: {\n valueFormatter: function valueFormatter(value) {\n return value + '万m³';\n }\n },\n data: Blist,\n itemStyle: {\n color: '#ff9a00'\n }\n }]\n };\n option && this.chart.setOption(option);\n }\n }\n};",null]}