{"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\\projectTable2.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\projectTable2.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//\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//\n//\n//\n//\n//\n//\n//\n//\n//\n//\nimport apiList from '@/api/bigScreen/majorView.js';\nexport default {\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 sum1: 0,\n sum2: 0,\n sum3: '',\n sum4: 0,\n sum5: 0,\n sum6: '',\n sum7: 0,\n sum8: 0\n };\n },\n beforeDestroy: function beforeDestroy() {\n this.$bus.$off('changeDate');\n },\n mounted: function mounted() {\n var _this = this;\n\n this.getData();\n this.$bus.$on('changeDate', function (searchDate) {\n _this.getData();\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 === 7) {\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 === 6) {\n sums[index] = (sums[3] / sums[2] * 100).toFixed(2) + '%';\n }\n });\n return sums;\n },\n // 跳转成果榜\n handleDetail: function handleDetail(comp, title, id) {\n this.$router.push({\n path: '/DetailComponent',\n name: 'DetailComponent',\n query: {\n comp: comp,\n // type,\n title: title,\n projectId: id\n }\n });\n },\n getData: function getData() {\n var _this2 = this;\n\n this.loading = true;\n var data = JSON.parse(sessionStorage.getItem('searchDate'));\n console.log(data); // 综合\n\n apiList.getProjectStatistics(data, function (res) {\n _this2.tableData = res.value;\n _this2.sum1 = 0;\n _this2.sum2 = 0;\n _this2.sum3 = '';\n _this2.sum4 = 0;\n _this2.sum5 = 0;\n _this2.sum6 = '';\n _this2.sum7 = 0;\n _this2.sum8 = 0;\n res.value.forEach(function (item) {\n _this2.sum1 += item.currentMonthTotalNum;\n _this2.sum2 += item.currentMonthFinishNum;\n _this2.sum4 += item.upToMonthTotalNum;\n _this2.sum5 += item.upToMonthFinishNum;\n _this2.sum7 += item.totalYearNum; // this.sum8 += item.totalYearRate\n });\n _this2.sum3 = (_this2.sum2 / _this2.sum1 * 100).toFixed(2) + '%';\n _this2.sum6 = (_this2.sum5 / _this2.sum4 * 100).toFixed(2) + '%';\n _this2.sum8 = (_this2.sum5 / _this2.sum7 * 100).toFixed(2) + '%';\n _this2.loading = false;\n });\n }\n }\n};",null]}