diff --git a/src/views/ebiz/product/HomeProduct.vue b/src/views/ebiz/product/HomeProduct.vue index 5e4d4f3f1..a13ea83f9 100644 --- a/src/views/ebiz/product/HomeProduct.vue +++ b/src/views/ebiz/product/HomeProduct.vue @@ -134,7 +134,7 @@ import product from '@/assets/images/goodStart/product.png' import { getAgentInfo } from '@/api/ebiz/my/my' import { getCongratulationList } from '@/api/ebiz/congratulation/congratulation.js' import dateUtil from '@/assets/js/utils/date-utils.js' -// import { orgShortNames } from '@/assets/js/utils/orgShortName' +import { orgShortNames } from '@/assets/js/utils/orgShortName' import CacheUtils from '@/assets/js/utils/cacheUtils' export default { components: { @@ -179,22 +179,22 @@ export default { let data = await getCongratulationList({ date: currMonth, queryType: 'm', type: 'kmh' }) if (this.isInner) { this.organizationData = data.content - // for (let org of this.organizationData) { - // for (let shortName of orgShortNames) { - // if (org.code === shortName.code) { - // org.name = shortName.name - // } - // } - // } + for (let org of this.organizationData) { + for (let shortName of orgShortNames) { + if (org.code === shortName.code) { + org.name = shortName.name + } + } + } } else { this.performanceData = data.content.list - // for (let org of this.performanceData) { - // for (let shortName of orgShortNames) { - // if (org.comCode === shortName.code) { - // org.comName = shortName.name - // } - // } - // } + for (let org of this.performanceData) { + for (let shortName of orgShortNames) { + if (org.comCode === shortName.code) { + org.comName = shortName.name + } + } + } } this.$nextTick(() => { this.isTableDataLoad = true