refactor(接口测试): 导入TCP接口页面的下载模板位置优化
--bug=1014631 --user=王孝刚 【接口测试】-接口定义-导入TCP接口页面的下载模板位置优化 https://www.tapd.cn/55049933/s/1195195
This commit is contained in:
parent
066dbd9144
commit
4a4856663d
|
@ -25,7 +25,7 @@
|
|||
<ms-select-tree size="small" :data="moduleOptions" :defaultKey="formData.moduleId" @getValue="setModule"
|
||||
:obj="moduleObj" clearable checkStrictly/>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="!isHar" :label="$t('commons.import_mode')">
|
||||
<el-form-item :label="$t('commons.import_mode')" prop="modeId">
|
||||
<el-select size="small" v-model="formData.modeId" class="project-select" clearable>
|
||||
<el-option v-for="item in modeOptions" :key="item.id" :label="item.name" :value="item.id"/>
|
||||
</el-select>
|
||||
|
@ -173,7 +173,11 @@ export default {
|
|||
moduleId: '',
|
||||
coverModule: false
|
||||
},
|
||||
rules: {},
|
||||
rules: {
|
||||
modeId: [
|
||||
{required: true, message: this.$t('commons.please_select_import_mode'), trigger: 'change'},
|
||||
],
|
||||
},
|
||||
currentModule: {},
|
||||
fileList: [],
|
||||
moduleObj: {
|
||||
|
@ -203,9 +207,6 @@ export default {
|
|||
}
|
||||
},
|
||||
computed: {
|
||||
isHar() {
|
||||
return this.selectedPlatformValue === 'Har';
|
||||
},
|
||||
projectId() {
|
||||
return getCurrentProjectID();
|
||||
},
|
||||
|
|
|
@ -56,10 +56,9 @@
|
|||
</el-select>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="showTemplate">
|
||||
<el-link type="primary" class="download-template"
|
||||
@click="downloadTemplate"
|
||||
>{{ $t('test_track.case.import.download_template') }}
|
||||
</el-link>
|
||||
<el-button type="small" @click="downloadTemplate">
|
||||
{{ $t('test_track.case.import.download_template') }}
|
||||
</el-button>
|
||||
</el-form-item>
|
||||
<el-form-item v-if="isSwagger2">
|
||||
<el-switch
|
||||
|
@ -341,7 +340,7 @@ export default {
|
|||
return this.selectedPlatformValue === 'Swagger2';
|
||||
},
|
||||
showImportModel() {
|
||||
return this.selectedPlatformValue !== 'Har' && this.selectedPlatformValue !== 'ESB';
|
||||
return this.selectedPlatformValue !== 'ESB';
|
||||
},
|
||||
showTemplate() {
|
||||
return this.selectedPlatformValue === 'ESB';
|
||||
|
|
Loading…
Reference in New Issue