Commit 28c75b18 authored by 罗新东's avatar 罗新东

修改了我的权限图标

parent a486942c
Pipeline #7358 passed with stage
in 10 seconds
src/assets/myTerritory/role.png

4.64 KB | W: | H:

src/assets/myTerritory/role.png

695 Bytes | W: | H:

src/assets/myTerritory/role.png
src/assets/myTerritory/role.png
src/assets/myTerritory/role.png
src/assets/myTerritory/role.png
  • 2-up
  • Swipe
  • Onion skin
...@@ -5,9 +5,9 @@ ...@@ -5,9 +5,9 @@
<!-- 通知 --> <!-- 通知 -->
<van-sticky offset-top="1.5rem"> <van-sticky offset-top="1.5rem">
<van-notice-bar <van-notice-bar
left-icon="volume-o" left-icon="volume-o"
text="提示:系统使用时请核实应用权限如有问题请联系管理员。" text="提示:系统使用时请核实应用权限如有问题请联系管理员。"
/> />
</van-sticky> </van-sticky>
<!-- 权限卡片 --> <!-- 权限卡片 -->
<div v-for="(item, key) in role_list" :key="key"> <div v-for="(item, key) in role_list" :key="key">
...@@ -15,17 +15,23 @@ ...@@ -15,17 +15,23 @@
<div class="title">{{ key }}</div> <div class="title">{{ key }}</div>
<van-cell-group inset> <van-cell-group inset>
<div class="tag-wrap"> <div class="tag-wrap">
<van-tag <van-skeleton
:color="getColor()" title
v-for="(i, index) in item" :row="2"
:key="index" :loading="!item['length']"
plain
round
> >
<template v-if="i"> <van-tag
{{ i }} :color="getColor()"
</template> v-for="(i, index) in item"
</van-tag> :key="index"
plain
round
>
<template v-if="i">
{{ i }}
</template>
</van-tag>
</van-skeleton>
</div> </div>
</van-cell-group> </van-cell-group>
</template> </template>
...@@ -42,7 +48,7 @@ export default { ...@@ -42,7 +48,7 @@ export default {
}, },
data() { data() {
return { return {
tabColor: ["red", "orange", "skyblue",'yellowgreen'], tabColor: ["red", "orange", "skyblue", "yellowgreen"],
role_list: { role_list: {
"政务大数据项目cs-401": [], "政务大数据项目cs-401": [],
...@@ -59,7 +65,7 @@ export default { ...@@ -59,7 +65,7 @@ export default {
// console.log(res) // console.log(res)
if (res) { if (res) {
this.role_list = res.data; this.role_list = res.data;
}else{ } else {
this.$toast.fail("加载失败,请稍后再试"); this.$toast.fail("加载失败,请稍后再试");
} }
}, },
...@@ -158,8 +164,8 @@ export default { ...@@ -158,8 +164,8 @@ export default {
margin-right: 0.3rem; margin-right: 0.3rem;
margin-bottom: 0.3rem; margin-bottom: 0.3rem;
} }
.van-tag{ .van-tag {
padding: 0.03rem 0.2rem; padding: 0.03rem 0.2rem;
font-size: 0.25rem; font-size: 0.25rem;
} }
</style> </style>
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment