添加预约记录删除
This commit is contained in:
parent
59566ffc61
commit
28b7beece6
@ -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
|
||||
})
|
||||
}
|
||||
|
@ -368,6 +368,18 @@
|
||||
<el-button type="text" size="small">同意预约</el-button>
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
<el-popconfirm
|
||||
v-hasPermi="['admin:activity:update']"
|
||||
@onConfirm="rejectRecord(scope.row)"
|
||||
v-if="scope.row.registerStatus == 0"
|
||||
title="确定要拒绝吗?"
|
||||
>
|
||||
<!-- //todo未完成 -->
|
||||
<template #reference>
|
||||
<el-button type="text" size="small">拒绝</el-button>
|
||||
</template>
|
||||
</el-popconfirm>
|
||||
<el-button v-if="scope.row.registerStatus >=2" type="text" size="small" @click="deleteRecordHandle(scope.row)">删除</el-button>
|
||||
<!-- <el-button type="text" size="small" @click="addOrUpdateHandle(scope.row.id)">修改</el-button>-->
|
||||
<!-- <el-button v-hasPermi="['admin:activity:update']" type="text" size="small"-->
|
||||
<!-- @click="activityLog(scope.row.id)">预约记录-->
|
||||
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user