From bb95abf7d71834f2caab412955dcaa712fa624f5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9B=B2=E6=A0=91=E9=80=9A?= <1976590620@qq.com> Date: Wed, 29 Jul 2020 17:01:14 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BF=97=E6=84=BF=E8=80=85=E5=88=97=E8=A1=A8?= =?UTF-8?q?=E7=BB=B4=E6=8A=A4=E6=8E=92=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/user/volunteerinfo-detail.vue | 89 +++++++++++++------ src/views/modules/user/volunteerinfo.vue | 23 +++-- 2 files changed, 78 insertions(+), 34 deletions(-) diff --git a/src/views/modules/user/volunteerinfo-detail.vue b/src/views/modules/user/volunteerinfo-detail.vue index f1dd08e..4ce28a4 100644 --- a/src/views/modules/user/volunteerinfo-detail.vue +++ b/src/views/modules/user/volunteerinfo-detail.vue @@ -1,49 +1,66 @@ @@ -101,7 +118,7 @@ export default { } this.dataForm.tagIds = [] }) - .catch(() => {}) + .catch(() => { }) }, 1000, { leading: true, trailing: false } @@ -112,7 +129,29 @@ export default { } else { return '否' } - } + }, + // 表单提交 + dataFormSubmitHandle: debounce(function () { + this.$refs['dataForm'].validate((valid) => { + if (!valid) { + return false + } + this.$http[!this.dataForm.id ? 'post' : 'put']('/app-user/volunteerinfo/', this.dataForm).then(({ data: res }) => { + if (res.code !== 0) { + return this.$message.error(res.msg) + } + this.$message({ + message: this.$t('prompt.success'), + type: 'success', + duration: 500, + onClose: () => { + this.visible = false + this.$emit('refreshDataList') + } + }) + }).catch(() => { }) + }) + }, 1000, { 'leading': true, 'trailing': false }) } } diff --git a/src/views/modules/user/volunteerinfo.vue b/src/views/modules/user/volunteerinfo.vue index 4e87be6..eae9b21 100644 --- a/src/views/modules/user/volunteerinfo.vue +++ b/src/views/modules/user/volunteerinfo.vue @@ -76,6 +76,10 @@ label="积分" header-align="center" align="center"> +
查看 + size="small" + @click="userDetailHandle(scope.row.id)">修改 积分调整 + size="small" + @click="pointsAdjustHandle(scope.row.id)">积分调整
审批 + size="small" + @click="checkHandle(scope.row.id,1)">审批 积分记录 + size="small" + @click="pointsLogs(scope.row.userId)">积分记录
@@ -169,7 +173,8 @@ export default { streetId: null, communityId: null, gridId: null, - leaderFlag: '0' + leaderFlag: '0', + volunteerOrder: '' }, auditStatusType: 0, deptIdList: [],