|
|
@ -152,12 +152,21 @@ export default { |
|
|
|
type: "warning", |
|
|
|
}) |
|
|
|
.then(() => { |
|
|
|
let data = new FormData(); |
|
|
|
data.append("eventId", this.dialogData.id); |
|
|
|
postCompleteEvent(data).then((result) => { |
|
|
|
console.log('--------', result) |
|
|
|
if (result.code != 200) return []; |
|
|
|
this.$message.success("成功"); |
|
|
|
// let data = new FormData(); |
|
|
|
// data.append("eventId", this.dialogData.id); |
|
|
|
// postCompleteEvent(data).then((result) => { |
|
|
|
// console.log('--------', result) |
|
|
|
// if (result.code != 200) return []; |
|
|
|
// this.$message.success("成功"); |
|
|
|
// this.$emit('traffic-relieve', this.data); |
|
|
|
// }); |
|
|
|
request({ |
|
|
|
url: `dc/system/event/${this.dialogData.eventType}/${this.dialogData.id}`, |
|
|
|
method: "delete", |
|
|
|
}).then((result) => { |
|
|
|
if (result.code == 200) Message.success("成功!"); |
|
|
|
else Message.error(result?.msg); |
|
|
|
|
|
|
|
this.$emit('traffic-relieve', this.data); |
|
|
|
}); |
|
|
|
}) |
|
|
|