BUG 29517
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="BackUserList">
|
<div class="BackUserList">
|
||||||
<AiTopFixed v-if="isAdmin">
|
<AiTopFixed v-if="isGridMember">
|
||||||
<div class="pad-t32"></div>
|
<div class="pad-t32"></div>
|
||||||
<div class="select-gird">
|
<div class="select-gird">
|
||||||
<AiPagePicker type="custom" @select="confirmSelect" v-model="girdId" self
|
<AiPagePicker type="custom" @select="confirmSelect" v-model="girdId" self
|
||||||
@@ -34,7 +34,7 @@
|
|||||||
<div class="item" :class="tabIndex ? 'active' : ''" @click="tabClick(1)">异常人员<span></span></div>
|
<div class="item" :class="tabIndex ? 'active' : ''" @click="tabClick(1)">异常人员<span></span></div>
|
||||||
</div>
|
</div>
|
||||||
</AiTopFixed>
|
</AiTopFixed>
|
||||||
<div class="user-list" v-if="isAdmin">
|
<div class="user-list" v-if="isGridMember">
|
||||||
<div class="item" @click="toUser(item)" v-for="(item,index) in list" :key="index">
|
<div class="item" @click="toUser(item)" v-for="(item,index) in list" :key="index">
|
||||||
<h2 class="name">{{ item.name }}<span class="status" v-if="item.status == 0">有异常</span></h2>
|
<h2 class="name">{{ item.name }}<span class="status" v-if="item.status == 0">有异常</span></h2>
|
||||||
<p class="color-999">{{ item.idNumber }}</p>
|
<p class="color-999">{{ item.idNumber }}</p>
|
||||||
@@ -44,13 +44,13 @@
|
|||||||
<p><img src="./components/img/time-icon.png" alt="">{{ item.arriveTime }}</p>
|
<p><img src="./components/img/time-icon.png" alt="">{{ item.arriveTime }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<AiEmpty v-if="!list.length && isAdmin"></AiEmpty>
|
<AiEmpty v-if="!list.length && isGridMember"></AiEmpty>
|
||||||
<div v-if="!isAdmin" class="empty">
|
<div v-if="!isGridMember" class="empty">
|
||||||
<img src="./components/img/no-admin.png" alt="">
|
<img src="./components/img/no-admin.png" alt="">
|
||||||
<p>没有网格员权限<br/>无法查看返乡登记哦~</p>
|
<p>没有网格员权限<br/>无法查看返乡登记哦~</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="pad-b120"></div>
|
<div class="pad-b120"></div>
|
||||||
<div class="footer" v-if="isAdmin">
|
<div class="footer" v-if="isGridMember">
|
||||||
<div class="bg-fff"
|
<div class="bg-fff"
|
||||||
@click="linkTo(`./Add?arriveGirdId=${girdId}&arriveGirdName=${encodeURIComponent(girdName)}`)">登记
|
@click="linkTo(`./Add?arriveGirdId=${girdId}&arriveGirdName=${encodeURIComponent(girdName)}`)">登记
|
||||||
</div>
|
</div>
|
||||||
@@ -94,7 +94,6 @@ export default {
|
|||||||
list: [],
|
list: [],
|
||||||
name: '',
|
name: '',
|
||||||
totalInfo: {},
|
totalInfo: {},
|
||||||
isAdmin: true,
|
|
||||||
show: false,
|
show: false,
|
||||||
girdName: '',
|
girdName: '',
|
||||||
girdId: '',
|
girdId: '',
|
||||||
@@ -108,10 +107,12 @@ export default {
|
|||||||
shareLink() {
|
shareLink() {
|
||||||
let {girdId, girdName, user: {corpId}} = this
|
let {girdId, girdName, user: {corpId}} = this
|
||||||
return location.origin + `/apps/AppBackUserList/add?corpId=${corpId}&arriveGirdId=${girdId}&arriveGirdName=${encodeURIComponent(girdName)}`
|
return location.origin + `/apps/AppBackUserList/add?corpId=${corpId}&arriveGirdId=${girdId}&arriveGirdName=${encodeURIComponent(girdName)}`
|
||||||
|
},
|
||||||
|
isGridMember() {
|
||||||
|
return this.user.girdCheckType > 0
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onLoad() {
|
onLoad() {
|
||||||
this.isGirdUser()
|
|
||||||
this.girdId = this.user.girdId
|
this.girdId = this.user.girdId
|
||||||
this.confirmSelect(this.user)
|
this.confirmSelect(this.user)
|
||||||
uni.$on('updateBackList', () => {
|
uni.$on('updateBackList', () => {
|
||||||
@@ -166,14 +167,6 @@ export default {
|
|||||||
linkTo(url) {
|
linkTo(url) {
|
||||||
uni.navigateTo({url})
|
uni.navigateTo({url})
|
||||||
},
|
},
|
||||||
isGirdUser() {
|
|
||||||
this.isAdmin = false
|
|
||||||
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
|
||||||
if (res?.data) {
|
|
||||||
this.isAdmin = res.data.checkType != '0'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
close() {
|
close() {
|
||||||
this.show = false
|
this.show = false
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppBuilding">
|
<div class="AppBuilding">
|
||||||
<search-map v-if="show && isAdmin"/>
|
<search-map v-if="show && isGridMember"/>
|
||||||
<div v-if="!isAdmin" class="empty">
|
<div v-if="!isGridMember" class="empty">
|
||||||
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
|
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
|
||||||
<p>没有网格员权限<br/>无法查看楼栋信息哦~</p>
|
<p>没有网格员权限<br/>无法查看楼栋信息哦~</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -11,15 +11,21 @@
|
|||||||
<script>
|
<script>
|
||||||
|
|
||||||
import SearchMap from "./components/searchMap";
|
import SearchMap from "./components/searchMap";
|
||||||
|
import {mapState} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AppBuilding',
|
name: 'AppBuilding',
|
||||||
components: {SearchMap},
|
components: {SearchMap},
|
||||||
appName: '以房找人',
|
appName: '以房找人',
|
||||||
|
computed: {
|
||||||
|
...mapState(['user']),
|
||||||
|
isGridMember() {
|
||||||
|
return this.user.girdCheckType > 0
|
||||||
|
}
|
||||||
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
show: true,
|
show: true,
|
||||||
isAdmin: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -28,44 +34,31 @@ export default {
|
|||||||
this.show = true
|
this.show = true
|
||||||
})
|
})
|
||||||
document.title = "以房找人"
|
document.title = "以房找人"
|
||||||
this.isGirdUser()
|
|
||||||
},
|
},
|
||||||
methods: {
|
|
||||||
isGirdUser() {
|
|
||||||
this.isAdmin = false
|
|
||||||
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
|
||||||
if (res.code == 0) {
|
|
||||||
if (res.data.checkType != '0') {
|
|
||||||
this.isAdmin = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
uni-page-body {
|
|
||||||
height: 100%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.AppBuilding {
|
.AppBuilding {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
.empty{
|
|
||||||
|
.empty {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
img{
|
|
||||||
|
img {
|
||||||
width: 282px;
|
width: 282px;
|
||||||
height: 306px;
|
height: 306px;
|
||||||
margin: 168px 0 0 234px;
|
margin: 168px 0 0 234px;
|
||||||
}
|
}
|
||||||
p{
|
|
||||||
|
p {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 28px;
|
font-size: 28px;
|
||||||
font-family: PingFangSC-Regular, PingFang SC;
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
color: #999;
|
color: #999;
|
||||||
line-height: 44px;
|
line-height: 44px;
|
||||||
span{
|
|
||||||
|
span {
|
||||||
color: #467DFE;
|
color: #467DFE;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppHandSnapshot">
|
<div class="AppHandSnapshot">
|
||||||
<component v-if="refresh && isAdmin" :is="component" @change="onChange" :params="params"> </component>
|
<component v-if="refresh && isGridMember" :is="component" @change="onChange" :params="params"> </component>
|
||||||
<div v-if="!isAdmin" class="empty">
|
<div v-if="!isGridMember" class="empty">
|
||||||
<img src="./components/img/no-admin.png" alt="">
|
<img src="./components/img/no-admin.png" alt="">
|
||||||
<p>没有网格员权限<br />无法查看矛盾调解信息哦~</p>
|
<p>没有网格员权限<br />无法查看矛盾调解信息哦~</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -10,11 +10,11 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import List from './List.vue'
|
import List from './List.vue'
|
||||||
|
import {mapState} from "vuex";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'AppConflictMediation',
|
name: 'AppConflictMediation',
|
||||||
appName: '矛盾调解',
|
appName: '矛盾调解',
|
||||||
|
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
component: 'List',
|
component: 'List',
|
||||||
@@ -22,33 +22,20 @@ export default {
|
|||||||
refresh: true,
|
refresh: true,
|
||||||
tabIndex: 0,
|
tabIndex: 0,
|
||||||
isTab: true,
|
isTab: true,
|
||||||
isAdmin: false
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
components: {List},
|
||||||
components: {
|
computed:{
|
||||||
List,
|
...mapState(['user']),
|
||||||
|
isGridMember() {
|
||||||
|
return this.user.girdCheckType > 0
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
onChange(e) {
|
onChange(e) {
|
||||||
this.params = e.params
|
this.params = e.params
|
||||||
this.component = e.type
|
this.component = e.type
|
||||||
},
|
},
|
||||||
|
|
||||||
isGirdUser() {
|
|
||||||
this.isAdmin = false
|
|
||||||
this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
|
||||||
if (res?.data) {
|
|
||||||
if (res.data.checkType != '0') {
|
|
||||||
this.isAdmin = true
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
},
|
|
||||||
},
|
|
||||||
onLoad() {
|
|
||||||
this.isGirdUser()
|
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
document.title = '矛盾调解'
|
document.title = '矛盾调解'
|
||||||
@@ -58,7 +45,7 @@ export default {
|
|||||||
uni.$on('showTab', () => {
|
uni.$on('showTab', () => {
|
||||||
this.isTab = true
|
this.isTab = true
|
||||||
})
|
})
|
||||||
|
|
||||||
},
|
},
|
||||||
onReachBottom() {
|
onReachBottom() {
|
||||||
if(!this.tabIndex) {
|
if(!this.tabIndex) {
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppGridManagement">
|
<div class="AppGridManagement">
|
||||||
<div class="pad-t32" v-if="component != 'Map' && isAdmin"></div>
|
<div class="pad-t32" v-if="component != 'Map' && isGridMember"></div>
|
||||||
<div class="select-gird" v-if="component != 'Map' && isAdmin" flex>
|
<div class="select-gird" v-if="component != 'Map' && isGridMember" flex>
|
||||||
<AiPagePicker type="custom" class="fill" @select="handleSelectGird"
|
<AiPagePicker type="custom" class="fill" @select="handleSelectGird"
|
||||||
:ops="{url:'./SelectGird',label: 'girdName'}">
|
:ops="{url:'./SelectGird',label: 'girdName'}">
|
||||||
<div flex>
|
<div flex>
|
||||||
@@ -11,14 +11,14 @@
|
|||||||
</AiPagePicker>
|
</AiPagePicker>
|
||||||
<span @click="linkTo('./SetGird')" v-if="isGridAdmin">网格配置</span>
|
<span @click="linkTo('./SetGird')" v-if="isGridAdmin">网格配置</span>
|
||||||
</div>
|
</div>
|
||||||
<component v-if="refresh && isAdmin" :is="component" @change="onChange" :params="params"></component>
|
<component v-if="refresh && isGridMember" :is="component" @change="onChange" :params="params"></component>
|
||||||
<div class="tabs" v-if="isTab && isAdmin">
|
<div class="tabs" v-if="isTab && isGridMember">
|
||||||
<div class="item" @click="tabClick(index, item.component)" v-for="(item, index) in tabs" :key="index">
|
<div class="item" @click="tabClick(index, item.component)" v-for="(item, index) in tabs" :key="index">
|
||||||
<img :src="tabIndex == index ? item.activeImg : item.img" alt=""/>
|
<img :src="tabIndex == index ? item.activeImg : item.img" alt=""/>
|
||||||
<p :class="tabIndex == index ? 'color-3267F0' : ''">{{ item.text }}</p>
|
<p :class="tabIndex == index ? 'color-3267F0' : ''">{{ item.text }}</p>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div v-if="!isAdmin" class="empty">
|
<div v-if="!isGridMember" class="empty">
|
||||||
<img src="./components/img/no-admin.png" alt="">
|
<img src="./components/img/no-admin.png" alt="">
|
||||||
<p>没有网格员权限<br/>无法查看网格信息哦~</p>
|
<p>没有网格员权限<br/>无法查看网格信息哦~</p>
|
||||||
</div>
|
</div>
|
||||||
@@ -36,7 +36,7 @@ export default {
|
|||||||
appName: '网格管理',
|
appName: '网格管理',
|
||||||
computed: {
|
computed: {
|
||||||
...mapState(['user']),
|
...mapState(['user']),
|
||||||
isAdmin() {
|
isGridMember() {
|
||||||
return this.user.girdCheckType > 0
|
return this.user.girdCheckType > 0
|
||||||
},
|
},
|
||||||
isGridAdmin() {
|
isGridAdmin() {
|
||||||
@@ -93,7 +93,7 @@ export default {
|
|||||||
this.refreshHome();
|
this.refreshHome();
|
||||||
},
|
},
|
||||||
getGridInfo() {
|
getGridInfo() {
|
||||||
this.isAdmin && this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
this.isGridMember && this.$http.post('/app/appgirdmemberinfo/checkLogOnUser').then((res) => {
|
||||||
if (res?.data) {
|
if (res?.data) {
|
||||||
this.params = res.data?.appGirdInfo || {}
|
this.params = res.data?.appGirdInfo || {}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user