fix(接口测试): 修复接口定义文档标签页中未根据所选版本进行数据查询的问题
--bug=1009968 --user=宋天阳 【接口定义】-接口定义文档页面是空 https://www.tapd.cn/55049933/s/1098246
This commit is contained in:
parent
26a15c8ada
commit
7e0c382176
|
@ -156,6 +156,7 @@
|
|||
v-if="activeDom==='right' && currentProtocol==='HTTP'"
|
||||
:project-id="projectId"
|
||||
:trash-enable="trashEnable"
|
||||
:version-id="currentVersion"
|
||||
:module-ids="selectNodeIds"
|
||||
ref="documentsPage"/>
|
||||
</ms-tab-button>
|
||||
|
@ -538,7 +539,6 @@ export default {
|
|||
userId: getCurrentUser().id,
|
||||
url: "",
|
||||
protocol: this.currentProtocol,
|
||||
|
||||
environmentId: "",
|
||||
remark: "",
|
||||
moduleId: 'default-module',
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-container v-loading="isLoading">
|
||||
<el-main style="padding-top: 0px;padding-bottom: 0px" >
|
||||
<el-main style="padding-top: 0px;padding-bottom: 0px">
|
||||
<!-- 筛选条件 -->
|
||||
<el-row v-if="sharePage" style="margin-top: 10px">
|
||||
<el-select size="small" :placeholder="$t('api_test.definition.document.order')"
|
||||
|
@ -79,7 +79,8 @@
|
|||
<el-divider></el-divider>
|
||||
<!-- 展示区域 -->
|
||||
<div ref="apiDocInfoDiv" @scroll="handleScroll" style="overflow: auto">
|
||||
<api-information v-for="(apiInfo) in apiShowArray" :key="apiInfo.id" :api-info="apiInfo" :project-id="projectId" ref="apiDocInfoDivItem"/>
|
||||
<api-information v-for="(apiInfo) in apiShowArray" :key="apiInfo.id" :api-info="apiInfo"
|
||||
:project-id="projectId" ref="apiDocInfoDivItem"/>
|
||||
</div>
|
||||
</el-main>
|
||||
<!-- 右侧列表 -->
|
||||
|
@ -169,6 +170,7 @@ export default {
|
|||
documentId: String,
|
||||
moduleIds: Array,
|
||||
sharePage: Boolean,
|
||||
versionId: String,
|
||||
pageHeaderHeight: Number,
|
||||
trashEnable: {
|
||||
type: Boolean,
|
||||
|
@ -253,6 +255,7 @@ export default {
|
|||
simpleRequest.moduleIds = [];
|
||||
}
|
||||
simpleRequest.trashEnable = this.trashEnable;
|
||||
simpleRequest.versionId = this.versionId;
|
||||
|
||||
let simpleInfoUrl = "/share/info/selectApiSimpleInfo";
|
||||
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<api-document-anchor :is-share-page="isSharePage" :trash-enable="trashEnable"
|
||||
:project-id="projectId" :module-ids="moduleIds"
|
||||
:project-id="projectId" :module-ids="moduleIds" :version-id="versionId"
|
||||
ref="documentAnchor"/>
|
||||
</div>
|
||||
</template>
|
||||
|
@ -24,6 +24,7 @@ export default {
|
|||
props: {
|
||||
projectId: String,
|
||||
moduleIds: Array,
|
||||
versionId: String,
|
||||
activeDom: String,
|
||||
trashEnable: {
|
||||
type: Boolean,
|
||||
|
@ -32,7 +33,11 @@ export default {
|
|||
},
|
||||
created: function () {
|
||||
},
|
||||
watch: {},
|
||||
watch: {
|
||||
versionId() {
|
||||
this.initApiDocSimpleList();
|
||||
}
|
||||
},
|
||||
computed: {},
|
||||
methods: {
|
||||
initApiDocSimpleList() {
|
||||
|
|
Loading…
Reference in New Issue