refactor(接口测试): 接口导入文案修改

--bug=1020874 --user=郭雨琦
https://www.tapd.cn/55049933/bugtrace/bugs/view/1155049933001020874
This commit is contained in:
guoyuqi 2022-12-16 10:08:16 +08:00 committed by xiaomeinvG
parent f786537863
commit a274642793
4 changed files with 19 additions and 10 deletions

View File

@ -23,7 +23,7 @@
</div> </div>
</div> </div>
<el-form :model="formData" :rules="rules" label-width="105px" v-loading="result" ref="form"> <el-form :model="formData" :rules="rules" label-width="110px" v-loading="result" ref="form">
<el-row> <el-row>
<el-col :span="11"> <el-col :span="11">
<el-form-item :label="$t('commons.import_module')"> <el-form-item :label="$t('commons.import_module')">
@ -37,8 +37,8 @@
checkStrictly /> checkStrictly />
</el-form-item> </el-form-item>
<el-form-item :label="$t('commons.import_mode')" prop="modeId"> <el-form-item :label="$t('commons.import_mode')" prop="modeId">
<el-select size="small" v-model="formData.modeId" class="project-select" clearable> <el-select size="small" v-model="formData.modeId" class="project-select" clearable style="width: 100%">
<el-option v-for="item in modeOptions" :key="item.id" :label="item.name" :value="item.id" /> <el-option v-for="item in modeOptions" :key="item.id" :label="item.name" :value="item.id"/>
</el-select> </el-select>
<el-checkbox size="mini" v-if="formData.modeId === 'fullCoverage'" v-model="formData.coverModule"> <el-checkbox size="mini" v-if="formData.modeId === 'fullCoverage'" v-model="formData.coverModule">
{{ this.$t('commons.cover_scenario') }} {{ this.$t('commons.cover_scenario') }}
@ -56,7 +56,7 @@
<el-form-item <el-form-item
v-xpack v-xpack
v-if="projectVersionEnable && formData.modeId === 'fullCoverage'" v-if="projectVersionEnable && formData.modeId === 'fullCoverage'"
:label="$t('api_test.api_import.data_update_version')" :label="$t('api_test.scenario_import.data_update_version')"
prop="versionId"> prop="versionId">
<el-select size="small" v-model="formData.updateVersionId" clearable style="width: 100%"> <el-select size="small" v-model="formData.updateVersionId" clearable style="width: 100%">
<el-option v-for="item in versionOptions" :key="item.id" :label="item.name" :value="item.id" /> <el-option v-for="item in versionOptions" :key="item.id" :label="item.name" :value="item.id" />
@ -65,7 +65,7 @@
<el-form-item <el-form-item
v-xpack v-xpack
v-if="projectVersionEnable && formData.modeId === 'fullCoverage'" v-if="projectVersionEnable && formData.modeId === 'fullCoverage'"
:label="$t('api_test.api_import.data_new_version')" :label="$t('api_test.scenario_import.data_new_version')"
prop="versionId"> prop="versionId">
<el-select size="small" v-model="formData.versionId" clearable style="width: 100%"> <el-select size="small" v-model="formData.versionId" clearable style="width: 100%">
<el-option v-for="item in versionOptions" :key="item.id" :label="item.name" :value="item.id" /> <el-option v-for="item in versionOptions" :key="item.id" :label="item.name" :value="item.id" />
@ -426,9 +426,6 @@ export default {
margin-left: 10px; margin-left: 10px;
} }
.el-form {
padding: 30px 10px;
}
.dialog-footer { .dialog-footer {
float: right; float: right;

View File

@ -1915,10 +1915,14 @@ const message = {
no_cover_tip_scenario_1: "1. The same Scenario that already exists in the system will not be changed", no_cover_tip_scenario_1: "1. The same Scenario that already exists in the system will not be changed",
no_cover_tip_scenario_2: "2. Add Scenario that do not exist in the system", no_cover_tip_scenario_2: "2. Add Scenario that do not exist in the system",
import_version: 'Import version', import_version: 'Import version',
data_update_version: 'New API created to', data_update_version: 'The same API is updated to',
data_new_version: 'The same API is updated to', data_new_version: 'New API created to',
latest_version: 'Latest version', latest_version: 'Latest version',
}, },
scenario_import: {
data_update_version: 'The same Scenario is updated to',
data_new_version: 'New Scenario created to',
},
home_page: { home_page: {
unit_of_measurement: "", unit_of_measurement: "",
unit_of_count: "", unit_of_count: "",

View File

@ -1928,6 +1928,10 @@ const message = {
data_new_version: '新增API创建到', data_new_version: '新增API创建到',
latest_version: '最新版本', latest_version: '最新版本',
}, },
scenario_import: {
data_update_version: '同一场景更新到',
data_new_version: '新增场景创建到',
},
home_page: { home_page: {
unit_of_measurement: "个", unit_of_measurement: "个",
unit_of_count: "个", unit_of_count: "个",

View File

@ -1924,6 +1924,10 @@ const message = {
data_new_version: '新增API創建到', data_new_version: '新增API創建到',
latest_version: '最新版本', latest_version: '最新版本',
}, },
scenario_import: {
data_update_version: '同一場景更新到',
data_new_version: '新增場景創建到',
},
home_page: { home_page: {
unit_of_measurement: "個", unit_of_measurement: "個",
unit_of_count: "個", unit_of_count: "個",