fix(项目报告(X-PACK)): 修复接收到的邮件表格表头未汉化的问题

--bug=1008187 --user=宋天阳 【报表统计】-接收的邮件信息表格的表头汉化
https://www.tapd.cn/55049933/s/1071986
This commit is contained in:
song-tianyang 2021-11-22 17:30:46 +08:00 committed by song-tianyang
parent fffcc53451
commit ced5ddf265
6 changed files with 65 additions and 67 deletions

@ -1 +1 @@
Subproject commit 5b462a59144b95fa361acd962205c6a4ed676aa3
Subproject commit da4f782aa0541e7278a960ba7acf793106783288

Binary file not shown.

After

Width:  |  Height:  |  Size: 65 KiB

View File

@ -7,7 +7,7 @@
<el-menu-item :index="'/report/projectStatistics'">
{{ $t("commons.report_statistics.menu.project_statistics") }}
</el-menu-item>
<el-menu-item :index="'/report/projectReport'" v-if="licenseCheck" v-permission="['PROJECT_API_DEFINITION:READ']">
<el-menu-item :index="'/report/projectReport'" v-xpack v-permission="['PROJECT_API_DEFINITION:READ']">
{{ $t("commons.report_statistics.menu.project_report") }}
</el-menu-item>

View File

@ -3,11 +3,11 @@
<el-row>
<el-col :span="4">
<el-card :body-style="{ padding: '0px' }" class="ms-col" @click.native="openCard('trackTestCase')">
<img src="@/assets/track.jpg" class="image">
<img style="height: 214px" src="@/assets/test_case_analysis_png.png" class="image">
<div style="padding: 10px;">
<span>{{$t('commons.report_statistics.test_case_analysis')}}</span>
<span>{{ $t('commons.report_statistics.test_case_analysis') }}</span>
<div class="bottom clearfix">
<time class="time">{{$t('commons.report_statistics.test_case_activity')}}</time>
<time class="time">{{ $t('commons.report_statistics.test_case_activity') }}</time>
</div>
</div>
</el-card>
@ -16,9 +16,9 @@
<el-card :body-style="{ padding: '0px' }" class="ms-col" @click.native="openCard('countTestCase')">
<img src="@/assets/track.jpg" class="image">
<div style="padding: 10px;">
<span>{{$t('commons.report_statistics.test_case_count')}}</span>
<span>{{ $t('commons.report_statistics.test_case_count') }}</span>
<div class="bottom clearfix">
<time class="time">{{$t('commons.report_statistics.test_case_count_activity')}}</time>
<time class="time">{{ $t('commons.report_statistics.test_case_count_activity') }}</time>
</div>
</div>
</el-card>
@ -29,7 +29,7 @@
<div style="padding: 10px;">
<span>预留模块敬请期待</span>
<div class="bottom clearfix">
<time class="time">{{$t('commons.report_statistics.test_case_activity')}}</time>
<time class="time">{{ $t('commons.report_statistics.test_case_activity') }}</time>
</div>
</div>
</el-card>
@ -40,7 +40,7 @@
<div style="padding: 10px;">
<span>预留模块敬请期待</span>
<div class="bottom clearfix">
<time class="time">{{$t('commons.report_statistics.test_case_activity')}}</time>
<time class="time">{{ $t('commons.report_statistics.test_case_activity') }}</time>
</div>
</div>
</el-card>
@ -51,7 +51,7 @@
<div style="padding: 10px;">
<span>预留模块敬请期待</span>
<div class="bottom clearfix">
<time class="time">{{$t('commons.report_statistics.test_case_activity')}}</time>
<time class="time">{{ $t('commons.report_statistics.test_case_activity') }}</time>
</div>
</div>
</el-card>
@ -62,7 +62,7 @@
<div style="padding: 10px;">
<span>预留模块敬请期待</span>
<div class="bottom clearfix">
<time class="time">{{$t('commons.report_statistics.test_case_activity')}}</time>
<time class="time">{{ $t('commons.report_statistics.test_case_activity') }}</time>
</div>
</div>
</el-card>
@ -72,67 +72,67 @@
</template>
<script>
import {hasPermission} from "@/common/js/utils";
import {hasPermission} from "@/common/js/utils";
export default {
name: "ReportCard",
components: {},
data() {
return {}
},
methods: {
openCard(type) {
if (!hasPermission('PROJECT_REPORT_ANALYSIS:READ')) {
this.$warning("无查看权限!");
return;
}
this.$emit('openCard', type);
export default {
name: "ReportCard",
components: {},
data() {
return {}
},
methods: {
openCard(type) {
if (!hasPermission('PROJECT_REPORT_ANALYSIS:READ')) {
this.$warning("无查看权限!");
return;
}
},
}
this.$emit('openCard', type);
}
},
}
</script>
<style scoped>
.time {
font-size: 13px;
color: #999;
}
.time {
font-size: 13px;
color: #999;
}
.bottom {
margin-top: 13px;
line-height: 12px;
}
.bottom {
margin-top: 13px;
line-height: 12px;
}
.button {
padding: 0;
float: right;
}
.button {
padding: 0;
float: right;
}
.image {
width: 100%;
display: block;
}
.image {
width: 100%;
display: block;
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:before,
.clearfix:after {
display: table;
content: "";
}
.clearfix:after {
clear: both
}
.clearfix:after {
clear: both
}
.ms-col {
margin: 5px;
}
.ms-col {
margin: 5px;
}
.ms-content {
padding: 15px 10px 15px 15px;
}
.ms-content {
padding: 15px 10px 15px 15px;
}
.ms-col:hover {
cursor: pointer;
border-color: #783887;
}
.ms-col:hover {
cursor: pointer;
border-color: #783887;
}
</style>

View File

@ -1,3 +1,5 @@
const requireContext = require.context('@/business/components/xpack/', true, /router\.js$/);
export default {
path: "/report",
name: "report",
@ -11,10 +13,6 @@ export default {
name: 'projectStatistics',
component: () => import('@/business/components/reportstatistics/projectstatistics/ProjectStatistics'),
},
{
path: "/report/projectReport",
name: "projectReport",
component: () => import('@/business/components/xpack/reportstatistics/projectreport/ProjectReport'),
},
...requireContext.keys().map(key => requireContext(key).enterpriseReport),
]
}

@ -1 +1 @@
Subproject commit 65b84a697ad5ed6072e990fe7e75e93130f8f813
Subproject commit d1b44c0a5f6dfabf791a7c3176b3f8422236b547