fix(接口定义): 修复文档版本无法筛选的缺陷 (#17948)
--bug=1016793 --user=王孝刚 【接口测试】接口定义-API-按版本筛选-切换到文档,没进行筛选 https://www.tapd.cn/55049933/s/1244298 Co-authored-by: wxg0103 <727495428@qq.com>
This commit is contained in:
parent
bb3bea2b8d
commit
962c38bcc1
|
@ -192,6 +192,7 @@ export default {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
versionId: String
|
||||||
},
|
},
|
||||||
activated() {
|
activated() {
|
||||||
this.initApiDocSimpleList();
|
this.initApiDocSimpleList();
|
||||||
|
@ -270,6 +271,7 @@ export default {
|
||||||
} else {
|
} else {
|
||||||
simpleRequest.moduleIds = [];
|
simpleRequest.moduleIds = [];
|
||||||
}
|
}
|
||||||
|
simpleRequest.versionId = this.versionId;
|
||||||
simpleRequest.trashEnable = this.trashEnable;
|
simpleRequest.trashEnable = this.trashEnable;
|
||||||
let simpleInfoUrl = "/share/info/selectApiInfoByParam/" + this.currentPage + "/" + this.pageSize;
|
let simpleInfoUrl = "/share/info/selectApiInfoByParam/" + this.currentPage + "/" + this.pageSize;
|
||||||
this.$post(simpleInfoUrl, simpleRequest, response => {
|
this.$post(simpleInfoUrl, simpleRequest, response => {
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<api-document-anchor :is-share-page="isSharePage" :trash-enable="trashEnable"
|
<api-document-anchor :is-share-page="isSharePage" :trash-enable="trashEnable"
|
||||||
:project-id="projectId" :module-ids="moduleIds"
|
:module-ids="moduleIds" :project-id="projectId" :version-id="versionId"
|
||||||
ref="documentAnchor"/>
|
ref="documentAnchor"/>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -35,13 +35,3 @@ export function getApiTemplate() {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
export function getApiTemplate() {
|
|
||||||
return getTemplate('project/field/template/api/get-template/relate/');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
export function getApiTemplate() {
|
|
||||||
return getTemplate('project/field/template/api/get-template/relate/');
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue