From d1c399d9f9f6db33844434c5711ba67160bb620c Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 17 Feb 2022 14:39:58 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=B3=BB=E7=BB=9F=E8=AE=BE=E7=BD=AE):=20?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E6=9D=83=E9=99=90=E6=B2=A1=E6=9C=89=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=E6=9C=8D=E5=8A=A1=E9=9B=86=E6=88=90=E7=9A=84=E6=9D=83?= =?UTF-8?q?=E9=99=90=E4=B8=AA=E4=BA=BA=E4=BF=A1=E6=81=AF=E4=B8=89=E6=96=B9?= =?UTF-8?q?tab=E4=B9=9F=E4=B8=8D=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 用户权限没有查看服务集成的权限个人信息三方tab也不展示_报告分享时间只能输入数字 --- .../report/PerformanceReportView.vue | 14 +++++++++++++ .../project/menu/appmanage/TimingItem.vue | 21 +++++++++++++++---- .../settings/components/PersonRouter.vue | 6 +----- .../report/detail/TestPlanReportButtons.vue | 14 +++++++++++++ frontend/src/i18n/en-US.js | 1 + frontend/src/i18n/zh-CN.js | 1 + frontend/src/i18n/zh-TW.js | 1 + 7 files changed, 49 insertions(+), 9 deletions(-) diff --git a/frontend/src/business/components/performance/report/PerformanceReportView.vue b/frontend/src/business/components/performance/report/PerformanceReportView.vue index 5753e81ab8..e967248767 100644 --- a/frontend/src/business/components/performance/report/PerformanceReportView.vue +++ b/frontend/src/business/components/performance/report/PerformanceReportView.vue @@ -381,6 +381,20 @@ export default { getProjectApplication(){ this.$get('/project_application/get/' + getCurrentProjectID()+"/PERFORMANCE_SHARE_REPORT_TIME", res => { if(res.data){ + let quantity = res.data.typeValue.substring(0, res.data.typeValue.length - 1); + let unit = res.data.typeValue.substring(res.data.typeValue.length - 1); + if(unit==='H'){ + res.data.typeValue = quantity+this.$t('commons.date_unit.hour'); + }else + if(unit==='D'){ + res.data.typeValue = quantity+this.$t('commons.date_unit.day'); + }else + if(unit==='M'){ + res.data.typeValue = quantity+this.$t('commons.date_unit.month'); + }else + if(unit==='Y'){ + res.data.typeValue = quantity+this.$t('commons.date_unit.year'); + } this.application = res.data; } }); diff --git a/frontend/src/business/components/project/menu/appmanage/TimingItem.vue b/frontend/src/business/components/project/menu/appmanage/TimingItem.vue index 066e4d23e4..b074024073 100644 --- a/frontend/src/business/components/project/menu/appmanage/TimingItem.vue +++ b/frontend/src/business/components/project/menu/appmanage/TimingItem.vue @@ -2,11 +2,11 @@