<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">&#xe629;</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">&#xe629;</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>
