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

1 line
8.2 KiB
JSON
Raw Normal View History

2025-02-25 13:43:48 +08:00
{"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\\property\\questionnaire\\echarts\\index.vue?vue&type=script&lang=js","dependencies":[{"path":"E:\\hz-zhhq-web\\src\\views\\property\\questionnaire\\echarts\\index.vue","mtime":1737610069443},{"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//\n//\n//\n//\n//\n//\n//\n//\n\nimport * as echarts from 'echarts';\nimport html2canvas from \"html2canvas\";\nimport JsPDF from 'jspdf';\nimport { getQuestionnaireCount as _getQuestionnaireCount } from \"@/api/getdata\";\nexport default {\n data: function data() {\n return {\n id: '',\n themeList: [],\n formInline: {\n TITLE: \"\",\n RELEASE_TIME: '',\n NUM: 0\n },\n page: {\n limit: 0 /** 当前点击*/,\n sizePage: 10 /** 当前多少页*/,\n total: 0 /**总数 */\n }\n };\n },\n created: function created() {},\n mounted: function mounted() {\n var data = this.$route.query.rowdata;\n if (data) {\n this.id = data.ID;\n this.getQuestionnaireCount();\n }\n },\n methods: {\n getQuestionnaireCount: function getQuestionnaireCount() {\n var _this = this;\n var Content = {\n id: this.id\n };\n _getQuestionnaireCount(Content).then(function (res) {\n if (res.returnCode == \"1\") {\n _this.clearLoad();\n console.log(res.returnData);\n _this.formInline = res.returnData.list[0];\n var seriesData1 = [{\n value: res.returnData.listPie[0].ONE,\n name: '非常满意'\n }, {\n value: res.returnData.listPie[0].TWO,\n name: '满意'\n }, {\n value: res.returnData.listPie[0].THREE,\n name: '一般'\n }, {\n value: res.returnData.listPie[0].FOUR,\n name: '不满意'\n }];\n _this.myChart(seriesData1);\n _this.myCharts(res.returnData.listBar);\n } else {\n _this.$message({\n message: res.returnMsg,\n type: \"warning\"\n });\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n }\n }).catch(function (err) {\n console.log(err);\n setTimeout(function () {\n _this.clearLoad();\n }, 300);\n });\n },\n myChart: function myChart(seriesData) {\n var myChart = echarts.init(document.getElementById('main'));\n if (this.formInline.RELEASE_TIME === null) {\n this.formInline.RELEASE_TIME = '未发布';\n }\n // 绘制图表\n myChart.setOption({\n title: {\n text: \"问卷主题:\" + this.formInline.TITLE + \" 参与人数:\" + this.formInline.NUM + \" 发布时间:\" + this.formInline.RELEASE_TIME,\n // subtext: \"发布时间:\"+this.formInline.RELEASE_TIME,\n // subtextStyle: {\n // fontSize:16,\n // color: '#aaa' // 副标题文字颜色\n // },\n left: '200'\n },\n legend: {\n orient: 'vertical',\n right: '200'\n },\n color: ['