{"remainingRequest":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\examine-fvue\\src\\views\\bbtjMenu\\kstongjiMenu.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\examine-fvue\\src\\views\\bbtjMenu\\kstongjiMenu.vue","mtime":1672113883904},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\examine-fvue\\node_modules\\vue-loader\\lib\\index.js","mtime":499162500000}],"contextDependencies":[],"result":["import \"core-js/modules/es6.function.name\";\nimport \"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//\n//\nimport * as echarts from 'echarts';\nimport { TableMixin } from '@/mixins/tableMixin';\nimport dictUtils from '@/components/dict/DictSelectUtils.js';\nimport bbtjMenu from '@/api/examination/bbtjMenu.js';\nexport default {\n name: 'kstongjiMenu',\n components: {},\n mixins: [TableMixin],\n data: function data() {\n return {\n tableData: {},\n tableData1: [],\n sttxList: [],\n //试题类型\n stndList: [],\n //试题难度\n difficultPercentage: []\n };\n },\n created: function created() {\n this.sttxList = dictUtils.getDictItemsFromCache('sttx');\n this.stndList = dictUtils.getDictItemsFromCache('stnd');\n },\n mounted: function mounted() {},\n methods: {\n // 获取list\n loadData: function loadData(page) {\n var _this = this;\n\n this.difficultPercentage = [];\n this.loading = true;\n bbtjMenu.questionAnalysis({}, function (res) {\n if (res) {\n _this.tableData = res;\n\n _this.tableData.questionTypeVos.forEach(function (q) {\n _this.sttxList.forEach(function (s) {\n if (q.type == s.value) {\n q.typeName = s.name;\n }\n });\n });\n\n var _loop = function _loop(key) {\n _this.stndList.forEach(function (t) {\n if (key == t.value) {\n _this.difficultPercentage.push({\n name: t.name,\n value: _this.tableData.difficultPercentage[key]\n });\n }\n });\n\n console.log(_this.difficultPercentage); //键值\n };\n\n for (var key in _this.tableData.difficultPercentage) {\n _loop(key);\n }\n\n _this.$nextTick(function () {\n _this.testType();\n\n _this.fifficulty();\n });\n\n _this.$set(_this.tableData);\n\n _this.loading = false;\n }\n\n console.log(_this.tableData);\n });\n },\n testType: function testType() {\n var arr = [];\n this.tableData.questionTypeVos.forEach(function (q) {\n arr.push({\n name: q.typeName,\n value: q.count\n });\n });\n var chartDom = document.getElementById('testingTypes');\n var myChart = echarts.init(chartDom);\n var option = {\n title: {\n text: '试题类型百分比统计',\n top: '20',\n left: 'center'\n },\n tooltip: {\n trigger: 'item'\n },\n legend: {\n bottom: '0',\n left: 'center' // orient: 'vertical',\n // top: '30%',\n // right: '20'\n\n },\n series: [{\n type: 'pie',\n radius: '50%',\n data: arr,\n label: {\n normal: {\n formatter: '{b}:{d}%'\n }\n },\n itemStyle: {\n borderColor: '#fff'\n },\n emphasis: {\n itemStyle: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)'\n }\n }\n }]\n };\n option && myChart.setOption(option);\n window.addEventListener('resize', function () {\n myChart.resize();\n });\n },\n fifficulty: function fifficulty() {\n var chartDom = document.getElementById('itemFifficulty');\n var myChart = echarts.init(chartDom);\n var option = {\n title: {\n text: '试题难度百分比统计',\n top: '20',\n left: 'center'\n },\n tooltip: {\n trigger: 'item'\n },\n legend: {\n // orient: 'vertical',\n bottom: '0',\n left: 'center'\n },\n series: [{\n type: 'pie',\n radius: '50%',\n data: this.difficultPercentage,\n label: {\n normal: {\n formatter: '{b}:{d}%'\n }\n },\n itemStyle: {\n borderColor: '#fff'\n },\n emphasis: {\n itemStyle: {\n shadowBlur: 10,\n shadowOffsetX: 0,\n shadowColor: 'rgba(0, 0, 0, 0.5)'\n }\n }\n }]\n };\n option && myChart.setOption(option);\n window.addEventListener('resize', function () {\n myChart.resize();\n });\n }\n }\n};",null]}