| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172 |
- <template>
- <div class="permission-manager">
- <div class="list-title">
- <div class="title-l">角色权限管理</div>
- <div class="title-r">
- <div class="basic-btn" @click="handleDetail">详情</div>
- </div>
- </div>
- <div class="list-content">
- <div class="per-box" v-for="(item, index) in userInfo" :key="index">
- <div class="box-label">{{ item.label }}</div>
- <div class="box-value">{{ item.value }}</div>
- </div>
- </div>
- </div>
- </template>
- <script setup lang="ts">
- import { useRouter } from 'vue-router'
- interface UserInfoItem {
- label: string
- value: string
- }
- const props = defineProps<{
- userInfo?: UserInfoItem[]
- }>()
- const router = useRouter()
- // 详情跳转
- function handleDetail() {
- router.push({
- path: '/monitorChannel/system/role',
- query: {},
- })
- }
- </script>
- <style lang="less" scoped>
- @import '/@/design/theme.less';
- @{theme-deepblue} {
- .permission-manager {}
- }
- .permission-manager {
- --image-box-bg: url('@/assets/images/home-container/configurable/hsq/5-8.png');
- --image-box-bg1: url('@/assets/images/home-container/configurable/hsq/5-11.png');
- --image-box-bg2: url('@/assets/images/home-container/configurable/hsq/5-12.png');
- --image-box-bg3: url('@/assets/images/home-container/configurable/hsq/5-9.png');
- --image-box-bg4: url('@/assets/images/home-container/configurable/hsq/5-10.png');
- --image-box-bg5: url('@/assets/images/home-container/configurable/hsq/2-5.png');
- position: relative;
- width: 100%;
- height: 100%;
- padding: 15px;
- box-sizing: border-box;
- .list-title {
- display: flex;
- justify-content: space-between;
- width: 100%;
- height: 30px;
- line-height: 22px;
- margin-bottom: 10px;
- }
- .title-l {
- width: 177px;
- height: 100%;
- color: #01fefc;
- font-weight: bolder;
- padding-left: 16px;
- background: var(--image-box-bg5) no-repeat;
- background-size: 100% 100%;
- }
- .title-r {
- width: 85px;
- height: 30px;
- border: 1px solid #01fefc;
- border-radius: 4px;
- padding: 3px;
- cursor: pointer;
- // margin-right: 16px;
- }
- .basic-btn {
- display: flex;
- justify-content: center;
- align-items: center;
- width: 100%;
- height: 100%;
- background-color: rgba(32, 166, 169);
- }
- .list-content {
- width: 100%;
- height: calc(100% - 35px);
- overflow-y: auto;
- }
- .per-box {
- display: flex;
- justify-content: space-between;
- align-items: center;
- height: 40px;
- padding: 0px 40px;
- margin-bottom: 10px;
- background: var(--image-box-bg2) no-repeat;
- background-size: 100% 100%;
- &:nth-child(1) {
- background: var(--image-box-bg) no-repeat;
- background-size: 100% 100%;
- .box-value {
- color: #fc002a;
- }
- }
- &:nth-child(2) {
- background: var(--image-box-bg1) no-repeat;
- background-size: 100% 100%;
- .box-value {
- color: orange;
- }
- }
- &:nth-child(3) {
- background: var(--image-box-bg2) no-repeat;
- background-size: 100% 100%;
- .box-value {
- color: #2bb3fb;
- }
- }
- &:nth-child(4) {
- background: var(--image-box-bg3) no-repeat;
- background-size: 100% 100%;
- .box-value {
- color: #2cff96;
- }
- }
- &:nth-child(5) {
- background: var(--image-box-bg4) no-repeat;
- background-size: 100% 100%;
- .box-value {
- color: #ffce2c;
- }
- }
- }
- .box-value {
- font-size: 12px;
- font-family: 'douyuFont';
- }
- ::-webkit-scrollbar {
- display: none;
- }
- }
- </style>
|