bug
This commit is contained in:
@@ -1,6 +1,10 @@
|
||||
<template>
|
||||
<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>
|
||||
</template>
|
||||
|
||||
@@ -14,7 +18,8 @@ export default {
|
||||
appName: '以房找人',
|
||||
data() {
|
||||
return {
|
||||
show: true
|
||||
show: true,
|
||||
isAdmin: false
|
||||
}
|
||||
},
|
||||
onShow() {
|
||||
@@ -23,7 +28,20 @@ export default {
|
||||
this.show = true
|
||||
})
|
||||
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>
|
||||
|
||||
@@ -34,5 +52,23 @@ uni-page-body {
|
||||
|
||||
.AppBuilding {
|
||||
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>
|
||||
|
||||
@@ -19,7 +19,7 @@
|
||||
|
||||
<div class="walk-item">
|
||||
<span>走访人员:</span>
|
||||
<span>{{ data.createUserName }}</span>
|
||||
<span><AiOpenData v-if="data.createUserName" type="userName" :openid="data.createUserName" /></span>
|
||||
</div>
|
||||
|
||||
<div class="walk-item">
|
||||
|
||||
@@ -52,6 +52,10 @@
|
||||
<div class="subBtn" @click="submit">
|
||||
<div>确定选择</div>
|
||||
</div>
|
||||
<AiFixedBtn>
|
||||
<div class="addBtn iconfont iconfont-iconfangda" @tap="toAdd()"/>
|
||||
</AiFixedBtn>
|
||||
|
||||
|
||||
<!-- <AiBck /> -->
|
||||
</div>
|
||||
@@ -82,6 +86,9 @@ export default {
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
toAdd() {
|
||||
uni.navigateTo({ url: '../AppSpecialPeople/add'})
|
||||
},
|
||||
userClick(row, index) {
|
||||
if (this.userList[index].isChecked) {
|
||||
this.userList[index].isChecked = false //取消
|
||||
@@ -101,7 +108,7 @@ export default {
|
||||
// },
|
||||
|
||||
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(this.current > res.data.total) {
|
||||
return
|
||||
@@ -143,6 +150,7 @@ export default {
|
||||
if (!this.showType) {
|
||||
this.keyword = e
|
||||
this.current = 1
|
||||
this.userList = []
|
||||
// this.getUser()
|
||||
this.getUsers()
|
||||
}
|
||||
@@ -288,5 +296,18 @@ export default {
|
||||
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>
|
||||
|
||||
Reference in New Issue
Block a user