事件上报

This commit is contained in:
liuye
2023-05-10 17:58:03 +08:00
parent 2b9df352f1
commit 69f618f49b
2 changed files with 22 additions and 8 deletions

View File

@@ -83,7 +83,7 @@ export default {
},
methods: {
typeList() {
this.$http.post(`/app/appclapeventgroup/list`, null, {
this.$http.post(`/app/appresidentreportgroup/list`, null, {
params: {
size: 9999,
},

View File

@@ -5,8 +5,11 @@
@change="change"></u-tabs>
<div class="select-top">
<div class="tab-item">
<AiPagePicker type="gird" valueObj nodeKey="id" @select="handleSelectGird" formType="2">
<AiPagePicker type="gird" valueObj nodeKey="id" @select="handleSelectGird" action="/app/appgirdmemberinfo/queryMyGirdList">
<AiMore v-model="searchGrid.girdName" icon="arrow-down" placeholder="所属网格"/>
<!-- <span :class="searchGrid.girdName ? 'grid-name' : 'grid-name color-999'">{{searchGrid.girdName || '所属网格'}}</span>
<u-icon name="close-circle" color="#999" size="34" style="margin-left: 4px" v-if="searchGrid.girdName" @click.stop="clearGrid" />
<u-icon name="arrow-down" color="#999" size="24" style="margin-left: 4px" v-else /> -->
</AiPagePicker>
</div>
<div class="tab-item" @click="showType = true">
@@ -67,7 +70,7 @@ export default {
currentTabs: 0,
current: 1,
pages: 0,
searchGrid: {},
searchGrid: {girdName: ''},
showType: false,
eventStatus: '',
eventStatusText: '',
@@ -101,14 +104,15 @@ export default {
methods: {
getList() {
let {current, eventStatus, searchGrid: {id: girdId}} = this
this.$http.post(`/app/appresidentreportinfo/list`, null, {
this.$http.post(`/app/appresidentreportinfo/listByGirdMember`, null, {
params: {
size: 10,
current, searchType: this.currentTabs == 1 ? '1' : '0',
eventStatus, girdId
current,
eventStatus,
girdId,
searchType: this.currentTabs,
},
})
.then((res) => {
}).then((res) => {
if (res.code == 0) {
this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records
this.pages = res.data.pages
@@ -131,6 +135,11 @@ export default {
this.current = 1
this.getList()
},
clearGrid() {
this.searchGrid = {girdName: ''}
this.current = 1
this.getList()
},
goDetail(item) {
uni.navigateTo({url: `./Detail?id=${item.id}`})
@@ -282,5 +291,10 @@ export default {
background-color: #f3f6f9;
padding-bottom: 120px;
}
.grid-name {
display: inline-block;
font-size: 32px;
color: #333;
}
}
</style>