checkType5 网格员

This commit is contained in:
liuye
2024-07-18 15:41:54 +08:00
parent 7952757394
commit 9138a1b1e9
9 changed files with 15 additions and 8 deletions

View File

@@ -95,7 +95,7 @@ export const user = {
}, },
authCheck({state, dispatch, rootState}, {checkType, modulePath}) { authCheck({state, dispatch, rootState}, {checkType, modulePath}) {
//用于进入应用的权限判断 //用于进入应用的权限判断
//checkType 1、登录认证 2、居民认证 3、党员认证 4、丰都个人认证 //checkType 1、登录认证 2、居民认证 3、党员认证 4、丰都个人认证 5、网格员
//判断是否需要校验认证信息 //判断是否需要校验认证信息
let {user: userInfo, token} = rootState let {user: userInfo, token} = rootState
if (!checkType) { if (!checkType) {
@@ -141,6 +141,11 @@ export const user = {
}) })
} }
uni.navigateTo({url: modulePath}); uni.navigateTo({url: modulePath});
} else if (checkType == 5) {
if (!userInfo.girdInfos2G.length) {
return uni.showToast({title: "您还不是网格员,暂时无法使用该功能", icon: "none"});
}
uni.navigateTo({url: modulePath});
} }
} }
} }

View File

@@ -116,7 +116,8 @@ export default {
this.typeData.push(info) this.typeData.push(info)
}) })
if (this.showFinish) { this.$nextTick(() => {
if (this.showFinish) {
this.finishChartInit('finish') this.finishChartInit('finish')
} }
if (this.trendData.length) { if (this.trendData.length) {
@@ -125,6 +126,7 @@ export default {
if (this.typeData.length) { if (this.typeData.length) {
this.typeChartInit('type') this.typeChartInit('type')
} }
})
} }
}) })
@@ -145,8 +147,8 @@ export default {
var ctx = uni.createCanvasContext(id, this); var ctx = uni.createCanvasContext(id, this);
uChartsInstance[id] = new uCharts({ uChartsInstance[id] = new uCharts({
type: "ring", type: "ring",
width: 350, width: 300,
height: 250, height: 240,
context: ctx, context: ctx,
series: [ series: [
{ {

View File

@@ -56,18 +56,18 @@
<div class="item-content" v-for="(item, index) in userList" :key="index"> <div class="item-content" v-for="(item, index) in userList" :key="index">
<div class="title" @click="showUserType(index)"> <div class="title" @click="showUserType(index)">
<h2>{{ item.label }}</h2> <h2>{{ item.label }}</h2>
<img src="./img/down-icon.png" alt="" :class="item.check ? 'img-active' : ''"/> <img src="https://cdn.sinoecare.com/i/2024/07/18/6698c40a5ceb5.png" alt="" :class="item.check ? 'img-active' : ''"/>
</div> </div>
<div class="user-list" v-if="item.check"> <div class="user-list" v-if="item.check">
<div class="user-item" v-for="(e, indexs) in item.value" :key="indexs" @click="showDetail(e)"> <div class="user-item" v-for="(e, indexs) in item.value" :key="indexs" @click="showDetail(e)">
<div class="user-img"> <div class="user-img">
<img src="./img/user-img.png" alt=""/> <img src="https://cdn.sinoecare.com/i/2024/07/16/66963d7ce4040.png" alt=""/>
</div> </div>
<div class="user-info"> <div class="user-info">
<p class="name">{{ e.name }} <p class="name">{{ e.name }}
<span class="btn-icon" v-if="isAdmin || user.id == e.create_user_id"> <span class="btn-icon" v-if="isAdmin || user.id == e.create_user_id">
<img src="./img/edit-icon.png" alt="" @click.stop="toEdit(e,item.dictValue)"> <img src="https://cdn.sinoecare.com/i/2024/07/18/6698c40b5f087.png" alt="" @click.stop="toEdit(e,item.dictValue)">
<img src="./img/del-icon.png" alt="" @click.stop="del(e,item.dictValue)"> <img src="https://cdn.sinoecare.com/i/2024/07/18/6698c409e85f0.png" alt="" @click.stop="del(e,item.dictValue)">
</span> </span>
</p> </p>
<div class="phone"> <div class="phone">

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 282 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.3 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 766 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.7 KiB