fix(接口测试): 修复场景导入中不显示工作空间名称的缺陷

--bug=1033165 --user=王孝刚 【接口测试】接口自动化-场景中导入接口/场景弹框页面没有显示工作空间名称
https://www.tapd.cn/55049933/s/1439054
This commit is contained in:
wxg0103 2023-11-23 10:53:19 +08:00 committed by 刘瑞斌
parent 59d77a1178
commit ac0cc2c4a2
1 changed files with 25 additions and 28 deletions

View File

@ -1,5 +1,5 @@
<template> <template>
<relevance-dialog :width="width" :page-key="pageKey" :title="dialogTitle" ref="relevanceDialog" :full-screen="isFullScreen"> <relevance-dialog :width="width" :title="dialogTitle" ref="relevanceDialog" :full-screen="isFullScreen">
<!-- todo --> <!-- todo -->
<template slot="headerBtn" v-if="$slots.headerBtn"> <template slot="headerBtn" v-if="$slots.headerBtn">
<div> <div>
@ -8,18 +8,18 @@
</template> </template>
<template slot="title" slot-scope="{ title }" v-if="!$slots.headerBtn"> <template slot="title" slot-scope="{ title }" v-if="!$slots.headerBtn">
<ms-dialog-header <ms-dialog-header
:title="title" :title="title"
:enable-cancel="false" :enable-cancel="false"
@confirm="save" @confirm="save"
btn-size="mini" btn-size="mini"
:enable-full-screen="false" :enable-full-screen="false"
@fullScreen="isFullScreen = !isFullScreen"> @fullScreen="isFullScreen = !isFullScreen">
<template #other> <template #other>
<table-select-count-bar :count="selectCounts" style="float: left; margin: 5px" /> <table-select-count-bar :count="selectCounts" style="float: left; margin: 5px" />
<div v-if="flag" style="margin: 5px; float: left"> <div v-if="flag" style="margin: 5px; float: left">
<el-checkbox v-model="checked" class="el-checkbox__label" <el-checkbox v-model="checked" class="el-checkbox__label"
>{{ $t('test_track.sync_add_api_load') }} >{{ $t('test_track.sync_add_api_load') }}
</el-checkbox> </el-checkbox>
</div> </div>
</template> </template>
@ -28,29 +28,29 @@
<template v-slot:aside> <template v-slot:aside>
<span v-if="isAcrossSpace" class="menu-title">{{ <span v-if="isAcrossSpace" class="menu-title">{{
'[' + $t('project.version.checkout') + $t('commons.space') + ']' '[' + $t('project.version.checkout') + $t('commons.space') + ']'
}}</span> }}</span>
<el-select <el-select
v-if="isAcrossSpace" v-if="isAcrossSpace"
filterable filterable
slot="prepend" slot="prepend"
v-model="workspaceId" v-model="workspaceId"
@change="changeWorkspace" @change="changeWorkspace"
class="ms-header-workspace" class="ms-header-workspace"
size="small"> size="small">
<el-option v-for="item in workspaceList" :key="item.id" :value="item.id" :title="item.name"> <el-option v-for="item in workspaceList" :label="item.name" :key="item.id" :value="item.id" :title="item.name">
<div style="max-width: 450px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap"> <div style="max-width: 450px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap">
{{ item.name }} {{ item.name }}
</div> </div>
</el-option> </el-option>
</el-select> </el-select>
<select-menu <select-menu
:data="projects" :data="projects"
v-if="multipleProject" v-if="multipleProject"
width="155px" width="155px"
:current-data="currentProject" :current-data="currentProject"
:title="$t('test_track.switch_project')" :title="$t('test_track.switch_project')"
@dataChange="changeProject" /> @dataChange="changeProject" />
<slot name="aside"></slot> <slot name="aside"></slot>
</template> </template>
@ -119,9 +119,6 @@ export default {
type: Boolean, type: Boolean,
default: true, default: true,
}, },
pageKey: {
type: String,
},
}, },
methods: { methods: {
refreshNode() { refreshNode() {
@ -165,7 +162,7 @@ export default {
} }
} else { } else {
this.$message.warning( this.$message.warning(
this.$t('commons.current_workspace') + this.$t('commons.not_exist') + this.$t('commons.project') + '!' this.$t('commons.current_workspace') + this.$t('commons.not_exist') + this.$t('commons.project') + '!'
); );
} }
}); });