导航条台账,配置,系统管理放到右侧设置图标内
This commit is contained in:
parent
be413f39e1
commit
b214a38ed6
15
riis-web/src/assets/navigation/u138.svg
Normal file
15
riis-web/src/assets/navigation/u138.svg
Normal file
File diff suppressed because one or more lines are too long
BIN
riis-web/src/assets/point/shang.png
Normal file
BIN
riis-web/src/assets/point/shang.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 205 B |
BIN
riis-web/src/assets/point/xia.png
Normal file
BIN
riis-web/src/assets/point/xia.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 202 B |
@ -5,29 +5,28 @@
|
|||||||
<div style="margin-right: 420px;"></div>
|
<div style="margin-right: 420px;"></div>
|
||||||
<div title="系统总览" class="homeImgBox" @mousemove="mousemoveNav(navlist[0], 0)"
|
<div title="系统总览" class="homeImgBox" @mousemove="mousemoveNav(navlist[0], 0)"
|
||||||
:class="{ 'homeImgActive': activeIndex == 0 }" @click="navClick(navlist[0], 0)">系统总览</div>
|
:class="{ 'homeImgActive': activeIndex == 0 }" @click="navClick(navlist[0], 0)">系统总览</div>
|
||||||
<div class="nav-list" v-for="(item, index) in navlist" v-show="index != 0"
|
<span v-for="(item, index) in navlist">
|
||||||
:class="{ 'nav-active': activeIndex == index }" @click.stop="navClick(item, index)">
|
<!-- -->
|
||||||
<div class="nav-imgtitle">{{ item.name }}</div>
|
<div class="nav-list" v-show="index != 0" :class="{ 'nav-active': activeIndex == index }"
|
||||||
<div class="nav-sonbox" v-if="item.children != undefined && item.hide == true">
|
@click.stop="navClick(item, index)" v-if="item.name != '台账管理' && item.name != '配置管理' && item.name != '系统管理'" >
|
||||||
<div v-for="(items, indexs) in item.children">
|
<div class="nav-imgtitle">{{ item.name }}</div>
|
||||||
<div class="nav-son-list" v-if="items.name != '异常告警管理'" @click.stop="navSonClick(item, index, items)">
|
<div class="nav-sonbox" v-if="item.children != undefined && item.hide == true">
|
||||||
{{ items.name }}
|
<div v-for="(items, indexs) in item.children">
|
||||||
|
<div class="nav-son-list" v-if="items.name != '异常告警管理'" @click.stop="navSonClick(item, index, items)">
|
||||||
|
{{ items.name }}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</span>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
<div class="nav-right-box">
|
<div class="nav-right-box">
|
||||||
<div class="header-information" @click="alarmInfoClick">
|
|
||||||
<el-badge :value="alarmCount" :max="99" class="item" v-if="alarmCount != 0">
|
|
||||||
<div class="header-informationImg"></div>
|
|
||||||
</el-badge>
|
|
||||||
<div class="header-informationImg" v-else></div>
|
|
||||||
</div>
|
|
||||||
<div>
|
<div>
|
||||||
<el-select v-if="userStore.stationData.length > 1" v-model="userStore.stationId" placeholder="Select" style="width: 160px;margin-right: 15px;"
|
<el-select v-if="userStore.stationData.length > 1" v-model="userStore.stationId" placeholder="Select"
|
||||||
@change="changestation()">
|
style="width: 160px;margin-right: 15px;" @change="changestation()">
|
||||||
<el-option v-for="item in userStore.stationData" :key="item.stationId" :label="item.stationName"
|
<el-option v-for="item in userStore.stationData" :key="item.stationId" :label="item.stationName"
|
||||||
:value="item.stationId" />
|
:value="item.stationId" />
|
||||||
</el-select>
|
</el-select>
|
||||||
@ -39,6 +38,32 @@
|
|||||||
<div class="header-left-time" style="padding: 0;">用户名:{{ userStore.username }}</div>
|
<div class="header-left-time" style="padding: 0;">用户名:{{ userStore.username }}</div>
|
||||||
<!-- <div class="header-left-time" style="padding-top: 10px;">变电站:{{ userStore.regionName }}</div> -->
|
<!-- <div class="header-left-time" style="padding-top: 10px;">变电站:{{ userStore.regionName }}</div> -->
|
||||||
</div>
|
</div>
|
||||||
|
<div class="header-information" @click="alarmInfoClick">
|
||||||
|
<el-badge :value="alarmCount" :max="99" class="item" v-if="alarmCount != 0">
|
||||||
|
<div class="header-informationImg"></div>
|
||||||
|
</el-badge>
|
||||||
|
<div class="header-informationImg" v-else></div>
|
||||||
|
</div>
|
||||||
|
<div class="setting_menu">
|
||||||
|
<img src="@/assets/navigation/u138.svg" style="margin-right: 10px;cursor: pointer" @click.stop="changepei()" />
|
||||||
|
<div class="nav-sonbox" v-if="ispeizhi">
|
||||||
|
<div v-for="(item, index) in navlist">
|
||||||
|
<div class="nav-son-list" v-if="item.name == '台账管理' || item.name == '配置管理' || item.name == '系统管理'"
|
||||||
|
@click.stop="">
|
||||||
|
<span @click.stop="navClick(item, index)" style="display: flex;align-items: center;justify-content: space-between;">
|
||||||
|
<div class="oldmenu">{{ item.name }}</div>
|
||||||
|
<div style="padding:5px ;">
|
||||||
|
<img v-if="!item.hide" src="@/assets/point/xia.png" alt="">
|
||||||
|
<img v-else src="@/assets/point/shang.png" alt="">
|
||||||
|
</div>
|
||||||
|
</span>
|
||||||
|
<div v-if="item.children != undefined && item.hide == true" v-for="(items, indexs) in item.children">
|
||||||
|
<div class="smallmenu" @click.stop="navSonClick(item, index, items)" >{{ items.name }}</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
<img src="@/assets/navigation/qvan1.png" @click="toggle" v-if="!isFullscreen"
|
<img src="@/assets/navigation/qvan1.png" @click="toggle" v-if="!isFullscreen"
|
||||||
style="margin-right: 10px;cursor: pointer">
|
style="margin-right: 10px;cursor: pointer">
|
||||||
<img src="@/assets/navigation/qvan.png" @click="toggle" v-if="isFullscreen"
|
<img src="@/assets/navigation/qvan.png" @click="toggle" v-if="isFullscreen"
|
||||||
@ -101,7 +126,11 @@ window.addEventListener('keydown', function (e) {
|
|||||||
e.preventDefault()
|
e.preventDefault()
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
const ispeizhi = ref(false)
|
||||||
const isElicon: any = ref(true)
|
const isElicon: any = ref(true)
|
||||||
|
function changepei(){
|
||||||
|
ispeizhi.value = !ispeizhi.value
|
||||||
|
}
|
||||||
function dateFormat(row: any) {
|
function dateFormat(row: any) {
|
||||||
const daterc = row;
|
const daterc = row;
|
||||||
if (daterc != null) {
|
if (daterc != null) {
|
||||||
@ -118,7 +147,7 @@ function dateFormat(row: any) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
function changestation() {
|
function changestation() {
|
||||||
userStore.stationCode = userStore.stationData.find((item:any) => item.stationId === userStore.stationId)?.stationCode;
|
userStore.stationCode = userStore.stationData.find((item: any) => item.stationId === userStore.stationId)?.stationCode;
|
||||||
reload()
|
reload()
|
||||||
}
|
}
|
||||||
function alarmInfoClick() {
|
function alarmInfoClick() {
|
||||||
@ -137,6 +166,7 @@ function navSonClick(row: any, index: any, item: any) {
|
|||||||
if (item.opturl != undefined) {
|
if (item.opturl != undefined) {
|
||||||
router.push(item.opturl)
|
router.push(item.opturl)
|
||||||
}
|
}
|
||||||
|
ispeizhi.value = false
|
||||||
|
|
||||||
}
|
}
|
||||||
function mousemoveSonNav(row: any, index: any, item: any, indexs: any) {
|
function mousemoveSonNav(row: any, index: any, item: any, indexs: any) {
|
||||||
@ -361,6 +391,8 @@ watch(() => props.CloseNav, (newValue, oldValue) => {
|
|||||||
for (let i = 0; i < navlist.value.length; i++) {
|
for (let i = 0; i < navlist.value.length; i++) {
|
||||||
navlist.value[i].hide = false
|
navlist.value[i].hide = false
|
||||||
}
|
}
|
||||||
|
ispeizhi.value = false
|
||||||
|
|
||||||
}, {
|
}, {
|
||||||
deep: true
|
deep: true
|
||||||
})
|
})
|
||||||
@ -368,6 +400,59 @@ watch(() => props.CloseNav, (newValue, oldValue) => {
|
|||||||
|
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
|
.setting_menu {
|
||||||
|
|
||||||
|
.nav-sonbox {
|
||||||
|
width: 120px;
|
||||||
|
background-image: linear-gradient(#001f5a 1%, #001f5b 90%, transparent);
|
||||||
|
border: 1px solid red;
|
||||||
|
border-image: linear-gradient(to bottom, #0082df 20%, transparent) 1;
|
||||||
|
border-bottom: 0;
|
||||||
|
|
||||||
|
padding-bottom: 20px;
|
||||||
|
margin-top: 12px;
|
||||||
|
margin-left: -60px;
|
||||||
|
position: absolute;
|
||||||
|
// top: 40px;
|
||||||
|
z-index: 9999;
|
||||||
|
font-family: "Arial Normal", "Arial";
|
||||||
|
font-weight: 400;
|
||||||
|
font-style: normal;
|
||||||
|
font-size: 14px;
|
||||||
|
|
||||||
|
.nav-son-list {
|
||||||
|
width: 100%;
|
||||||
|
// height: 32px;
|
||||||
|
// line-height: 32px;
|
||||||
|
color: rgb(255, 255, 255);
|
||||||
|
cursor: pointer;
|
||||||
|
// padding: 0px 10px;
|
||||||
|
.oldmenu{
|
||||||
|
padding: 5px 5px;
|
||||||
|
}
|
||||||
|
.oldmenu:hover{
|
||||||
|
color: #00FFFF;
|
||||||
|
}
|
||||||
|
.smallmenu{
|
||||||
|
width: 100%;
|
||||||
|
text-align: center;
|
||||||
|
padding: 5px 0px;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
.smallmenu:hover{
|
||||||
|
color: #00FFFF !important;
|
||||||
|
background-color: rgba(255, 255, 255, 0.2);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
// .nav-son-list:hover {
|
||||||
|
// color: #00FFFF;
|
||||||
|
// // background-color: rgba(255, 255, 255, 0.2);
|
||||||
|
// }
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
.navbar {
|
.navbar {
|
||||||
// padding:0 15px;
|
// padding:0 15px;
|
||||||
padding-top: 9px;
|
padding-top: 9px;
|
||||||
@ -649,7 +734,7 @@ watch(() => props.CloseNav, (newValue, oldValue) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-right: 25px;
|
// margin-right: 25px;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
background: url(@/assets/monitorsystem/top_gj.png);
|
background: url(@/assets/monitorsystem/top_gj.png);
|
||||||
@ -991,7 +1076,7 @@ watch(() => props.CloseNav, (newValue, oldValue) => {
|
|||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin-right: 25px;
|
margin-right: 5px;
|
||||||
width: 30px;
|
width: 30px;
|
||||||
height: 30px;
|
height: 30px;
|
||||||
// background: url(@/assets/monitorsystem/top_gj.png);
|
// background: url(@/assets/monitorsystem/top_gj.png);
|
||||||
|
Loading…
Reference in New Issue
Block a user