diff --git a/src/api/activity.js b/src/api/activity.js index 7d34a61..6d59033 100644 --- a/src/api/activity.js +++ b/src/api/activity.js @@ -117,3 +117,14 @@ export function placeDeleteApi(data) { params:data }) } +/** + * ebactivity删除预约记录 + * @param data + */ +export function activityRecordDeleteApi(data) { + return request({ + url: `/admin/activity/records/delete`, + method: 'get', + params:data + }) +} diff --git a/src/views/marketing/activity/activityList/index.vue b/src/views/marketing/activity/activityList/index.vue index 2d1232e..7fcecd4 100644 --- a/src/views/marketing/activity/activityList/index.vue +++ b/src/views/marketing/activity/activityList/index.vue @@ -368,6 +368,18 @@ 同意预约 + + + + + 删除 @@ -398,7 +410,8 @@ import { activityListApi, activityLogListApi, ebactivityUpdateApi, - userActivityPlaceListApi + userActivityPlaceListApi, + activityRecordDeleteApi } from "@/api/activity"; import AddOrUpdate from "@/views/marketing/activity/activityList/activity-add-and-update"; @@ -436,6 +449,15 @@ export default { this.getDataList(); }, methods: { + deleteRecordHandle(row) { + this.$confirm('确定删除当前数据?').then(() => { + activityRecordDeleteApi({ id: row.id }).then(res => { + this.$message.success("删除成功"); + this.activityLog(this.logParams.activityId); + }); + }).catch(() => { + }) + }, closeLog() { this.logParams = { activityId: "", @@ -455,6 +477,12 @@ export default { this.activityLog(this.logParams.activityId); }); }, + rejectRecord(row) { + userActivityPlaceListApi({ id: row.id, registerStatus: 2 }).then(res => { + this.$message.success("拒绝成功!"); + this.activityLog(this.logParams.activityId); + }); + }, //活动记录 activityLog(id) { this.logParams.activityId = id; diff --git a/src/views/marketing/tree/item/index.vue b/src/views/marketing/tree/item/index.vue index 6ea5bbb..4094aa5 100644 --- a/src/views/marketing/tree/item/index.vue +++ b/src/views/marketing/tree/item/index.vue @@ -49,6 +49,21 @@ + + + - + + 取消 @@ -293,12 +293,16 @@ export default { if (!this.dataForm.id){ plantCreateApi(this.dataForm).then(res => { this.$message.success('添加成功') - this.$router.go(0); + setTimeout(() => { + this.$router.go(0); + }, 1000); }); }else { plantUpdateApi(this.dataForm).then(res => { this.$message.success('更新成功') - this.$router.go(0); + setTimeout(() => { + this.$router.go(0); + }, 1000); }); }