1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495 |
- <template>
- <view class="eleControlWrapper">
-
- <view class="cu-list menu-avatar">
- <view class="cu-item" @tap="goPowerCut()">
- <view class="cu-avatar " style="background-image:url(../../static/powerCut.png)"></view>
- <view class="content">
- <view class="">计划停电</view>
- </view>
- <view class="nav-right">
- <view class="text-grey">
- <text class="icon iconfont margin-right-xs margin-left-lg"></text>
- </view>
- </view>
- </view>
-
- <view class="cu-item" @tap="goControlReport()">
- <view class="cu-avatar " style="background-image:url(../../static/controlReport.png)"></view>
- <view class="content">
- <view class="">监察上报</view>
- </view>
- <view class="nav-right">
- <view class="text-grey">
- <text class="icon iconfont margin-right-xs margin-left-lg"></text>
- </view>
- </view>
- </view>
- </view>
-
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- permissionLabel:0
- }
- },
- onLoad() {
- this.getAuthorization()
- },
- methods: {
-
- async getAuthorization(params) {
- const res = await this.$myRequest({
- url: 'Com/getAuthorization',
- showLoading: true,
- data: params
- })
-
- console.log(res.data.permissionLabel)
- this.permissionLabel = res.data.permissionLabel
- },
-
- goControlReport() {
- uni.navigateTo({
- url: '/pages/eleControl/controlReport/controlReport',
- });
- },
-
- goPowerCut() {
- uni.navigateTo({
- url: '/pages/eleControl/powerCut/powerCut',
- });
-
- }
-
-
- }
- }
- </script>
- <style lang="scss">
- .eleControlWrapper {
- .cu-avatar {
- // width:40rpx;height:40rpx;
- background-color:#fff;
-
- }
- .cu-list.menu-avatar>.cu-item {
- height:120rpx;
- .content{
- left:80rpx;
- }
- .nav-right{
- margin-right:10rpx;
- }
- }
- }
- </style>
|