fix: 去掉多余的更多操作按钮 (#2169)

* fix: 页面样式

* fix: 去掉多余的更多操作按钮

Co-authored-by: chenjianxing <jianxing.chen@fit2cloud.com>
This commit is contained in:
metersphere-bot 2021-04-21 22:29:43 +08:00 committed by GitHub
parent ce37691060
commit 29330b4e6b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
9 changed files with 19 additions and 22 deletions

View File

@ -2,6 +2,7 @@
<ms-container v-if="renderComponent" v-loading="loading">
<ms-aside-container>
<ms-api-scenario-module
:show-operator="true"
@nodeSelectEvent="nodeChange"
@refreshTable="refresh"
@saveAsEdit="editScenario"

View File

@ -17,6 +17,7 @@
<template v-slot:header>
<ms-search-bar
:show-operator="showOperator"
:condition="condition"
:commands="operators"/>
<module-trash-button v-if="!isReadOnly" :condition="condition" :exe="enableTrash"/>
@ -60,6 +61,7 @@
return false
}
},
showOperator: Boolean,
relevanceProjectId: String,
planId: String
},

View File

@ -3,6 +3,7 @@
<ms-container v-if="renderComponent">
<ms-aside-container>
<ms-api-module
:show-operator="true"
@nodeSelectEvent="nodeChange"
@protocolChange="handleProtocolChange"
@refreshTable="refresh"

View File

@ -17,6 +17,7 @@
<template v-slot:header>
<api-module-header
:show-operator="showOperator"
:condition="condition"
:current-module="currentModule"
:is-read-only="isReadOnly"
@ -71,6 +72,7 @@
return false
}
},
showOperator: Boolean,
planId: String,
relevanceProjectId: String,
reviewId: String

View File

@ -14,6 +14,7 @@
</el-col>
<el-col :span="15">
<ms-search-bar
:show-operator="showOperator"
:condition="condition"
:commands="operators"/>
</el-col>
@ -39,7 +40,7 @@
import TemplateComponent from "../../../../track/plan/view/comonents/report/TemplateComponent/TemplateComponent";
import MsSearchBar from "@/business/components/common/components/search/MsSearchBar";
export default {
name: "ApiModuleHeader",
name: "ApiModuleHeader",
components: {MsSearchBar, TemplateComponent, ModuleTrashButton, ApiImport, MsAddBasisApi},
data() {
return {
@ -92,6 +93,7 @@
return {}
}
},
showOperator: Boolean,
moduleOptions: Array,
currentModule: {
type: Object,

View File

@ -1,6 +1,6 @@
<template>
<el-input class="ms-search-bar" :placeholder="$t('test_track.module.search')" v-model="condition.filterText" size="small">
<template v-slot:append>
<template v-if="showOperator" v-slot:append>
<el-dropdown>
<el-button type="primary">
<span class="tip-font">{{ $t('commons.more_operator') }}</span>
@ -44,6 +44,7 @@ export default {
return {}
}
},
showOperator: Boolean,
commands: {
type: Array,
default() {

View File

@ -753,14 +753,6 @@ export default {
width: 56px;
}
.el-tabs >>> .el-tabs__content {
padding: 20px 0px;
}
.el-tabs {
padding: 30px 60px
}
.step-info {
padding: 30px;
}

View File

@ -1,5 +1,5 @@
<template>
<el-tabs v-loading="result.loading" v-model="tabActiveName">
<el-tabs class="other-info-tabs" v-loading="result.loading" v-model="tabActiveName">
<el-tab-pane :label="$t('commons.remark')" name="remark">
<el-row >
<ms-rich-text :disabled="readOnly" :content="form.remark" @updateRichText="updateRemark"/>
@ -300,4 +300,11 @@ export default {
<style scoped>
.other-info-tabs >>> .el-tabs__content {
padding: 20px 0px;
}
.other-info-tabs {
padding: 30px 60px;
}
</style>

View File

@ -492,15 +492,4 @@ p {
height: 550px;
overflow: auto;
}
.el-tabs >>> .el-tabs__content {
padding: 20px 0px;
}
.el-tabs {
padding: 30px 60px
}
</style>