Commit e5dc7d2e authored by 张牧越's avatar 张牧越

styleFix

parent b8e95357
...@@ -200,4 +200,12 @@ ...@@ -200,4 +200,12 @@
::v-deep .el-step__line { ::v-deep .el-step__line {
top: 50% !important; top: 50% !important;
transform: translateY(-50%) !important; transform: translateY(-50%) !important;
}
::v-deep .el-dialog {
margin: 0 auto !important;
position: fixed;
left: 50%;
top: 50%;
transform: translateX(-50%)translateY(-50%);
} }
\ No newline at end of file
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
v-if="router.child && router.child.length == 0" v-if="router.child && router.child.length == 0"
:key="index" :key="index"
class="router-link" class="router-link"
@click="childRouteName = ''"
> >
<router-link <router-link
:to="{ path: router.menu_url, query: { token_code: token } }" :to="{ path: router.menu_url, query: { token_code: token } }"
...@@ -30,19 +31,22 @@ ...@@ -30,19 +31,22 @@
</div> </div>
<el-dropdown v-else :key="index" placement="bottom"> <el-dropdown v-else :key="index" placement="bottom">
<div class="parent-router"> <div :class="['parent-router', childRouteName ? 'active' : '']">
{{ router.right_name }} {{ router.right_name
}}{{ childRouteName ? `/${childRouteName}` : "" }}
</div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item <el-dropdown-item
v-for="(child, cIndex) in router.child" v-for="(child, cIndex) in router.child"
:key="cIndex" :key="cIndex"
> >
<router-link <div @click="setRoute(router, child)">
:to="{ path: child.menu_url, query: { token_code: token } }" <router-link
> :to="{ path: child.menu_url, query: { token_code: token } }"
{{ child.right_name }}</router-link >
> {{ child.right_name }}</router-link
>
</div>
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
...@@ -66,23 +70,28 @@ ...@@ -66,23 +70,28 @@
:key="index" :key="index"
:to="{ path: router.menu_url, query: { token_code: token } }" :to="{ path: router.menu_url, query: { token_code: token } }"
> >
{{ router.right_name }}</router-link <span @click="childRouteName = ''">{{
router.right_name
}}</span></router-link
> >
<el-dropdown v-else :key="index" placement="bottom"> <el-dropdown v-else :key="index" placement="bottom">
<div class="parent-router"> <div :class="['parent-router', childRouteName ? 'active' : '']">
{{ router.right_name }} {{ router.right_name
}}{{ router.childRoute ? `/${childRouteName}` : "" }}
</div> </div>
<el-dropdown-menu slot="dropdown"> <el-dropdown-menu slot="dropdown">
<el-dropdown-item <el-dropdown-item
v-for="(child, cIndex) in router.child" v-for="(child, cIndex) in router.child"
:key="cIndex" :key="cIndex"
> >
<router-link <div @click="setRoute(router, child)">
:to="{ path: child.menu_url, query: { token_code: token } }" <router-link
> :to="{ path: child.menu_url, query: { token_code: token } }"
{{ child.right_name }}</router-link >
> {{ child.right_name }}</router-link
>
</div>
</el-dropdown-item> </el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
...@@ -117,6 +126,7 @@ export default { ...@@ -117,6 +126,7 @@ export default {
screenDetail: {}, screenDetail: {},
leftNav: [], leftNav: [],
rightNav: [], rightNav: [],
childRouteName: "",
}; };
}, },
methods: { methods: {
...@@ -192,6 +202,10 @@ export default { ...@@ -192,6 +202,10 @@ export default {
jumpBack() { jumpBack() {
window.location.href = window.location.origin + "/pweb/m/"; window.location.href = window.location.origin + "/pweb/m/";
}, },
setRoute(router, child) {
console.log(router, child);
this.childRouteName = child.right_name;
},
}, },
computed: { computed: {
token() { token() {
...@@ -275,6 +289,7 @@ export default { ...@@ -275,6 +289,7 @@ export default {
} }
} }
.parent-router { .parent-router {
position: relative;
margin-right: 0 !important; margin-right: 0 !important;
} }
.router-link { .router-link {
...@@ -301,7 +316,9 @@ a, ...@@ -301,7 +316,9 @@ a,
&:last-child { &:last-child {
margin-right: 0; margin-right: 0;
} }
&:hover {
&:hover,
&.active {
color: #fff; color: #fff;
border-color: #27acfb; border-color: #27acfb;
position: relative; position: relative;
......
...@@ -218,20 +218,6 @@ ...@@ -218,20 +218,6 @@
<div class="step-description">{{ progress.name }}</div> <div class="step-description">{{ progress.name }}</div>
</template> </template>
</el-step> </el-step>
<el-step
v-for="(progress, index) in progressDetail.progress_data"
:key="index"
>
<template #title>
<div class="step-title">
{{ progress.over_date }}
<div class="step-status">{{ progress.status_text }}</div>
</div>
</template>
<template #description>
<div class="step-description">{{ progress.name }}</div>
</template>
</el-step>
</el-steps> </el-steps>
</div> </div>
</div> </div>
......
...@@ -635,9 +635,13 @@ export default { ...@@ -635,9 +635,13 @@ export default {
} }
} }
.no-data { .no-data {
position: absolute;
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
color: #86919e; color: #86919e;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
img { img {
width: 300px; width: 300px;
margin: 0 auto; margin: 0 auto;
......
...@@ -405,7 +405,8 @@ export default { ...@@ -405,7 +405,8 @@ export default {
height: 100%; height: 100%;
} }
.side-area { .side-area {
width: 400px; width: 25%;
min-width: 400px;
} }
#elevator-description { #elevator-description {
...@@ -461,7 +462,8 @@ export default { ...@@ -461,7 +462,8 @@ export default {
} }
} }
.elevator-container { .elevator-container {
width: calc(100% - 412px); width: 75%;
margin-left: 12px;
} }
.platform { .platform {
img { img {
...@@ -540,7 +542,7 @@ export default { ...@@ -540,7 +542,7 @@ export default {
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
color: #c6def9; color: #c6def9;
height: calc(100% - 105px); height: calc(100% - 132px);
.warning-table-list { .warning-table-list {
height: calc(100% - 50px); height: calc(100% - 50px);
overflow-y: auto; overflow-y: auto;
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</div> </div>
</ShadowContainer> </ShadowContainer>
<Title text="近24小时报警分析"></Title> <Title text="近24小时报警分析"></Title>
<ShadowContainer class="short-container"> <ShadowContainer class="long-container">
<div id="today-warning-chart" ref="today24hourWarningChart"></div> <div id="today-warning-chart" ref="today24hourWarningChart"></div>
</ShadowContainer> </ShadowContainer>
</div> </div>
...@@ -82,7 +82,7 @@ ...@@ -82,7 +82,7 @@
</div> </div>
</ShadowContainer> </ShadowContainer>
<Title text="报警信息"></Title> <Title text="报警信息"></Title>
<ShadowContainer class="short-container"> <ShadowContainer class="long-container">
<div id="warning-info"> <div id="warning-info">
<div> <div>
<div class="warning-info-text">今日报警</div> <div class="warning-info-text">今日报警</div>
...@@ -426,10 +426,12 @@ export default { ...@@ -426,10 +426,12 @@ export default {
height: calc(100% - 24px); height: calc(100% - 24px);
} }
.side-area { .side-area {
width: 400px; width: 25%;
min-width: 400px;
} }
.mid-area { .mid-area {
width: calc(100% - 824px); width: 50%;
margin: 0 12px;
position: relative; position: relative;
} }
.swagger-container { .swagger-container {
...@@ -588,7 +590,7 @@ export default { ...@@ -588,7 +590,7 @@ export default {
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
color: #c6def9; color: #c6def9;
height: calc(100% - 105px); height: calc(100% - 132px);
.warning-table-list { .warning-table-list {
height: calc(100% - 50px); height: calc(100% - 50px);
overflow-y: auto; overflow-y: auto;
...@@ -673,7 +675,10 @@ export default { ...@@ -673,7 +675,10 @@ export default {
} }
} }
.short-container { .short-container {
height: calc(50% - 108px); height: calc(42.5% - 108px);
}
.long-container {
height: calc(58% - 108px);
} }
.cover-area { .cover-area {
position: absolute; position: absolute;
...@@ -681,7 +686,7 @@ export default { ...@@ -681,7 +686,7 @@ export default {
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
z-index: 99999; z-index: 999;
box-shadow: #1f81ef 0px 0px 8px inset; box-shadow: #1f81ef 0px 0px 8px inset;
pointer-events: none; pointer-events: none;
} }
......
...@@ -293,7 +293,7 @@ export default { ...@@ -293,7 +293,7 @@ export default {
width: 25%; width: 25%;
} }
.mid-area { .mid-area {
width: calc(50% - 40px); width: calc(50% - 24px);
margin: 0 20px; margin: 0 20px;
.status-container { .status-container {
display: flex; display: flex;
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
title="近三日预委托记录" title="近三日预委托记录"
width="80vw" width="80vw"
top="10vh" top="0"
> >
<div> <div>
<el-table :data="tableData" height="550px" stripe> <el-table :data="tableData" height="550px" stripe>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
title="取样详情" title="取样详情"
width="80vw" width="80vw"
top="10vh" top="0"
> >
<div id="sample-container"> <div id="sample-container">
<div id="sample-map-container"></div> <div id="sample-map-container"></div>
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
title="整改详情" title="整改详情"
width="70vw" width="70vw"
top="20px" top="0"
append-to-body append-to-body
> >
<div id="scroll-dialog"> <div id="scroll-dialog">
......
...@@ -590,11 +590,13 @@ export default { ...@@ -590,11 +590,13 @@ export default {
padding-bottom: 0; padding-bottom: 0;
height: 100%; height: 100%;
.side-area { .side-area {
width: 460px; width: 25%;
min-width: 400px;
height: 100%; height: 100%;
} }
.right-area { .right-area {
width: calc(100% - 472px); width: 75%;
margin-left: 12px;
height: 100%; height: 100%;
} }
} }
......
...@@ -913,6 +913,10 @@ export default { ...@@ -913,6 +913,10 @@ export default {
text-align: center; text-align: center;
font-size: 14px; font-size: 14px;
color: #86919e; color: #86919e;
position: absolute;
left: 50%;
top: 50%;
transform: translateX(-50%) translateY(-50%);
img { img {
width: 200px; width: 200px;
margin: 0 auto; margin: 0 auto;
......
...@@ -138,7 +138,7 @@ ...@@ -138,7 +138,7 @@
:visible.sync="historyRouteVisible" :visible.sync="historyRouteVisible"
append-to-body append-to-body
title="历史使用记录" title="历史使用记录"
top="3vh" top="0"
> >
<el-form inline :model="searchForm"> <el-form inline :model="searchForm">
<el-form-item label="使用日期"> <el-form-item label="使用日期">
...@@ -415,10 +415,10 @@ export default { ...@@ -415,10 +415,10 @@ export default {
padding-bottom: 0; padding-bottom: 0;
height: calc(100% - 24px); height: calc(100% - 24px);
.side-area { .side-area {
width: 400px; width: 300px;
} }
#map-area { #map-area {
width: calc(100% - 412px); width: calc(100% - 312px);
height: 100%; height: 100%;
position: relative; position: relative;
.cover-area { .cover-area {
...@@ -427,7 +427,7 @@ export default { ...@@ -427,7 +427,7 @@ export default {
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
z-index: 99999; z-index: 999;
box-shadow: #1f81ef 0px 0px 8px inset; box-shadow: #1f81ef 0px 0px 8px inset;
pointer-events: none; pointer-events: none;
} }
......
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
:visible.sync="dialogVisible" :visible.sync="dialogVisible"
title="使用轨迹" title="使用轨迹"
width="1200px" width="1200px"
top="3vh" top="0"
append-to-body append-to-body
> >
<div> <div>
......
...@@ -725,10 +725,12 @@ export default { ...@@ -725,10 +725,12 @@ export default {
padding-bottom: 0; padding-bottom: 0;
height: calc(100% - 24px); height: calc(100% - 24px);
.side-area { .side-area {
width: 360px; width: 25%;
min-width: 400px;
} }
#mid-area { #mid-area {
width: calc(100% - 744px); width: 50%;
margin: 0 12px;
position: relative; position: relative;
} }
} }
...@@ -990,7 +992,7 @@ export default { ...@@ -990,7 +992,7 @@ export default {
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
z-index: 99999; z-index: 999;
box-shadow: #1f81ef 0px 0px 8px inset; box-shadow: #1f81ef 0px 0px 8px inset;
pointer-events: none; pointer-events: none;
} }
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
:title="deviceData.device_sn" :title="deviceData.device_sn"
@opened="openedEvents" @opened="openedEvents"
width="1820px" width="1820px"
top="5vh" top="0"
> >
<div id="device-container"> <div id="device-container">
<div class="left-info"> <div class="left-info">
......
...@@ -504,10 +504,12 @@ export default { ...@@ -504,10 +504,12 @@ export default {
height: calc(100% - 24px); height: calc(100% - 24px);
} }
.side-area { .side-area {
width: 400px; width: 25%;
min-width: 400px;
} }
.mid-area { .mid-area {
width: calc(100% - 824px); width: 50%;
margin: 0 12px;
position: relative; position: relative;
height: 100%; height: 100%;
} }
...@@ -665,7 +667,7 @@ export default { ...@@ -665,7 +667,7 @@ export default {
font-size: 14px; font-size: 14px;
text-align: center; text-align: center;
color: #c6def9; color: #c6def9;
height: calc(100% - 105px); height: calc(100% - 132px);
.warning-table-list { .warning-table-list {
height: calc(100% - 50px); height: calc(100% - 50px);
overflow-y: auto; overflow-y: auto;
...@@ -831,7 +833,7 @@ export default { ...@@ -831,7 +833,7 @@ export default {
height: 100%; height: 100%;
left: 0; left: 0;
top: 0; top: 0;
z-index: 99999; z-index: 999;
box-shadow: #1f81ef 0px 0px 8px inset; box-shadow: #1f81ef 0px 0px 8px inset;
pointer-events: none; pointer-events: none;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment