From c52f00c7bfced87c9aa30de48cf0a9565c164e37 Mon Sep 17 00:00:00 2001 From: liuye Date: Thu, 6 Apr 2023 09:30:26 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=AF=E5=88=86=E5=AE=A1=E6=A0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../fd/AppPointsReview/AppPointsReview.vue | 29 +++++++++++++++--- src/project/fd/AppPointsReview/detail.vue | 21 ++++++++++--- .../fd/AppPointsReview/img/del-icon.png | Bin 0 -> 757 bytes 3 files changed, 41 insertions(+), 9 deletions(-) create mode 100644 src/project/fd/AppPointsReview/img/del-icon.png diff --git a/src/project/fd/AppPointsReview/AppPointsReview.vue b/src/project/fd/AppPointsReview/AppPointsReview.vue index 6ae6bb4f..72b4516a 100644 --- a/src/project/fd/AppPointsReview/AppPointsReview.vue +++ b/src/project/fd/AppPointsReview/AppPointsReview.vue @@ -3,7 +3,7 @@ @@ -86,6 +88,9 @@ export default { this.getListInit() }) this.getTypeList() + uni.$on('updateList', () => { + this.getListInit() + }) }, methods: { getListInit() { @@ -103,7 +108,7 @@ export default { }).then(res=> { if(res?.data) { res.data.records.map((item) => { - item.createTime = item.createTime.substring(0, 12) + item.createTime = item.createTime.substring(0, 16) }) this.list = this.current > 1 ? [...this.list, ...res.data.records]: res.data.records this.pages = Math.ceil(res.data.total / 10) @@ -141,6 +146,16 @@ export default { this.getListInit() } }) + }, + clearDate() { + this.search.startTime = '' + this.search.endTime = '' + this.getListInit() + }, + clearType() { + this.search.type = '' + this.search.typeName = '' + this.getListInit() } }, onReachBottom() { @@ -188,6 +203,12 @@ export default { color: #666; line-height: 40px; } + .del-icon { + width: 32px; + height: 32px; + vertical-align: middle; + margin-left: 4px; + } } } .list-content { diff --git a/src/project/fd/AppPointsReview/detail.vue b/src/project/fd/AppPointsReview/detail.vue index 2b4d8225..d8659efa 100644 --- a/src/project/fd/AppPointsReview/detail.vue +++ b/src/project/fd/AppPointsReview/detail.vue @@ -7,11 +7,11 @@
申请人:{{info.createUserName}}
-
电话号码:{{info.phone}}
+
电话号码:{{info.phone}}

{{info.content}}

- +
@@ -65,7 +65,7 @@ export default { }, confirm() { if(!this.value) { - return this.$u.toast('请输入不通过理由') + return this.$u.toast('请输入不通过原因') } this.submit(0) }, @@ -80,13 +80,24 @@ export default { id: this.id, auditStatus: status }).then(res=> { - if(res?.data) { + if(res.code == 0) { this.$u.toast('操作成功') + uni.$emit('updateList') this.show = false this.getDetail() + } }) - } + }, + previewImages(images, img) { + uni.previewImage({ + urls: images.map(v => v.accessUrl), + current: img + }) + }, + callPhone(phone) { + uni.makePhoneCall({ phoneNumber: phone }) + }, }, }; diff --git a/src/project/fd/AppPointsReview/img/del-icon.png b/src/project/fd/AppPointsReview/img/del-icon.png new file mode 100644 index 0000000000000000000000000000000000000000..12a7abae176ad6732ea5ba049c333a8e82b225b7 GIT binary patch literal 757 zcmVPx%uSrBfR9HvNmpyFLP!Pxe_ngpy3KsBJ#1JYNiV#d7n1Bts74cDK=+2Z*AjCqE zDv+3HM)K9;kF7%Lf?#MA$96W9inO)gp_ebEA&%{kkb1J@d-wmndw1u1goKap z`;$`287Xm%na_c662Ot>@?T*5B%%!=uqK39)pfm^#5Khkd7d{FhFoCqJphN}?3>@W z3G`OeXwfi?AN|%u0(@tlm~{OolI24HhY|{Ro9zk`FRG^g_!QAjFCRSteBU?2P=1ii zmj)Exw@eUys?~na=JR>C+uvURuIru+C9eWFF%0nzA4N^jjA@$RI{oegP&?lX!mlF` zZ)p~@8SR3u>+MLi0UBrStq&{gQPES!Q8kULt(<5Bl*`^T$+9ryu=jK)NGw{Gv7kQI z0aU34q1^n3Y){L*o6*FyD$zQCM0G598c({XA)e*75IzZ|p=sfdmR?b