From 81c6e9ce04f51fd638a1ec9527b63b35eea09db1 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, 16 Dec 2021 16:04:21 +0800 Subject: [PATCH] AppServicePublic --- src/apps/AppServicePublic/Add.vue | 202 ++++++++++++++++++ .../AppServicePublic/AppServicePublic.vue | 197 +++++++++++++++++ src/apps/AppServicePublic/Detail.vue | 77 +++++++ src/apps/AppWalkask/AppWalkask.vue | 55 +++-- src/apps/AppWorkonline/AppWorkonline.vue | 16 +- src/apps/AppWorkonline/Msg.vue | 6 +- src/apps/AppWorkonline/Opinion.vue | 8 +- src/apps/AppWorkonline/detail.vue | 21 +- 8 files changed, 538 insertions(+), 44 deletions(-) create mode 100644 src/apps/AppServicePublic/Add.vue create mode 100644 src/apps/AppServicePublic/AppServicePublic.vue create mode 100644 src/apps/AppServicePublic/Detail.vue diff --git a/src/apps/AppServicePublic/Add.vue b/src/apps/AppServicePublic/Add.vue new file mode 100644 index 00000000..1995c55b --- /dev/null +++ b/src/apps/AppServicePublic/Add.vue @@ -0,0 +1,202 @@ + + + + + diff --git a/src/apps/AppServicePublic/AppServicePublic.vue b/src/apps/AppServicePublic/AppServicePublic.vue new file mode 100644 index 00000000..f87c1268 --- /dev/null +++ b/src/apps/AppServicePublic/AppServicePublic.vue @@ -0,0 +1,197 @@ + + + + + diff --git a/src/apps/AppServicePublic/Detail.vue b/src/apps/AppServicePublic/Detail.vue new file mode 100644 index 00000000..d5121757 --- /dev/null +++ b/src/apps/AppServicePublic/Detail.vue @@ -0,0 +1,77 @@ + + + + + diff --git a/src/apps/AppWalkask/AppWalkask.vue b/src/apps/AppWalkask/AppWalkask.vue index 15b82033..8ab16351 100644 --- a/src/apps/AppWalkask/AppWalkask.vue +++ b/src/apps/AppWalkask/AppWalkask.vue @@ -11,7 +11,7 @@
- +
@@ -48,7 +48,11 @@
-
点击新增按钮试试试吧~
+
+ 点击 + 新增按钮 + 试试试吧~ +
@@ -72,7 +76,7 @@ 居家看护 -
{{ item.description }}
+
{{ item.createUserName }}
@@ -89,12 +93,18 @@ + +
-
点击新增按钮试试试吧~
+
+ 点击 + 新增按钮 + 试试试吧~ +
@@ -144,11 +154,19 @@ export default { params: null, current: 1, areaId: '', + size: 10, deletId: '', + pages: 0, } }, - computed: { ...mapState(['user']) }, - created() { + computed: { + ...mapState(['user']), + + loadmore() { + return this.pages <= this.current ? 'loading ' : 'nomore' + }, + }, + onLoad() { this.areaId = this.user.areaId this.getList() }, @@ -158,7 +176,7 @@ export default { this.$http .post('/app/appvisitvondolence/list', null, { params: { - size: 6, + size: this.size, current: this.current, areaId: this.areaId, createUserId: this.currentTabs == 1 ? this.user.id : '', @@ -168,6 +186,7 @@ export default { .then((res) => { if (res.code == 0) { this.data = this.current > 1 ? [...this.data, ...res.data.records] : res.data.records + this.pages = res.data.pages if (this.data) { this.data.map((item) => { @@ -187,6 +206,7 @@ export default { } else { return this.$u.toast('请选择到村') } + this.getList() }, change(index) { @@ -242,10 +262,18 @@ export default { }) }, }, + onReachBottom() { + this.current = this.current + 1 + this.getList() + }, } diff --git a/src/apps/AppWorkonline/AppWorkonline.vue b/src/apps/AppWorkonline/AppWorkonline.vue index 3ff2a315..46e63cbb 100644 --- a/src/apps/AppWorkonline/AppWorkonline.vue +++ b/src/apps/AppWorkonline/AppWorkonline.vue @@ -59,7 +59,7 @@ - + @@ -85,11 +85,16 @@ export default { datas: {}, listType: 0, current: 1, + pages: 0, } }, - computed: {}, + computed: { + loadmore() { + return this.pages <= this.current ? 'loading ' : 'nomore' + }, + }, watch: {}, - created() { + onLoad() { this.$dict.load('listApprovalStatusHb').then(() => { this.getList() }) @@ -100,6 +105,7 @@ export default { this.$http.post(`/app/approv-alapply-info/list?listType=${this.listType}¤t=${this.current}¶m=${this.keyword}`).then((res) => { if (res?.code == 0) { this.datas = this.current > 1 ? [...this.datas, ...res.data.records] : res.data.records + this.pages = res.data.pages } }) }, @@ -129,6 +135,10 @@ export default { this.getListInit() }, }, + onReachBottom() { + this.current = this.current + 1 + this.getList() + }, } diff --git a/src/apps/AppWorkonline/Msg.vue b/src/apps/AppWorkonline/Msg.vue index 2621c6ee..affe706d 100644 --- a/src/apps/AppWorkonline/Msg.vue +++ b/src/apps/AppWorkonline/Msg.vue @@ -5,16 +5,14 @@ {{ btnText }} - +