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'"> <el-menu-item :index="'/report/projectStatistics'">
{{ $t("commons.report_statistics.menu.project_statistics") }} {{ $t("commons.report_statistics.menu.project_statistics") }}
</el-menu-item> </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") }} {{ $t("commons.report_statistics.menu.project_report") }}
</el-menu-item> </el-menu-item>

View File

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

View File

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

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