{"remainingRequest":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js??ref--0-0!D:\\jenkins\\workspace\\reform-fvue\\node_modules\\vue-loader\\lib\\index.js??vue-loader-options!D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\majorProjects-components\\coreIndicators.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\majorProjects-components\\coreIndicators.vue","mtime":1685527483684},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\thread-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\babel-loader\\lib\\index.js","mtime":315532800000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\node_modules\\cache-loader\\dist\\cjs.js","mtime":499162500000},{"path":"D:\\jenkins\\workspace\\reform-fvue\\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//\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 utils from '@/utils.js';\nimport * as echarts from 'echarts';\nimport pagenation from \"./pagenation.vue\";\nimport apiList from '@/api/bigScreen/districView.js';\nexport default {\n components: {\n pagenation: pagenation\n },\n props: {\n tableOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n loading: false,\n params: {\n pageBean: {\n page: 1,\n pageSize: 10,\n total: 0,\n showTotal: true\n }\n },\n tableData: [],\n pieChart: null,\n pieChartOption: null,\n pieChartData: [{\n value: 0,\n name: '超额达成'\n }, {\n value: 0,\n name: '达成'\n }, {\n value: 0,\n name: '未达成'\n }],\n chartLoading: false,\n ggbb_ssly: [],\n ggbb_cyzty: [],\n projectId: '',\n searchMonth: [],\n projectOptions: []\n };\n },\n mounted: function mounted() {\n this.initPie1();\n this.ggbb_ssly = utils.getDictItemsFromCache('ggbb_ssly');\n this.ggbb_cyzty = utils.getDictItemsFromCache('ggbb_cyzty');\n this.enterGetData();\n this.getProjectAll();\n },\n methods: {\n pageChange: function pageChange() {},\n initPie1: function initPie1() {\n var _this = this;\n\n var chartDom = document.getElementById('pie');\n this.pieChart = echarts.init(chartDom);\n this.pieChartOption = {\n title: {\n text: '月度目标达成情况',\n top: 'bottom',\n left: 'center',\n textStyle: {\n fontSize: 12,\n color: '#fff'\n }\n },\n color: ['#48b25a', '#1581e4', '#f38e03'],\n tooltip: {\n trigger: 'item',\n backgroundColor: 'rgba(6, 47, 107, 1)',\n borderColor: 'rgba(2, 115, 233, 1)',\n textStyle: {\n color: '#fff'\n }\n },\n legend: {\n top: 'top',\n icon: 'circle',\n itemWidth: 10,\n inactiveColor: '#333333',\n textStyle: {\n color: '#B1E3FF'\n }\n },\n series: [{\n name: '达成状态',\n type: 'pie',\n radius: '66%',\n label: {\n textStyle: {\n color: '#B1E3FF',\n // 改变标示文字的颜色\n fontSize: 12 //文字大小\n\n },\n alignTo: 'labelLine'\n },\n data: this.pieChartData // [\n // {value: 0, name: '超额达成'},\n // {value: 0, name: '达成'},\n // {value: 0, name: '未达成'},\n // ],\n\n }] // data: this.pieChartData\n\n };\n this.pieChartOption && this.pieChart.setOption(this.pieChartOption);\n window.addEventListener('resize', function () {\n return _this.pieChart.resize();\n });\n },\n // 查询饼图数据\n // 查询列表\n enterGetData: function enterGetData() {\n var _this2 = this;\n\n this.loading = true;\n this.chartLoading = true;\n var data = JSON.parse(sessionStorage.getItem('searchDate'));\n data.projectId = this.projectId;\n apiList.enterGetData(data, function (res) {\n if (res) {\n _this2.pieChartData = [{\n value: res.overviewComplianceCountVo && res.overviewComplianceCountVo.excessCount || 0,\n name: '超额达成'\n }, {\n value: res.overviewComplianceCountVo && res.overviewComplianceCountVo.reachedCount || 0,\n name: '达成'\n }, {\n value: res.overviewComplianceCountVo && res.overviewComplianceCountVo.notReachedCount || 0,\n name: '未达成'\n }];\n\n _this2.initPie1();\n }\n\n if (res) {\n _this2.tableData = res.overviewComplianceInfoVoList;\n }\n\n _this2.chartLoading = false;\n _this2.loading = false;\n });\n },\n //获取项目\n getProjectAll: function getProjectAll() {\n var _this3 = this;\n\n var data = {\n pageBean: {\n page: 1,\n pageSize: -1,\n showTotal: true\n }\n };\n apiList.getProjectAll(data, function (res) {\n _this3.projectOptions = res;\n });\n }\n }\n};",null]}