{"remainingRequest":"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\\projectSpeedIndex.vue?vue&type=script&lang=js&","dependencies":[{"path":"D:\\jenkins\\workspace\\reform-fvue\\src\\views\\BigScreen\\components\\subComponents\\projectSpeedIndex.vue","mtime":1713987699193},{"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\r\nimport apiList from '@/api/bigScreen/majorView.js'\r\nimport utils from '@/utils.js'\r\nconst tempArr = {\r\n nationFirmCity: [],\r\n nationFirmCounty: [],\r\n parkAreaCity: [],\r\n parkAreaCounty: [],\r\n gEnterpriseCity: [],\r\n gEnterpriseCounty: [],\r\n nationAssetsCity: [],\r\n nationAssetsCounty: [],\r\n}\r\nexport default {\r\n name: 'projectSpeedIndex',\r\n data() {\r\n return {\r\n loading: false,\r\n tableHeader: [],\r\n tableHeader1: [\r\n {\r\n label: '国企改革攻坚',\r\n key: 'a',\r\n type: 'parent-column',\r\n children: [\r\n {\r\n label: '市属重点国企',\r\n key: 'nationFirm-city',\r\n type: 'child-type',\r\n width: 180,\r\n },\r\n {\r\n label: '纳入目标责任书统计的\\n亏损企业总户数(户)',\r\n key: 'nationFirm-city-value3',\r\n width: 156,\r\n },\r\n {\r\n label: '止损减亏\\n企业户数(户)',\r\n key: 'nationFirm-city-value2',\r\n width: 120,\r\n },\r\n {\r\n label: '止损减亏\\n完成率(%)',\r\n key: 'nationFirm-city-value1',\r\n width: 130,\r\n },\r\n {\r\n label: '区县',\r\n key: 'nationFirm-county',\r\n type: 'child-type',\r\n width: 116,\r\n },\r\n {\r\n label: '纳入目标责任书统计的\\n亏损企业总户数(户)',\r\n key: 'nationFirm-county-value3',\r\n width: 160,\r\n },\r\n {\r\n label: '止损减亏\\n企业户数(户)',\r\n key: 'nationFirm-county-value2',\r\n width: 120,\r\n },\r\n {\r\n label: '国企止损\\n减亏完成率(%)',\r\n key: 'nationFirm-county-value1',\r\n width: 130,\r\n },\r\n ],\r\n },\r\n ],\r\n tableHeader2: [\r\n {\r\n label: '园区开发区改革攻坚',\r\n key: 'b',\r\n type: 'parent-column',\r\n children: [\r\n {\r\n label: '区县',\r\n key: 'parkArea-county',\r\n type: 'child-type',\r\n width: 116,\r\n },\r\n {\r\n label: '各区县签订目标责任书上设定的\\n规上工业企业营业收入(亿元)',\r\n key: 'parkArea-county-value3',\r\n width: 240,\r\n },\r\n {\r\n label: '实际完成\\n营业收入(亿元)',\r\n key: 'parkArea-county-value2',\r\n width: 170,\r\n },\r\n {\r\n label: '园区开发区规上\\n企业营业收入完成率(%)',\r\n key: 'parkArea-county-value1',\r\n width: 240,\r\n },\r\n ],\r\n },\r\n ],\r\n tableHeader3: [\r\n {\r\n label: '政企分离改革攻坚',\r\n key: 'c',\r\n type: 'parent-column',\r\n children: [\r\n {\r\n label: '市属重点国企',\r\n key: 'gEnterprise-city',\r\n type: 'child-type',\r\n width: 180,\r\n },\r\n {\r\n label: '须政企分离改革国有企业\\n(全级次)总量(个)',\r\n key: 'gEnterprise-city-value3',\r\n width: 196,\r\n },\r\n {\r\n label: '已完成政企分离改革国有\\n企业(全级次)数量(个)',\r\n key: 'gEnterprise-city-value2',\r\n width: 196,\r\n },\r\n {\r\n label: '市级部门政企分离\\n改革完成率(%)',\r\n key: 'gEnterprise-city-value1',\r\n width: 140,\r\n },\r\n {\r\n label: '区县',\r\n key: 'gEnterprise-county',\r\n type: 'child-type',\r\n width: 116,\r\n },\r\n {\r\n label: '须政企分离改革国有企业\\n(全级次)总量 (个)',\r\n key: 'gEnterprise-county-value3',\r\n width: 196,\r\n },\r\n {\r\n label: '已完成政企分离改革国有\\n企业(全级次)数量 (个)',\r\n key: 'gEnterprise-county-value2',\r\n width: 196,\r\n },\r\n {\r\n label: '政企分离\\n改革完成率 (%)',\r\n key: 'gEnterprise-county-value1',\r\n width: 140,\r\n },\r\n ],\r\n },\r\n ],\r\n tableHeader4: [\r\n {\r\n label: '国有资产盘活',\r\n key: 'd',\r\n type: 'parent-column',\r\n children: [\r\n {\r\n label: '市属重点国企',\r\n key: 'nationAssets-city',\r\n type: 'child-type',\r\n width: 180,\r\n },\r\n {\r\n label: '全年存量国有资产\\n盘活目标(亿元)',\r\n key: 'nationAssets-city-value3',\r\n width: 150,\r\n },\r\n {\r\n label: '已盘活存量国有\\n资产价值(亿元)',\r\n key: 'nationAssets-city-value2',\r\n width: 150,\r\n },\r\n {\r\n label: '盘活存量国有\\n资产完成率(%)',\r\n key: 'nationAssets-city-value1',\r\n width: 150,\r\n },\r\n {\r\n label: '区县',\r\n key: 'nationAssets-county',\r\n type: 'child-type',\r\n width: 116,\r\n },\r\n {\r\n label: '全年存量国有资产\\n盘活目标(亿元)',\r\n key: 'nationAssets-county-value3',\r\n width: 150,\r\n },\r\n {\r\n label: '已盘活存量国有\\n资产价值(亿元)',\r\n key: 'nationAssets-county-value2',\r\n width: 150,\r\n },\r\n {\r\n label: '盘活存量国有\\n资产完成率(%)',\r\n key: 'nationAssets-county-value1',\r\n width: 150,\r\n },\r\n ],\r\n },\r\n ],\r\n threeResultData: [],\r\n oneData: [],\r\n year: '',\r\n }\r\n },\r\n beforeDestroy() {\r\n this.$bus.$off('changeDate')\r\n },\r\n mounted() {\r\n let type = this.$route.query.type\r\n this.tableHeader = this[`tableHeader${type}`]\r\n this.$bus.$on('changeDate', (searchDate) => {\r\n this.getThreeSpeedData()\r\n })\r\n },\r\n created() {\r\n this.$emit('searchDateChange')\r\n this.getThreeSpeedData()\r\n },\r\n methods: {\r\n getThreeSpeedData() {\r\n this.threeResultData = []\r\n this.loading = true\r\n let {year, month} = JSON.parse(sessionStorage.getItem('searchDate'))\r\n this.year = year\r\n let data = {\r\n fillMonth: month,\r\n fillYear: year,\r\n indexType: '竞速榜',\r\n }\r\n apiList.getThreeOneDataDetail(data, (res) => {\r\n if (res) {\r\n this.threeResultData = this.formatData(res)\r\n console.log('this.threeResultData', this.threeResultData)\r\n }\r\n this.loading = false\r\n })\r\n },\r\n // 组织返回数据结构\r\n formatData(res) {\r\n let tableDataOrigin = utils.deepClone(res)\r\n let tempTableData = []\r\n\r\n for (let key in tableDataOrigin) {\r\n let level = this.filterTypeKey(key)\r\n tableDataOrigin[key].forEach((item, index) => {\r\n let temp = tempTableData[index]\r\n let isAdd = false\r\n if (index === 0 || index === 1) {\r\n isAdd = item.isAdd\r\n }\r\n tempTableData[index] = {\r\n ...temp,\r\n [level]: item.unitName,\r\n [level + '-value1']: isAdd ? '-' : item.value1,\r\n [level + '-value2']: isAdd ? '-' : item.value2,\r\n [level + '-value3']: isAdd ? '-' : item.value3,\r\n }\r\n })\r\n }\r\n return tempTableData\r\n },\r\n filterTypeKey(key) {\r\n let level = ''\r\n let arrKey = key.split('-')\r\n if (arrKey[1] == '国企改革攻坚') {\r\n if (arrKey[0] == '市级') {\r\n level = 'nationFirm-city'\r\n } else if (arrKey[0] == '区县') {\r\n level = 'nationFirm-county'\r\n }\r\n }\r\n if (arrKey[1] == '园区开发区改革攻坚') {\r\n if (arrKey[0] == '市级') {\r\n level = 'parkArea-city'\r\n } else if (arrKey[0] == '区县') {\r\n level = 'parkArea-county'\r\n }\r\n }\r\n if (arrKey[1] == '政企分离改革攻坚') {\r\n if (arrKey[0] == '市级') {\r\n level = 'gEnterprise-city'\r\n } else if (arrKey[0] == '区县') {\r\n level = 'gEnterprise-county'\r\n }\r\n }\r\n if (arrKey[1] == '国有资产盘活') {\r\n if (arrKey[0] == '市级') {\r\n level = 'nationAssets-city'\r\n } else if (arrKey[0] == '区县') {\r\n level = 'nationAssets-county'\r\n }\r\n }\r\n return level\r\n },\r\n },\r\n}\r\n",null]}