fix: 修复接口用例页面报错
--bug=1009455 --user=刘瑞斌 【版本管理】接口用例-列表页报错 https://www.tapd.cn/55049933/s/1089303
This commit is contained in:
parent
20ba32bf6a
commit
73f7e3db27
|
@ -73,6 +73,7 @@
|
||||||
<api-case-simple-list
|
<api-case-simple-list
|
||||||
v-if="trashActiveDom==='right'"
|
v-if="trashActiveDom==='right'"
|
||||||
:current-protocol="currentProtocol"
|
:current-protocol="currentProtocol"
|
||||||
|
:current-version="currentVersion"
|
||||||
:visible="visible"
|
:visible="visible"
|
||||||
:currentRow="currentRow"
|
:currentRow="currentRow"
|
||||||
:select-node-ids="selectNodeIds"
|
:select-node-ids="selectNodeIds"
|
||||||
|
|
|
@ -91,6 +91,7 @@
|
||||||
<api-case-simple-list
|
<api-case-simple-list
|
||||||
class="api-case-simple-list"
|
class="api-case-simple-list"
|
||||||
:apiDefinitionId="currentApi.id"
|
:apiDefinitionId="currentApi.id"
|
||||||
|
:apiDefinition="currentApi"
|
||||||
:current-version="currentApi.versionId"
|
:current-version="currentApi.versionId"
|
||||||
:trash-enable="false"
|
:trash-enable="false"
|
||||||
@changeSelectDataRangeAll="changeSelectDataRangeAll"
|
@changeSelectDataRangeAll="changeSelectDataRangeAll"
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<span>
|
<span>
|
||||||
<span>
|
<span>
|
||||||
<div class="ms-opt-btn" v-if="apiDefinitionId">
|
<div class="ms-opt-btn" v-if="apiDefinitionId">
|
||||||
{{ $t('project.version.name') }}: {{ versionName }}
|
{{ $t('project.version.name') }}: {{ apiDefinition.versionName }}
|
||||||
</div>
|
</div>
|
||||||
<el-input :placeholder="$t('commons.search_by_id_name_tag')" @blur="search" @keyup.enter.native="search"
|
<el-input :placeholder="$t('commons.search_by_id_name_tag')" @blur="search" @keyup.enter.native="search"
|
||||||
class="search-input" size="small"
|
class="search-input" size="small"
|
||||||
|
@ -415,6 +415,7 @@ export default {
|
||||||
currentProtocol: String,
|
currentProtocol: String,
|
||||||
currentVersion: String,
|
currentVersion: String,
|
||||||
apiDefinitionId: String,
|
apiDefinitionId: String,
|
||||||
|
apiDefinition: Object,
|
||||||
selectNodeIds: Array,
|
selectNodeIds: Array,
|
||||||
activeDom: String,
|
activeDom: String,
|
||||||
visible: {
|
visible: {
|
||||||
|
@ -1169,7 +1170,6 @@ export default {
|
||||||
getVersionOptions() {
|
getVersionOptions() {
|
||||||
if (hasLicense()) {
|
if (hasLicense()) {
|
||||||
this.$get('/project/version/get-project-versions/' + getCurrentProjectID(), response => {
|
this.$get('/project/version/get-project-versions/' + getCurrentProjectID(), response => {
|
||||||
this.versionName = response.data.filter(v => v.id === this.currentVersion)[0].name;
|
|
||||||
this.versionFilters = response.data.map(u => {
|
this.versionFilters = response.data.map(u => {
|
||||||
return {text: u.name, value: u.id};
|
return {text: u.name, value: u.id};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue