style(系统设置): 弹框遮罩层样式调整

This commit is contained in:
fit2-zhao 2022-07-01 14:03:29 +08:00 committed by f2c-ci-robot[bot]
parent a2a13b8f47
commit d58264983b
5 changed files with 49 additions and 81 deletions

View File

@ -19,7 +19,7 @@
<el-aside <el-aside
:class="isCollapse ? 'ms-aside': 'ms-aside-open'" :class="isCollapse ? 'ms-aside': 'ms-aside-open'"
class="ms-left-aside" class="ms-left-aside"
:style="isFixed ? 'opacity:100%; position: relative': 'opacity: 95%;position: fixed'" :style="isFixed ? 'opacity:100%; position: relative;z-index: 666;': 'opacity: 95%;position: fixed'"
@mouseenter.native="collapseOpen" @mouseenter.native="collapseOpen"
@mouseleave.native="collapseClose"> @mouseleave.native="collapseClose">
<ms-aside-header :color="color" :isCollapse="isCollapse"/> <ms-aside-header :color="color" :isCollapse="isCollapse"/>

View File

@ -109,7 +109,7 @@ export function editApiScenarioCaseOrder(request, callback) {
} }
export function savePreciseEnvProjectIds(projectIds, envMap) { export function savePreciseEnvProjectIds(projectIds, envMap) {
if (envMap != null && projectIds != null) { if (envMap != null && projectIds != null && projectIds.length > 0) {
let keys = envMap.keys(); let keys = envMap.keys();
for (let key of keys) { for (let key of keys) {
if (!projectIds.has(key)) { if (!projectIds.has(key)) {

View File

@ -1,23 +1,18 @@
<template> <template>
<div> <div>
<el-menu :unique-opened="true" class="header-user-menu align-right header-top-menu" <div class="ms-header-menu align-right">
mode="horizontal" <el-tooltip effect="light">
text-color="#fff" <template v-slot:content>
active-text-color="#fff"> <span>{{ $t('commons.notice_center') }}</span>
<el-menu-item onselectstart="return false"> </template>
<el-tooltip effect="light"> <div @click="showNoticeCenter" v-if="noticeCount > 0 || noticeShow">
<template v-slot:content> <el-badge is-dot class="item" type="danger">
<span>{{ $t('commons.notice_center') }}</span> <font-awesome-icon class="icon global focusing" :icon="['fas', 'bell']"/>
</template> </el-badge>
<div @click="showNoticeCenter" v-if="noticeCount > 0 || noticeShow"> </div>
<el-badge is-dot class="item" type="danger"> <font-awesome-icon @click="showNoticeCenter" class="icon global focusing" :icon="['fas', 'bell']" v-else/>
<font-awesome-icon class="icon global focusing" :icon="['fas', 'bell']"/> </el-tooltip>
</el-badge> </div>
</div>
<font-awesome-icon @click="showNoticeCenter" class="icon global focusing" :icon="['fas', 'bell']" v-else/>
</el-tooltip>
</el-menu-item>
</el-menu>
<el-drawer :visible.sync="taskVisible" :destroy-on-close="true" direction="rtl" <el-drawer :visible.sync="taskVisible" :destroy-on-close="true" direction="rtl"
:withHeader="true" :modal="false" :title="$t('commons.notice_center')" size="550px" :withHeader="true" :modal="false" :title="$t('commons.notice_center')" size="550px"
@ -276,4 +271,14 @@ export default {
.ms-task-success { .ms-task-success {
color: #67C23A; color: #67C23A;
} }
.ms-header-menu {
padding: 12px 0px 0px;
}
.ms-header-menu:hover {
cursor: pointer;
border-color: var(--color);
}
</style> </style>

View File

@ -63,7 +63,7 @@ h1 {
width: 400px; width: 400px;
position: fixed; position: fixed;
right: 0px; right: 0px;
z-index: 666; z-index: 3000;
top: 6px; top: 6px;
} }
</style> </style>

View File

@ -1,26 +1,17 @@
<template> <template>
<div v-permission="['PROJECT_API_SCENARIO:READ','WORKSPACE_USER:READ']"> <div v-permission="['PROJECT_API_SCENARIO:READ','WORKSPACE_USER:READ']">
<el-menu
v-if="showMenu" <el-tooltip effect="light" class="ms-header-menu align-right" v-if="showMenu">
:unique-opened="true" <template v-slot:content>
class="header-user-menu align-right header-top-menu" <span>{{ $t('commons.task_center') }}</span>
mode="horizontal" </template>
text-color="#fff" <div @click="showTaskCenter" v-if="runningTotal > 0">
active-text-color="#fff"> <el-badge :value="runningTotal" class="item" type="primary">
<el-menu-item onselectstart="return false"> <font-awesome-icon class="icon global focusing" :icon="['fas', 'tasks']"/>
<el-tooltip effect="light"> </el-badge>
<template v-slot:content> </div>
<span>{{ $t('commons.task_center') }}</span> <font-awesome-icon @click="showTaskCenter" class="icon global focusing" :icon="['fas', 'tasks']" v-else/>
</template> </el-tooltip>
<div @click="showTaskCenter" v-if="runningTotal > 0">
<el-badge :value="runningTotal" class="item" type="primary">
<font-awesome-icon class="icon global focusing" :icon="['fas', 'tasks']" style="font-size: 18px"/>
</el-badge>
</div>
<font-awesome-icon @click="showTaskCenter" class="icon global focusing" :icon="['fas', 'tasks']" v-else/>
</el-tooltip>
</el-menu-item>
</el-menu>
<el-drawer <el-drawer
:visible.sync="taskVisible" :visible.sync="taskVisible"
@ -484,29 +475,8 @@ export default {
} }
.global { .global {
color: rgb(96,98,102); color: rgb(96, 98, 102);
} font-size: 14px
.header-top-menu {
height: 40px;
line-height: 40px;
color: inherit;
}
.header-top-menu.el-menu--horizontal > li {
height: 40px;
line-height: 40px;
color: inherit;
}
.header-top-menu.el-menu--horizontal > li.el-submenu > * {
height: 39px;
line-height: 40px;
color: inherit;
}
.header-top-menu.el-menu--horizontal > li.is-active {
background: var(--color_shallow) !important;
} }
.ms-card-task:hover { .ms-card-task:hover {
@ -514,26 +484,19 @@ export default {
border-color: #783887; border-color: #783887;
} }
.ms-header-menu {
padding: 12px 0px 0px;
}
.ms-header-menu:hover {
cursor: pointer;
border-color: var(--color);
}
/deep/ .el-progress-bar { /deep/ .el-progress-bar {
padding-right: 20px; padding-right: 20px;
} }
/deep/ .el-menu-item {
padding-left: 0;
padding-right: 0;
}
/deep/ .el-badge__content.is-fixed {
top: 25px;
}
/deep/ .el-badge__content {
border-radius: 10px;
height: 10px;
line-height: 10px;
}
.item { .item {
margin-right: 10px; margin-right: 10px;
} }