diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue index 3907c404a..79cce7720 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listOfCountries.vue @@ -268,7 +268,6 @@ export default { _this: this }, res => { let arr = res.data.records; - console.log('271', arr) arr.forEach(item => { // 国家地区转换 if (item.countryArea !== null || item.countryArea !== "") { @@ -283,7 +282,6 @@ export default { } } }) - console.log('286',arr) this.sarAccessListDatas = arr this.tableLoading = false this.sarSarAccessEOSearch.page = 1 diff --git a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue index 822bb4bd8..da32a185b 100644 --- a/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue +++ b/src/pages/regulatoryRepository/accessStandardsAndRegulations/page/listProject.vue @@ -85,7 +85,7 @@ align="center"> @@ -279,8 +279,8 @@ export default { }, { _this: this }, res => { - this.sarAccessListDatas = res.data.records - this.sarAccessListDatas.forEach(item =>{ + let arr = res.data.records; + arr.forEach(item =>{ // 适用车型转换 if (item.carType !== null) { let k = (item.carType || "").split(',') @@ -289,11 +289,12 @@ export default { if (this.energyKindOptions[i].value === k[m]) { k[m] = this.energyKindOptions[i].label } - item.carType = k.join(',') + item.carTypeShow = k.join(',') } } } }) + this.sarAccessListDatas = arr this.tableLoading = false this.sarSarAccessEOSearch.page = 1 this.sarAccessListTotal = res.data.total @@ -393,8 +394,8 @@ export default { }, { _this: this }, res => { - this.sarAccessListDatas = res.data.records - this.sarAccessListDatas.forEach(item =>{ + let arr = res.data.records + arr.forEach(item =>{ // 适用车型转换 if (item.carType !== null) { let k = (item.carType || "").split(',') @@ -403,11 +404,12 @@ export default { if (this.energyKindOptions[i].value === k[m]) { k[m] = this.energyKindOptions[i].label } - item.carType = k.join(',') + item.carTypeShow = k.join(',') } } } }) + this.sarAccessListDatas = arr this.tableLoading = false this.sarSarAccessEOSearch.page = 1 this.sarAccessListTotal = res.data.total