{"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\\subComponents\\projectTable3.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\projectTable3.vue","mtime":1702263619964},{"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":["import \"core-js/modules/es6.number.constructor\";\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//\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 apiList from '@/api/bigScreen/majorView.js';\nexport default {\n name: 'monthPlan',\n props: {\n tableOptions: {\n type: Object,\n default: function _default() {\n return {};\n }\n }\n },\n data: function data() {\n return {\n loading: false,\n loadingColor: 'rgba(6, 46, 106, 0.4)',\n tableData: [],\n origin: [],\n sum1: 0,\n sum2: 0,\n sum3: ''\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.$bus.$off('changeDate');\n },\n mounted: function mounted() {\n var _this = this;\n\n this.loadData();\n this.$bus.$on('changeDate', function (searchDate) {\n _this.loadData();\n });\n },\n created: function created() {\n this.$emit('searchDateChange');\n },\n methods: {\n getSummaries: function getSummaries(param) {\n var columns = param.columns,\n data = param.data;\n var sums = [];\n columns.forEach(function (column, index) {\n if (index === 1 || index === 0 || index === 8) {\n sums[index] = index === 1 ? '总计' : '';\n return;\n }\n\n var values = data.map(function (item) {\n return Number(item[column.property]);\n });\n\n if (!values.every(function (value) {\n return isNaN(value);\n })) {\n sums[index] = values.reduce(function (prev, curr) {\n var value = Number(curr);\n\n if (!isNaN(value)) {\n return prev + curr;\n } else {\n return prev;\n }\n }, 0);\n }\n\n if (index === 7) {\n sums[index] = (sums[5] / sums[4] * 100).toFixed(2) + '%';\n }\n });\n return sums;\n },\n handleDetail: function handleDetail(comp, id, title) {\n this.$router.push({\n path: '/DetailComponent',\n name: 'DetailComponent',\n query: {\n comp: comp,\n projectId: id,\n title: title\n }\n });\n },\n // 改革品牌榜\n loadData: function loadData() {\n var _this2 = this;\n\n this.loading = true;\n var data = JSON.parse(sessionStorage.getItem('searchDate'));\n apiList.getIndexPieChartData(data, function (res) {\n if (res.indexVoList) {\n _this2.tableData = res.indexVoList;\n _this2.sum1 = 0;\n _this2.sum2 = 0;\n _this2.sum3 = '';\n res.indexVoList.forEach(function (item) {\n _this2.sum1 += item.totalYearNum;\n _this2.sum2 += item.finishYearNum;\n });\n _this2.sum3 = (_this2.sum2 / _this2.sum1 * 100).toFixed(2) + '%';\n }\n\n _this2.loading = false;\n });\n },\n // 计算优良一般比例 排名的\n // 排名的20% 优\n // 排名的30% 良\n // 排名的50% 一般\n mathTargetIndexFinish: function mathTargetIndexFinish() {\n var targetSn = 0;\n this.origin.forEach(function (item) {\n if (targetSn < item.targetSn) {\n targetSn = item.targetSn;\n }\n });\n var level1 = targetSn * 0.2;\n var level2 = targetSn * 0.5;\n var level1Num = 0;\n var level2Num = 0;\n var level3Num = 0;\n this.origin.forEach(function (item) {\n if (item.targetSn <= level1) {\n item.type = 1;\n } else if (item.targetSn <= level2) {\n item.type = 2;\n } else {\n item.type = 3;\n }\n });\n }\n }\n};",null]}