1 line
5.7 KiB
JSON
1 line
5.7 KiB
JSON
{"remainingRequest":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js!E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js!E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!E:\\hz-zhhq-web\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!E:\\hz-zhhq-web\\src\\views\\house\\echarts\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\house\\echarts\\index.vue","mtime":1737610069425},{"path":"E:\\hz-zhhq-web\\babel.config.js","mtime":1737610069371},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\node_modules\\babel-loader\\lib\\index.js","mtime":456789000000},{"path":"E:\\hz-zhhq-web\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"E:\\hz-zhhq-web\\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//\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 { getStatistics, checkList, houseDicInfo as _houseDicInfo } from \"@/api/getdata\";\nexport default {\n data: function data() {\n return {\n houseType: [],\n typeList: [{\n name: '全部',\n id: ''\n }, {\n name: '年度',\n id: '1'\n }, {\n name: '季度',\n id: '2'\n }, {\n name: '月度',\n id: '3'\n }],\n formInline: {\n houseType: \"\",\n type: ''\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n }\n };\n },\n mounted: function mounted() {\n this.houseDicInfo('houseType');\n },\n methods: {\n houseDicInfo: function houseDicInfo(e) {\n var _this = this;\n var Content = {\n dataType: e\n };\n _houseDicInfo(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n if (e == 'houseType') {\n _this.houseType = res.returnData.data;\n }\n console.log(_this.houseType);\n _this.formInline.houseType = _this.houseType[0].VALUE;\n _this.epidemicTJ();\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n },\n epidemicTJ: function epidemicTJ() {\n var _this2 = this;\n var Content = {\n type: this.formInline.type,\n houseType: this.formInline.houseType\n };\n getStatistics(Content).then(function (res) {\n // console.log(res,212)\n if (res.returnCode == \"1\") {\n _this2.clearLoad();\n console.log(res.returnData);\n var data = res.returnData;\n var seriesData2 = data;\n _this2.myCharts(seriesData2);\n } else {\n _this2.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this2.clearLoad();\n }, 300);\n });\n },\n myChart: function myChart(seriesData) {\n var myChart = echarts.init(document.getElementById('main'));\n // 绘制图表\n myChart.setOption({\n // title: {\n // text: '填报人数',\n // left: 'center',\n // },\n legend: {\n orient: 'vertical',\n left: 'left'\n },\n color: ['#63b2ee', '#76da91'],\n tooltip: {\n trigger: 'item'\n },\n series: [{\n type: 'pie',\n radius: '50%',\n data: seriesData,\n emphasis: {\n itemStyle: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)'\n }\n }\n }]\n });\n },\n myCharts: function myCharts(seriesData) {\n var myChart = echarts.init(document.getElementById('mains'));\n var xAxisdata = [];\n var xData1 = [];\n var xData2 = [];\n var xData3 = [];\n seriesData.forEach(function (item, index) {\n xAxisdata[index] = item.MODLE;\n xData1[index] = item.NUM;\n xData2[index] = item.USEDNUM;\n xData3[index] = item.NUM - item.USEDNUM;\n });\n\n // 绘制图表\n myChart.setOption({\n title: {\n text: '存量房出租统计',\n left: '200'\n },\n xAxis: {\n type: 'category',\n data: xAxisdata\n },\n yAxis: {\n type: 'value',\n minInterval: 1\n },\n series: [{\n data: xData1,\n name: '全部',\n type: 'bar',\n color: '#d9001b',\n label: {\n show: true,\n position: 'top'\n }\n }, {\n data: xData2,\n name: '已出租',\n type: 'bar',\n color: '#f59a23',\n label: {\n show: true,\n position: 'top'\n }\n }, {\n data: xData3,\n name: '空闲',\n type: 'bar',\n color: '#caf982',\n label: {\n show: true,\n position: 'top'\n }\n }]\n });\n },\n createLoad: function createLoad() {\n this.loading = true;\n this.loadingMsg = \"加载中...\";\n },\n clearLoad: function clearLoad() {\n this.loading = false;\n this.loadingMsg = \"\";\n }\n }\n};",null]} |