绘制电脑治理信息页面
This commit is contained in:
@@ -1,33 +1,20 @@
|
||||
<template>
|
||||
<Cn-page :loading="loading" noPadding>
|
||||
<view slot="body" class="canneng-index">
|
||||
<uni-nav-bar
|
||||
rightWidth="300rpx"
|
||||
leftWidth="300rpx"
|
||||
dark
|
||||
:fixed="true"
|
||||
status-bar
|
||||
background-color="#fff"
|
||||
color="#111"
|
||||
@clickRight="selectEngineering"
|
||||
>
|
||||
<uni-nav-bar rightWidth="300rpx" leftWidth="300rpx" dark :fixed="true" status-bar background-color="#fff"
|
||||
color="#111" @clickRight="selectEngineering">
|
||||
<template slot="left">
|
||||
<text style="font-size: 32rpx; font-weight: 500">灿能物联</text>
|
||||
</template>
|
||||
<template slot="right">
|
||||
<text class="hide-txt mr5" style="font-size: 28rpx"
|
||||
>{{
|
||||
userInfo.authorities === 'engineering_user'
|
||||
? '创建工程'
|
||||
: select.engineeringName || emptyEngineeringName
|
||||
}}
|
||||
<text class="hide-txt mr5" style="font-size: 28rpx">{{
|
||||
userInfo.authorities === 'engineering_user'
|
||||
? '创建工程'
|
||||
: select.engineeringName || emptyEngineeringName
|
||||
}}
|
||||
</text>
|
||||
<uni-icons
|
||||
type="bottom"
|
||||
size="16"
|
||||
color="#111"
|
||||
v-if="select.engineeringName && userInfo.authorities != 'engineering_user'"
|
||||
></uni-icons>
|
||||
<uni-icons type="bottom" size="16" color="#111"
|
||||
v-if="select.engineeringName && userInfo.authorities != 'engineering_user'"></uni-icons>
|
||||
</template>
|
||||
</uni-nav-bar>
|
||||
<view class="index">
|
||||
@@ -48,7 +35,10 @@
|
||||
</template>
|
||||
<!-- 设备列表 -->
|
||||
<template v-else v-show="engineeringList.length">
|
||||
<view class="canneng-index-title mt20">设备列表</view>
|
||||
<view class="canneng-index-title mt20">
|
||||
<view>设备列表</view>
|
||||
<view class="nav-menu nav-menu-btn boxClick" @click="jump">电能质量信息 </view>
|
||||
</view>
|
||||
<Device ref="device" :store="store" />
|
||||
</template>
|
||||
</view>
|
||||
@@ -227,6 +217,11 @@ export default {
|
||||
})
|
||||
},
|
||||
// 动态配置导航栏按钮
|
||||
jump() {
|
||||
uni.navigateTo({
|
||||
url: `/pages/index/comp/monitoringPoint`,
|
||||
})
|
||||
}
|
||||
},
|
||||
onLoad() {
|
||||
// 页面加载时,动态配置导航栏按钮
|
||||
@@ -308,6 +303,7 @@ export default {
|
||||
.canneng-index-title {
|
||||
padding: 0 20rpx;
|
||||
font-weight: 500;
|
||||
display: flex;
|
||||
}
|
||||
|
||||
/deep/ .uni-card {
|
||||
@@ -317,4 +313,28 @@ export default {
|
||||
/deep/ .uni-drawer__content {
|
||||
width: 100vw !important;
|
||||
}
|
||||
|
||||
.nav-menu {
|
||||
height: 40rpx;
|
||||
padding: 4rpx 20rpx;
|
||||
// margin-left: 20rpx;
|
||||
// margin-bottom: 20rpx;
|
||||
line-height: 38rpx;
|
||||
font-size: 24rpx;
|
||||
border-radius: 8rpx;
|
||||
background: #ebeaec;
|
||||
color: #666;
|
||||
|
||||
&-active {
|
||||
background: #dfe5f7;
|
||||
color: $uni-theme-color;
|
||||
}
|
||||
|
||||
&-btn {
|
||||
background: $uni-theme-color;
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
margin-left: auto;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user