From 2de77165060beda38013d70989080f5b40dc1e82 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=8A=B1=E6=9C=89=E6=B8=85=E9=A6=99=E6=9C=88=E6=9C=89?= =?UTF-8?q?=E9=98=B4?= <185154740@qq.com> Date: Thu, 6 Jan 2022 14:35:07 +0800 Subject: [PATCH] list --- src/apps/AppHandSnapshot/List.vue | 105 ++++++++++++++++++++++++------ 1 file changed, 84 insertions(+), 21 deletions(-) diff --git a/src/apps/AppHandSnapshot/List.vue b/src/apps/AppHandSnapshot/List.vue index f8b60d42..9a6a9c95 100644 --- a/src/apps/AppHandSnapshot/List.vue +++ b/src/apps/AppHandSnapshot/List.vue @@ -3,14 +3,19 @@
-
+
所属网格 - +
-
+ + + +
办件状态 - +
+ +
@@ -18,22 +23,24 @@ @@ -72,6 +79,14 @@ export default { current: 1, size: 10, pages: 0, + + show: false, + myGirdList: [], + girdId: '', + + showType: false, + listType: [], + eventStatus: '', } }, computed: { @@ -80,43 +95,91 @@ export default { }, }, mounted() { - console.log(12) + this.$dict.load('clapEventStatus').then(() => { + this.getList() + this.listType = this.$dict.getDict('clapEventStatus') + }) + this.current = 1 this.getList() uni.$on('nextList', () => { - this.current ++ + this.current++ this.getList() }) }, methods: { getList() { this.$http - .post('/app/appvisitvondolence/list', null, { + .post(`/app/appclapeventinfo/listByGirdMember`, null, { params: { size: 10, current: this.current, - createUserId: this.currentTabs == 1 ? this.user.id : '', + searchType: this.currentTabs == 1 ? '1' : '0', + eventStatus: this.eventStatus, }, }) .then((res) => { if (res.code == 0) { - this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records - this.pages = res.data.pages + console.log(res.data) + // this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records + // this.pages = res.data.pages } }) }, + toGirdList() { + this.show = true + this.girdList() + }, + + girdList() { + this.$http + .post(`/app/appgirdmemberinfo/queryMyGirdList`, null, { + params: { + size: 9999, + }, + }) + .then((res) => { + if (res.code == 0) { + console.log(res.data) + this.myGirdList = res.data + } + }) + }, + + confirm(e) { + if (this.show) { + if (e[0].value) { + console.log(e) + + this.girdId = e[0].value + this.current = 1 + this.getList() + } + } + if (this.showType) { + console.log(e) + + this.eventStatus = e[0].value + this.current = 1 + this.getList() + } + }, + goDetail(item) { uni.navigateTo({ url: `./Detail?id=${item.id}` }) }, change(index) { + this.current = 1 + this.datas = [] this.currentTabs = index this.getList() }, + linkTo(url) { - uni.navigateTo({url}) - } + uni.navigateTo({ url }) + }, }, onReachBottom() { this.current = this.current + 1 @@ -135,14 +198,14 @@ uni-page-body { background: #fff; display: flex; padding: 24px 0; - .tab-item{ + .tab-item { flex: 1; text-align: center; line-height: 48px; font-size: 26px; font-family: PingFangSC-Regular, PingFang SC; color: #666; - img{ + img { width: 32px; height: 32px; margin-left: 8px; @@ -153,7 +216,7 @@ uni-page-body { border-right: 1px solid #eee; } } - ::v-deep .AiTopFixed .content{ + ::v-deep .AiTopFixed .content { padding: 0; } ::v-deep .AiCard { @@ -233,7 +296,7 @@ uni-page-body { // ::v-deep .AiCard:last-child { // padding-bottom: 24px; // } - .pad-b120{ + .pad-b120 { background-color: #f3f6f9; padding-bottom: 120px; }