fix(接口定义): #1006998 #1007028 接口定义批量修改的国际化问题、非HTTP请求的接口取消DOC文档按钮的显示

--bug=1007028 --user=宋天阳 批量编辑接口定义状态国际化问题
https://www.tapd.cn/55049933/s/1053600;--bug=1006998 --user=宋天阳
【github#6600】在接口定义中文档显示错误 https://www.tapd.cn/55049933/s/1053605
This commit is contained in:
song-tianyang 2021-10-08 15:18:17 +08:00 committed by song-tianyang
parent de641948ef
commit 3a3ac3dfa1
2 changed files with 8 additions and 3 deletions

View File

@ -95,7 +95,9 @@
:middle-tip="$t('api_test.definition.case_title')" :middle-tip="$t('api_test.definition.case_title')"
left-content="API" left-content="API"
middle-content="CASE" middle-content="CASE"
:right-content="$t('api_test.definition.doc_title')"> :right-content="$t('api_test.definition.doc_title')"
:right-button-enable="currentProtocol === 'HTTP' "
>
<!-- 列表集合 --> <!-- 列表集合 -->
<ms-api-list <ms-api-list
v-if="activeDom==='left'" v-if="activeDom==='left'"
@ -137,7 +139,7 @@
ref="caseList"/> ref="caseList"/>
<api-documents-page <api-documents-page
class="api-doc-page" class="api-doc-page"
v-if="activeDom==='right'" v-if="activeDom==='right' && currentProtocol==='HTTP'"
:project-id="projectId" :project-id="projectId"
:trash-enable="trashEnable" :trash-enable="trashEnable"
:module-ids="selectNodeIds"/> :module-ids="selectNodeIds"/>
@ -365,6 +367,9 @@ export default {
}, },
watch: { watch: {
currentProtocol() { currentProtocol() {
if(this.activeDom === 'right'){
this.activeDom = 'left';
}
this.handleCommand("CLOSE_ALL"); this.handleCommand("CLOSE_ALL");
}, },
selectNodeIds() { selectNodeIds() {

View File

@ -19,7 +19,7 @@
</el-form-item> </el-form-item>
<el-form-item v-else :label="$t('test_track.case.updated_attr_value')" prop="value"> <el-form-item v-else :label="$t('test_track.case.updated_attr_value')" prop="value">
<el-select v-model="form.value" style="width: 80%" :filterable="filterable"> <el-select v-model="form.value" style="width: 80%" :filterable="filterable">
<el-option v-for="(option, index) in options" :key="index" :value="option.id" :label="option.label"> <el-option v-for="(option, index) in options" :key="index" :value="option.id" :label="$t(option.label)">
<div v-if="option.email"> <div v-if="option.email">
<span>{{option.id}}({{option.name}})</span> <span>{{option.id}}({{option.name}})</span>
</div> </div>