This commit is contained in:
liuye
2022-02-11 10:05:02 +08:00
parent c9d6f266dc
commit d0e517cfcc
9 changed files with 57 additions and 27 deletions

View File

@@ -165,10 +165,9 @@ export default {
color: #666;
img {
width: 32px;
height: 32px;
width: 44px;
height: 44px;
vertical-align: middle;
margin-left: 8px;
}
}

View File

@@ -3,8 +3,8 @@
<div class="pad-t32" v-if="component != 'Map' && isAdmin"></div>
<div class="select-gird" v-if="component != 'Map' && isAdmin">
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
<div @click="linkTo('./SelectGird')">
{{ params.girdName }}
<div @click="linkTo('./SelectGird')" class="gird-name-div">
<div class="gird-name">{{ params.girdName }}</div>
<img src="./components/img/down-icon.png" alt="" class="down-icon">
</div>
<span @click="linkTo('./SetGird')" v-if="checkType == 2">网格配置</span>
@@ -147,7 +147,7 @@ export default {
vertical-align: middle;
}
div {
.gird-name-div {
display: inline-block;
width: calc(100% - 144px);
padding-left: 20px;
@@ -161,6 +161,15 @@ export default {
img {
margin-left: 8px;
}
.gird-name{
display: inline-block;
max-width: calc(100% - 50px);
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
vertical-align: middle;
}
}
span {

View File

@@ -57,6 +57,15 @@ export default {
}
},
methods: {
handerSearch() {
this.list = []
this.current = 1
this.getList()
},
handerClear() {
this.keyword = ''
this.handerSearch()
},
getList(){
this.$http.post(`/app/appgirdmemberresident/listByGirdMember?current=${this.current}&girdMemberId=${this.userId}&girdId=${this.girdId}&name=${this.keyword}`).then((res) => {
if (res.code == 0) {

View File

@@ -73,10 +73,10 @@ export default {
// this.getLeafNodes()
uni.$on('goback', e => {
if (e.girdLevel == '0') {
setTimeout(() => {
this.$u.toast('请选择二级或者三级网格')
}, 400)
return false
// setTimeout(() => {
// this.$u.toast('请选择二级或者三级网格')
// }, 400)
// return false
}
this.getGridList(e.id, true)
})