完善工程

This commit is contained in:
仲么了
2023-03-01 08:48:52 +08:00
parent 5feb70a9c5
commit 80ba96be50
9 changed files with 110 additions and 14 deletions

View File

@@ -1,18 +1,18 @@
<template>
<Cn-page :loading='loading'>
<view slot='body'>
<view class='index' :class="{ 'device': userInfo.role == '5' }">
<view class='index' :class="{ 'device': userInfo.role == '5' || userInfo.role == '2' }">
<uni-card title="监测网关" sub-title="监测" @click="look" thumbnail="/static/gateway.png"
:padding="userInfo.role == '5' ? 0 : '10px'">
<view class="footer" v-if="userInfo.role != 5">
:padding="userInfo.role == '5' || userInfo.role == '2' ? 0 : '10px'">
<view class="footer" v-if="userInfo.role != 5 && userInfo.role != 2">
<text style="flex:1"> </text>
<view class="footer-btn" @click.stop="newDevice">注册设备</view>
<view class="footer-btn ml20">查看</view>
</view>
</uni-card>
<uni-card title="用能网关" sub-title="用能" @click="look" thumbnail="/static/gateway.png"
:padding="userInfo.role == '5' ? 0 : '10px'">
<view class="footer" v-if="userInfo.role != 5">
:padding="userInfo.role == '5' || userInfo.role == '2' ? 0 : '10px'">
<view class="footer" v-if="userInfo.role != 5 && userInfo.role != 2">
<text style="flex:1"> </text>
<view class="footer-btn" @click.stop="newDevice">注册设备</view>
<view class="footer-btn ml20">查看</view>
@@ -58,6 +58,7 @@ export default {
<style lang='scss'>
.index {
padding-top: 20rpx;
.footer {
display: flex;
justify-content: space-between;