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: [],