fix(接口自动化): 修复I18n 显示问题

This commit is contained in:
fit2-zhao 2021-01-22 18:17:53 +08:00
parent 5340a37cb1
commit 53fd31ec90
2 changed files with 6 additions and 4 deletions

View File

@ -3,7 +3,7 @@
<el-card class="table-card" v-loading="loading">
<template v-slot:header>
<ms-table-header :condition.sync="condition" @search="selectByParam" title=""
:show-create="false" />
:show-create="false"/>
</template>
<el-table ref="scenarioTable" border :data="tableData" class="adjust-table ms-select-all" @select-all="select" @select="select"
@ -442,7 +442,8 @@
return this.selection.includes(row.id)
},
edit(row) {
this.$emit('edit', row);
let data = JSON.parse(JSON.stringify(row));
this.$emit('edit', data);
},
reductionApi(row) {
row.scenarioDefinition = null;
@ -471,7 +472,7 @@
copy(row) {
let rowParam = JSON.parse(JSON.stringify(row));
rowParam.copy = true;
rowParam.name = 'copy_'+rowParam.name;
rowParam.name = 'copy_' + rowParam.name;
this.$emit('edit', rowParam);
},
showReport(row) {
@ -538,6 +539,7 @@
/deep/ .el-drawer__header {
margin-bottom: 0px;
}
/deep/ .run-button {
background-color: #409EFF;
border-color: #409EFF;

View File

@ -91,7 +91,7 @@
<!-- 场景步骤-->
<div v-loading="loading">
<div @click="showAll">
<p class="tip">{{ $t('api_test.automation.scenario_stepscenario_step') }} </p>
<p class="tip">{{ $t('api_test.automation.scenario_step') }} </p>
</div>
<el-row>
<el-col :span="21">