|
@ -152,12 +152,21 @@ export default { |
|
|
type: "warning", |
|
|
type: "warning", |
|
|
}) |
|
|
}) |
|
|
.then(() => { |
|
|
.then(() => { |
|
|
let data = new FormData(); |
|
|
// let data = new FormData(); |
|
|
data.append("eventId", this.dialogData.id); |
|
|
// data.append("eventId", this.dialogData.id); |
|
|
postCompleteEvent(data).then((result) => { |
|
|
// postCompleteEvent(data).then((result) => { |
|
|
console.log('--------', result) |
|
|
// console.log('--------', result) |
|
|
if (result.code != 200) return []; |
|
|
// if (result.code != 200) return []; |
|
|
this.$message.success("成功"); |
|
|
// 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); |
|
|
this.$emit('traffic-relieve', this.data); |
|
|
}); |
|
|
}); |
|
|
}) |
|
|
}) |
|
|