12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <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>
|