style(接口测试): 场景导入功能,页面样式调整
--bug=1015411 --user=赵勇 【接口测试】场景编辑-接口导入-切换工作空间后页面显示问题 https://www.tapd.cn/55049933/s/1213368
This commit is contained in:
parent
406a94c6e0
commit
458b5e9301
|
@ -6,7 +6,6 @@
|
|||
ref="baseRelevance">
|
||||
<template v-slot:aside>
|
||||
<ms-api-module
|
||||
style="margin-top: 5px;"
|
||||
@nodeSelectEvent="nodeChange"
|
||||
@protocolChange="handleProtocolChange"
|
||||
@refreshTable="refresh"
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
<template>
|
||||
<div>
|
||||
<el-row>
|
||||
<el-col class="protocol-col" :span="9">
|
||||
<el-col :span="8">
|
||||
<el-select class="protocol-select" size="small" v-model="condition.protocol">
|
||||
<el-option
|
||||
v-for="item in options"
|
||||
|
@ -222,7 +222,7 @@ export default {
|
|||
|
||||
<style scoped>
|
||||
.protocol-select {
|
||||
width: 92px;
|
||||
width: 85px;
|
||||
height: 30px;
|
||||
}
|
||||
|
||||
|
|
|
@ -19,16 +19,16 @@
|
|||
</template>
|
||||
|
||||
<template v-slot:aside>
|
||||
<span v-if="isAcrossSpace" class="menu-title">{{'[' + $t('project.version.checkout') + $t('commons.space') +']'}}</span>
|
||||
<span v-if="isAcrossSpace" class="menu-title">{{ '[' + $t('project.version.checkout') + $t('commons.space') + ']' }}</span>
|
||||
<el-select v-if="isAcrossSpace" filterable slot="prepend" v-model="workspaceId" @change="changeWorkspace"
|
||||
style="width: 160px"
|
||||
class="ms-header-workspace"
|
||||
size="small">
|
||||
<el-option v-for="(item,index) in workspaceList" :key="index" :label="item.name" :value="item.id"/>
|
||||
</el-select>
|
||||
<select-menu
|
||||
:data="projects"
|
||||
v-if="multipleProject"
|
||||
width="64.5%"
|
||||
width="155px"
|
||||
:current-data="currentProject"
|
||||
:title="$t('test_track.switch_project')"
|
||||
@dataChange="changeProject"/>
|
||||
|
@ -139,14 +139,14 @@ export default {
|
|||
this.projectName = data[0].name;
|
||||
this.changeProject(data[0]);
|
||||
}
|
||||
}else {
|
||||
} else {
|
||||
this.$message.warning(this.$t('commons.current_workspace') + this.$t('commons.not_exist') + this.$t('commons.project') + "!");
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
changeProject(project) {
|
||||
if(project){
|
||||
if (project) {
|
||||
this.currentProject = project;
|
||||
this.$emit('setProject', project.id);
|
||||
// 获取项目时刷新该项目模块
|
||||
|
@ -180,7 +180,9 @@ export default {
|
|||
margin-left: 10px;
|
||||
margin-right: 10px;
|
||||
}
|
||||
/*.el-checkbox__label {*/
|
||||
/* float: right;*/
|
||||
/*}*/
|
||||
|
||||
.ms-header-workspace {
|
||||
width: 155px;
|
||||
margin-bottom: 10px;
|
||||
}
|
||||
</style>
|
||||
|
|
Loading…
Reference in New Issue