1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- <template>
- <view>
- <view class="systemSet" @tap="showPower" v-for="item in roles" :key="item.code" :data-flag="item.flag">
- <image class="image1" src="../../static/权限管理/管理员@2x.png"></image>
- <text style="margin-top: 40rpx;margin-left: 30rpx; width: 500rpx;">{{item.name}}</text>
- <image class="image2" src="../../static/运营商管理/ico2@3x.png"></image>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- roles: [],
- }
- },
- onLoad() {
- uni.request({
- url: 'http://127.0.0.1:9999/role/list',
- method: 'GET',
- data: {},
- success: res => {
- this.roles = res.data.data.roles;
- console.log(res.data.data.roles);
- },
- })
- },
- methods: {
- showPower(e) {
- var flag = e.currentTarget.dataset.flag;
- uni.navigateTo({
- url: '/pages/roleShowPower/roleShowPower?flag=' + flag,
- })
- }
- }
- }
- </script>
- <style>
- .systemSet {
- display: flex;
- flex-direction: row;
- height: 125rpx;
- background-color: white;
- margin-top: 30rpx;
- width: 704rpx;
- margin-left: 23rpx;
- border-radius: 10rpx;
- }
- .rolePower {
- display: flex;
- flex-direction: row;
- height: 125rpx;
- background-color: white;
- margin-top: 30rpx;
- width: 704rpx;
- margin-left: 23rpx;
- border-radius: 10rpx;
- }
- .image1 {
- width: 90rpx;
- height: 90rpx;
- margin-top: 20rpx;
- margin-left: 20rpx;
- }
- .image2 {
- width: 10px;
- height: 10px;
- margin-top: 50rpx;
- // margin-left: 400rpx;
- }
- </style>
|