hz-zhhq-web/node_modules/.cache/babel-loader/abcb21cd1ef1fc9e65af5a7c696...

1 line
5.4 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\\home\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\home\\index.vue","mtime":1737610069423},{"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":["//\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 Paging from \"@/views/Public/paging.vue\";\nimport { getHomeData as _getHomeData } from \"@/api/getdata\";\nimport Popup from \"@/views/estate/examine/dialog/popup.vue\";\nexport default {\n components: {\n Paging: Paging,\n Popup: Popup\n },\n data: function data() {\n return {\n loading: false,\n //初始化loading\n loadingMsg: \"\",\n allCNum: 0,\n allPNum: 0,\n todayCNum: 0,\n todayPNum: 0\n };\n },\n mounted: function mounted() {\n this.getHomeData();\n // this.drawEcharts();\n this.createLoad();\n },\n methods: {\n drawEcharts: function drawEcharts(data, seriesArr) {\n var myChart = document.getElementById('barChart');\n //动态设置图表的宽高\n myChart.style.width = this.barChartWidth;\n this.barChart = this.$echarts.init(myChart, {\n width: '90%',\n height: '400px'\n });\n this.barChart.setOption({\n legend: {},\n tooltip: {},\n color: ['#63b2ee', '#76da91', '#f8cb7f', '#f89588', '#7cd6cf', '#9192ab', '#7898e1', '#efa666', '#eddd86', '#9987ce', '#63b2ee', '#76da91'],\n dataset: {\n source: data\n },\n xAxis: {\n type: 'category'\n },\n yAxis: {},\n // Declare several bar series, each will be mapped\n // to a column of dataset.source by default.\n series: seriesArr\n });\n },\n getHomeData: function getHomeData() {\n var _this = this;\n var Content = {};\n _getHomeData(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n var tt = res.returnData.data;\n console.log(res.returnData.data);\n _this.todayPNum = tt[0].todayPNum;\n _this.todayCNum = tt[0].todayCNum;\n _this.allPNum = tt[0].allPNum;\n _this.allCNum = tt[0].allCNum;\n var len = tt[0].echartData[0].length;\n var seriesArr = [];\n for (var i = 0; i < len - 1; i++) {\n seriesArr.push({\n type: 'bar'\n });\n }\n _this.drawEcharts(tt[0].echartData, seriesArr);\n //this.parentdata = res.returnData.data;\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\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 getlist: function getlist() {\n var _this2 = this;\n var aa = {\n foodName: this.formInline.foodName.trim(),\n unit: this.formInline.unit,\n kinds: this.formInline.kinds\n };\n var Content = {\n currentPage: this.page.limit == 0 ? 1 : this.page.limit,\n queryObj: aa\n };\n Foodlist(Content).then(function (res) {\n // console.log(res,212)\n if (res.returnCode == \"1\") {\n _this2.clearLoad();\n _this2.tableData = res.returnData.data;\n console.log(_this2.tableData);\n // console.log(this.tableData,288)\n // this.tableData.map((item, index) => {\n // this.tableData[index].jg = item.price;\n // });\n _this2.page.total = res.returnData.total;\n _this2.page.limit = res.returnData.currentPage;\n _this2.tableData.id = res.returnData.data.id;\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 handleClick: function handleClick(row) {\n // console.log(row);\n },\n formatJson: function formatJson(filterVal, jsonData) {\n return jsonData.map(function (v) {\n return filterVal.map(function (j) {\n if (j === \"timestamp\") {\n return parseTime(v[j]);\n } else {\n return v[j];\n }\n });\n });\n }\n }\n};",null]}