checkType5 网格员
This commit is contained in:
@@ -95,7 +95,7 @@ export const user = {
|
||||
},
|
||||
authCheck({state, dispatch, rootState}, {checkType, modulePath}) {
|
||||
//用于进入应用的权限判断
|
||||
//checkType 1、登录认证 2、居民认证 3、党员认证 4、丰都个人认证
|
||||
//checkType 1、登录认证 2、居民认证 3、党员认证 4、丰都个人认证 5、网格员
|
||||
//判断是否需要校验认证信息
|
||||
let {user: userInfo, token} = rootState
|
||||
if (!checkType) {
|
||||
@@ -141,6 +141,11 @@ export const user = {
|
||||
})
|
||||
}
|
||||
uni.navigateTo({url: modulePath});
|
||||
} else if (checkType == 5) {
|
||||
if (!userInfo.girdInfos2G.length) {
|
||||
return uni.showToast({title: "您还不是网格员,暂时无法使用该功能", icon: "none"});
|
||||
}
|
||||
uni.navigateTo({url: modulePath});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -116,7 +116,8 @@ export default {
|
||||
this.typeData.push(info)
|
||||
})
|
||||
|
||||
if (this.showFinish) {
|
||||
this.$nextTick(() => {
|
||||
if (this.showFinish) {
|
||||
this.finishChartInit('finish')
|
||||
}
|
||||
if (this.trendData.length) {
|
||||
@@ -125,6 +126,7 @@ export default {
|
||||
if (this.typeData.length) {
|
||||
this.typeChartInit('type')
|
||||
}
|
||||
})
|
||||
|
||||
}
|
||||
})
|
||||
@@ -145,8 +147,8 @@ export default {
|
||||
var ctx = uni.createCanvasContext(id, this);
|
||||
uChartsInstance[id] = new uCharts({
|
||||
type: "ring",
|
||||
width: 350,
|
||||
height: 250,
|
||||
width: 300,
|
||||
height: 240,
|
||||
context: ctx,
|
||||
series: [
|
||||
{
|
||||
|
||||
@@ -56,18 +56,18 @@
|
||||
<div class="item-content" v-for="(item, index) in userList" :key="index">
|
||||
<div class="title" @click="showUserType(index)">
|
||||
<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 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-img">
|
||||
<img src="./img/user-img.png" alt=""/>
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/16/66963d7ce4040.png" alt=""/>
|
||||
</div>
|
||||
<div class="user-info">
|
||||
<p class="name">{{ e.name }}
|
||||
<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="./img/del-icon.png" alt="" @click.stop="del(e,item.dictValue)">
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/18/6698c40b5f087.png" alt="" @click.stop="toEdit(e,item.dictValue)">
|
||||
<img src="https://cdn.sinoecare.com/i/2024/07/18/6698c409e85f0.png" alt="" @click.stop="del(e,item.dictValue)">
|
||||
</span>
|
||||
</p>
|
||||
<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 |
Reference in New Issue
Block a user