From a1c6215ae48f4e4c9668882eb20e15ebc8e5c09b 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: Mon, 13 Dec 2021 18:55:01 +0800
Subject: [PATCH] =?UTF-8?q?=E9=87=8D=E7=BB=98?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/apps/AppWalkask/AppWalkask.vue | 80 ++++++++----
src/apps/AppWalkask/add.vue | 77 ++++--------
src/apps/AppWalkask/detail.vue | 6 +-
src/apps/AppWalkask/walkObject.vue | 190 +++++++++++++++++++++++++++++
4 files changed, 272 insertions(+), 81 deletions(-)
create mode 100644 src/apps/AppWalkask/walkObject.vue
diff --git a/src/apps/AppWalkask/AppWalkask.vue b/src/apps/AppWalkask/AppWalkask.vue
index 790fbfea..4745432f 100644
--- a/src/apps/AppWalkask/AppWalkask.vue
+++ b/src/apps/AppWalkask/AppWalkask.vue
@@ -26,33 +26,33 @@
-
+
- 走访对象:李伟民
+ 走访对象:{{ item.createUserName }}
残疾人
居家看护
-

+
- 编辑
- 删除
+ 编辑
+ 删除
-
脱贫攻坚走脱贫攻坚脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家走访—徐家棚街道脱贫攻坚走访徐家访—徐家棚街脱贫攻坚脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家走访—徐家棚街道脱贫攻脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家坚走访徐家道脱贫攻坚走访徐家脱贫攻坚走访—徐家棚街道脱贫攻脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家坚走访徐家
+
{{ item.description }}
-

+
- 走访人:林珊珊
- 2021-12-18 13:45:36
+ 走访人:{{ item.createUserName }}
+ {{ item.createTime }}
@@ -82,10 +82,10 @@
-
+
- 走访对象:李伟民
+ 走访对象:{{ item.createUserName }}
残疾人
居家看护
@@ -95,20 +95,20 @@
- 编辑
- 删除
+ 编辑
+ 删除
-
脱贫攻坚走脱贫攻坚脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家走访—徐家棚街道脱贫攻坚走访徐家访—徐家棚街脱贫攻坚脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家走访—徐家棚街道脱贫攻脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家坚走访徐家道脱贫攻坚走访徐家脱贫攻坚走访—徐家棚街道脱贫攻脱贫攻坚走访—徐家棚街道脱贫攻坚走访徐家坚走访徐家
+
{{ item.description }}
-

+
- 走访人:林珊珊
- 2021-12-18 13:45:36
+ 走访人:{{ item.createUserName }}
+ {{ item.createTime }}
@@ -178,6 +178,7 @@ export default {
params: null,
current: 1,
areaId: '',
+ deletId: '',
}
},
computed: { ...mapState(['user']) },
@@ -200,6 +201,14 @@ export default {
.then((res) => {
if (res.code == 0) {
this.data = res.data.records
+ if (this.data) {
+ this.data.map((item) => {
+ if (item.images) {
+ item.images = JSON.parse(item.images || '[]')
+ }
+ return item
+ })
+ }
}
})
},
@@ -218,15 +227,16 @@ export default {
toAdd(item) {
console.log('编辑', '添加')
- // const { id } = item.id
- this.isList = false
- this.comp = 'add'
- this.params = 12313
- // if (id) {
- // this.comp = 'add'
- // this.params = id
- // this.isList = false
- // }
+ const id = item.id
+ // this.isList = false
+ // this.comp = 'add'
+ // this.params = 12313
+ if (id) {
+ this.comp = 'add'
+ // this.params = id
+ this.params = 12313
+ this.isList = false
+ }
},
toDetail(item) {
@@ -236,8 +246,19 @@ export default {
this.params = detail
},
+ toDetele(item) {
+ this.deletShow = true
+ this.deletId = item.id
+ },
+
delet() {
console.log('delet')
+ this.$http.post(`/app/appvisitvondolence/delete?ids=${this.deletId}`).then((res) => {
+ if (res.code == 0) {
+ this.$u.toast('删除成功!')
+ this.getList()
+ }
+ })
},
showHide() {
@@ -263,6 +284,13 @@ export default {
this.current = 1
// this.getList()
},
+
+ previewImage(images, img) {
+ uni.previewImage({
+ urls: images.map((v) => v.url),
+ current: img,
+ })
+ },
},
}
diff --git a/src/apps/AppWalkask/add.vue b/src/apps/AppWalkask/add.vue
index 1d6140c1..59c2f6a8 100644
--- a/src/apps/AppWalkask/add.vue
+++ b/src/apps/AppWalkask/add.vue
@@ -10,7 +10,7 @@
-
+
@@ -37,8 +37,8 @@
{{ forms.description.length }}/500
-
-
+
+
@@ -54,11 +54,12 @@
+
+