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">
|
ref="baseRelevance">
|
||||||
<template v-slot:aside>
|
<template v-slot:aside>
|
||||||
<ms-api-module
|
<ms-api-module
|
||||||
style="margin-top: 5px;"
|
|
||||||
@nodeSelectEvent="nodeChange"
|
@nodeSelectEvent="nodeChange"
|
||||||
@protocolChange="handleProtocolChange"
|
@protocolChange="handleProtocolChange"
|
||||||
@refreshTable="refresh"
|
@refreshTable="refresh"
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<el-row>
|
<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-select class="protocol-select" size="small" v-model="condition.protocol">
|
||||||
<el-option
|
<el-option
|
||||||
v-for="item in options"
|
v-for="item in options"
|
||||||
|
@ -222,7 +222,7 @@ export default {
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
.protocol-select {
|
.protocol-select {
|
||||||
width: 92px;
|
width: 85px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -19,16 +19,16 @@
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:aside>
|
<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"
|
<el-select v-if="isAcrossSpace" filterable slot="prepend" v-model="workspaceId" @change="changeWorkspace"
|
||||||
style="width: 160px"
|
class="ms-header-workspace"
|
||||||
size="small">
|
size="small">
|
||||||
<el-option v-for="(item,index) in workspaceList" :key="index" :label="item.name" :value="item.id"/>
|
<el-option v-for="(item,index) in workspaceList" :key="index" :label="item.name" :value="item.id"/>
|
||||||
</el-select>
|
</el-select>
|
||||||
<select-menu
|
<select-menu
|
||||||
:data="projects"
|
:data="projects"
|
||||||
v-if="multipleProject"
|
v-if="multipleProject"
|
||||||
width="64.5%"
|
width="155px"
|
||||||
:current-data="currentProject"
|
:current-data="currentProject"
|
||||||
:title="$t('test_track.switch_project')"
|
:title="$t('test_track.switch_project')"
|
||||||
@dataChange="changeProject"/>
|
@dataChange="changeProject"/>
|
||||||
|
@ -139,14 +139,14 @@ export default {
|
||||||
this.projectName = data[0].name;
|
this.projectName = data[0].name;
|
||||||
this.changeProject(data[0]);
|
this.changeProject(data[0]);
|
||||||
}
|
}
|
||||||
}else {
|
} else {
|
||||||
this.$message.warning(this.$t('commons.current_workspace') + this.$t('commons.not_exist') + this.$t('commons.project') + "!");
|
this.$message.warning(this.$t('commons.current_workspace') + this.$t('commons.not_exist') + this.$t('commons.project') + "!");
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
|
|
||||||
changeProject(project) {
|
changeProject(project) {
|
||||||
if(project){
|
if (project) {
|
||||||
this.currentProject = project;
|
this.currentProject = project;
|
||||||
this.$emit('setProject', project.id);
|
this.$emit('setProject', project.id);
|
||||||
// 获取项目时刷新该项目模块
|
// 获取项目时刷新该项目模块
|
||||||
|
@ -180,7 +180,9 @@ export default {
|
||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
/*.el-checkbox__label {*/
|
|
||||||
/* float: right;*/
|
.ms-header-workspace {
|
||||||
/*}*/
|
width: 155px;
|
||||||
|
margin-bottom: 10px;
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
Loading…
Reference in New Issue