修复网格选择
This commit is contained in:
@@ -3,10 +3,12 @@
|
||||
<AiTopFixed v-if="isAdmin">
|
||||
<div class="pad-t32"></div>
|
||||
<div class="select-gird">
|
||||
<AiPagePicker type="gird" girdLevel="2" class="gird-name-div" @select="confirmSelect" :isMyGird="true">
|
||||
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
||||
<div class="gird-name">{{ girdName }}</div>
|
||||
<img src="./components/img/down-icon.png" alt="" class="down-icon">
|
||||
<AiPagePicker type="custom" @select="confirmSelect"
|
||||
:ops="{url:'../AppGridManagement/SelectGird',label: 'girdName'}">
|
||||
<div flex class="center">
|
||||
<img src="./components/img/gird-icon.png" alt="" class="gird-icon">
|
||||
<AiMore v-model="girdName" icon="arrow-down"/>
|
||||
</div>
|
||||
</AiPagePicker>
|
||||
</div>
|
||||
<div class="header">
|
||||
@@ -111,7 +113,6 @@ export default {
|
||||
onLoad() {
|
||||
this.isGirdUser()
|
||||
uni.$on('updateBackList', () => {
|
||||
console.log(123)
|
||||
this.getListInit()
|
||||
this.getTotal()
|
||||
})
|
||||
@@ -122,7 +123,6 @@ export default {
|
||||
methods: {
|
||||
...mapActions(['injectJWeixin', 'wxInvoke']),
|
||||
confirmSelect(v) {
|
||||
console.log(v)
|
||||
this.girdId = v?.[0].id
|
||||
this.girdName = v?.[0].girdName
|
||||
this.getListInit()
|
||||
@@ -143,14 +143,14 @@ export default {
|
||||
status = 0
|
||||
}
|
||||
this.$http.post(`/app/appepidemicbackhomerecord/list?current=${this.current}&size=10&status=${status}&name=${this.name}&arriveGirdId=${this.girdId}`)
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.records.map((item) => {
|
||||
item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/, "$1********$2")
|
||||
.then((res) => {
|
||||
if (res.code == 0) {
|
||||
res.data.records.map((item) => {
|
||||
item.idNumber = item.idNumber.replace(/(.{6}).*(.{4})/, "$1********$2")
|
||||
})
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
}
|
||||
})
|
||||
this.list = this.current > 1 ? [...this.list, ...res.data.records] : res.data.records
|
||||
}
|
||||
})
|
||||
},
|
||||
getTotal() {
|
||||
this.$http.post(`/app/appepidemicbackhomerecord/statistic?arriveGirdId=${this.girdId}`).then((res) => {
|
||||
@@ -171,21 +171,10 @@ export default {
|
||||
if (res?.data) {
|
||||
if (res.data.checkType != '0') {
|
||||
this.isAdmin = true
|
||||
this.getGirdList()
|
||||
}
|
||||
}
|
||||
})
|
||||
},
|
||||
getGirdList() {
|
||||
this.$http.post('/app/appgirdmemberinfo/queryMyGirdListByLevel2AndUser').then((res) => {
|
||||
if (res.code == 0) {
|
||||
this.girdId = res.data[0].id
|
||||
this.girdName = res.data[0].girdName
|
||||
this.getListInit()
|
||||
this.getTotal()
|
||||
}
|
||||
})
|
||||
},
|
||||
close() {
|
||||
this.show = false
|
||||
},
|
||||
@@ -398,48 +387,12 @@ export default {
|
||||
width: 32px;
|
||||
height: 32px;
|
||||
vertical-align: middle;
|
||||
margin-right: 8px;
|
||||
}
|
||||
.center{
|
||||
justify-content: center;
|
||||
}
|
||||
|
||||
div {
|
||||
display: inline-block;
|
||||
padding-left: 20px;
|
||||
box-sizing: border-box;
|
||||
font-size: 32px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #333;
|
||||
line-height: 48px;
|
||||
|
||||
img {
|
||||
margin-left: 8px;
|
||||
}
|
||||
}
|
||||
|
||||
span {
|
||||
display: inline-block;
|
||||
width: 112px;
|
||||
height: 48px;
|
||||
font-size: 28px;
|
||||
font-family: PingFangSC-Medium, PingFang SC;
|
||||
font-weight: 500;
|
||||
color: #3F8DF5;
|
||||
line-height: 48px;
|
||||
}
|
||||
|
||||
.gird-name-div {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
padding-left: 0;
|
||||
}
|
||||
|
||||
.gird-name {
|
||||
display: inline-block;
|
||||
max-width: calc(100% - 80px);
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
||||
.empty {
|
||||
|
||||
Reference in New Issue
Block a user