| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102 |
- <template>
- <view>
- <view class="user" v-for="item in rolePowers" :key="item.code">
- <view class="all">
- <view class="img">
- <image class="image" src="../../static/权限管理/管理员@2x.png"></image>
- </view>
- <view class="text">
- <text class="title">{{item.roleFlag}}</text>
- <view class="content">
- <text>角色权限:{{item.powerFlag}}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- rolePowers: [],
- }
- },
- onLoad() {
- uni.request({
- url: 'http://127.0.0.1:9999/rolePower/list',
- method: 'GET',
- data: {},
- success: res => {
- this.rolePowers = res.data.data.rolePowers;
- console.log(res.data.data.rolePowers);
- },
- })
- },
- methods: {
- }
- }
- </script>
- <style>
- .text {
- margin-top: 24rpx;
- }
- .all {
- display: flex;
- flex-direction: row;
- }
- .image {
- margin-left: 24rpx;
- margin-top: 30rpx;
- width: 100rpx;
- height: 100rpx;
- }
- .anniu {
- width: 116rpx;
- height: 116rpx;
- float: right;
- margin-top: 10rpx;
- margin-right: 4rpx;
- }
- .user {
- width: 702rpx;
- height: 207rpx;
- background-color: white;
- margin-top: 30rpx;
- margin-left: 24rpx;
- border-radius: 10rpx;
- padding-top: 30rpx;
- }
- .content {
- margin-top: 20rpx;
- margin-left: 30rpx;
- font-size: 28rpx;
- color: #444546;
- }
- .title {
- font-size: 36rpx;
- margin-left: 30rpx;
- color: #282828;
- font-weight: 600;
- }
- </style>
|