bug
This commit is contained in:
@@ -1,6 +1,10 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="AppBuilding">
|
<div class="AppBuilding">
|
||||||
<search-map v-if="show"/>
|
<search-map v-if="show && isAdmin"/>
|
||||||
|
<div v-if="!isAdmin" class="empty">
|
||||||
|
<img src="https://cdn.cunwuyun.cn/dvcp/h5/no-data.png" alt="">
|
||||||
|
<p>没有网格员/网格长权限<br/>无法查看楼栋信息哦~</p>
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@@ -14,7 +18,8 @@ export default {
|
|||||||
appName: '以房找人',
|
appName: '以房找人',
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
show: true
|
show: true,
|
||||||
|
isAdmin: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
onShow() {
|
onShow() {
|
||||||
@@ -23,7 +28,20 @@ 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 == '2') {
|
||||||
|
this.isAdmin = true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
},
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
@@ -34,5 +52,23 @@ uni-page-body {
|
|||||||
|
|
||||||
.AppBuilding {
|
.AppBuilding {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
|
.empty{
|
||||||
|
height: 100%;
|
||||||
|
img{
|
||||||
|
width: 282px;
|
||||||
|
height: 306px;
|
||||||
|
margin: 168px 0 0 234px;
|
||||||
|
}
|
||||||
|
p{
|
||||||
|
text-align: center;
|
||||||
|
font-size: 28px;
|
||||||
|
font-family: PingFangSC-Regular, PingFang SC;
|
||||||
|
color: #999;
|
||||||
|
line-height: 44px;
|
||||||
|
span{
|
||||||
|
color: #467DFE;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -19,7 +19,7 @@
|
|||||||
|
|
||||||
<div class="walk-item">
|
<div class="walk-item">
|
||||||
<span>走访人员:</span>
|
<span>走访人员:</span>
|
||||||
<span>{{ data.createUserName }}</span>
|
<span><AiOpenData v-if="data.createUserName" type="userName" :openid="data.createUserName" /></span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="walk-item">
|
<div class="walk-item">
|
||||||
|
|||||||
@@ -52,6 +52,10 @@
|
|||||||
<div class="subBtn" @click="submit">
|
<div class="subBtn" @click="submit">
|
||||||
<div>确定选择</div>
|
<div>确定选择</div>
|
||||||
</div>
|
</div>
|
||||||
|
<AiFixedBtn>
|
||||||
|
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAdd()"/>
|
||||||
|
</AiFixedBtn>
|
||||||
|
|
||||||
|
|
||||||
<!-- <AiBck /> -->
|
<!-- <AiBck /> -->
|
||||||
</div>
|
</div>
|
||||||
@@ -82,6 +86,9 @@ export default {
|
|||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
toAdd() {
|
||||||
|
uni.navigateTo({ url: '../AppSpecialPeople/add'})
|
||||||
|
},
|
||||||
userClick(row, index) {
|
userClick(row, index) {
|
||||||
if (this.userList[index].isChecked) {
|
if (this.userList[index].isChecked) {
|
||||||
this.userList[index].isChecked = false //取消
|
this.userList[index].isChecked = false //取消
|
||||||
@@ -101,7 +108,7 @@ export default {
|
|||||||
// },
|
// },
|
||||||
|
|
||||||
getUsers() {
|
getUsers() {
|
||||||
this.$http.post(`/app/appspecialadjustment/allList?size=20¤t=${this.current}`, { type: this.type }).then((res) => {
|
this.$http.post(`/app/appspecialadjustment/allList?size=20¤t=${this.current}`, { type: this.type, name: this.keyword }).then((res) => {
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
if(this.current > res.data.total) {
|
if(this.current > res.data.total) {
|
||||||
return
|
return
|
||||||
@@ -143,6 +150,7 @@ export default {
|
|||||||
if (!this.showType) {
|
if (!this.showType) {
|
||||||
this.keyword = e
|
this.keyword = e
|
||||||
this.current = 1
|
this.current = 1
|
||||||
|
this.userList = []
|
||||||
// this.getUser()
|
// this.getUser()
|
||||||
this.getUsers()
|
this.getUsers()
|
||||||
}
|
}
|
||||||
@@ -288,5 +296,18 @@ export default {
|
|||||||
float: right;
|
float: right;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.addBtn {
|
||||||
|
width: 96px;
|
||||||
|
height: 96px;
|
||||||
|
flex-shrink: 0;
|
||||||
|
background: $uni-color-primary;
|
||||||
|
box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2);
|
||||||
|
font-size: 48px;
|
||||||
|
color: #fff;
|
||||||
|
border-radius: 50%;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
Reference in New Issue
Block a user