From f01305c0c84bb29f9a6a659e17e855c0f4b34cec Mon Sep 17 00:00:00 2001 From: zhutianqi Date: Fri, 18 Feb 2022 11:23:29 +0800 Subject: [PATCH] commit --- .../details/otherBussStandardDetails/index.vue | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/src/pages/details/otherBussStandardDetails/index.vue b/src/pages/details/otherBussStandardDetails/index.vue index 902fed135..3216c77e1 100644 --- a/src/pages/details/otherBussStandardDetails/index.vue +++ b/src/pages/details/otherBussStandardDetails/index.vue @@ -363,14 +363,14 @@ title="下载" @click="downloadFile(file.id)" class="icon-download" - v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : '9882f477aad895ec56a7464f3e9c0b11'" + v-btn-permission="QFTP ? '9d42af4ee6d03b028eaa0c417532d79e' : '9882f477aad895ec56a7464f3e9c0b11'" /> @@ -384,13 +384,13 @@ title="下载" @click="downloadFile(file.id)" class="icon-download" - v-btn-permission="$route.params.pageType === 'INLAND_STAND' ? 'd5b28957b5105c805e90a16fd5056a45' : 'a772afab2a6708883335500f3f86e771'" + v-btn-permission="QFTP ? '9d42af4ee6d03b028eaa0c417532d79e' : '9882f477aad895ec56a7464f3e9c0b11'" /> @@ -1316,6 +1316,7 @@ export default { }, data () { return { + QFTP: false, textOptions: [], commentAverageScoreTag: '1', qualityFirstHistoryPeopleId: '',//质量评价最新评价的人的id @@ -2260,12 +2261,14 @@ export default { }, selectStandMessage () { let url = this.$route.params.pageType === 'SUB' ? 'lawss/sarSubsionessStand/getStandInfoById' : 'lawss/sarBussionessStand/getStandInfoById' - return new Promise((resolve, reject) => { this.$http.get(url, {id: this.sarStandardsInfoEO.id}, { _this: this }, res => { this.sarStandardsInfoEO = res.data || {} + if (this.sarStandardsInfoEO.standCode.indexOf('Q/FT P') !== -1) { + this.QFTP = true + } // this.textOptions.forEach(item => { // if(this.sarStandardsInfoEO.textStatusBuss === item.value){ // this.sarStandardsInfoEO.textStatusBuss = item.label @@ -3156,7 +3159,6 @@ export default { } }) }) - displayLocation.forEach(location => { // 动态属性字段-FBGBJBD 单独添加至基础信息 const list = displayLocation.filter ( item => item.label === '过程稿件'); @@ -3170,7 +3172,7 @@ export default { } for (let i = 0; i < displayLocation.length; i++) { - // sss + // sss11 if(displayLocation[i].label !== '基础信息' && displayLocation[i].label !== '过程稿件'){ const childList = displayLocation[i].child.filter ( item => item.value !== null && item.value !== ''); if(childList.length === 0){