|
|
@ -171,16 +171,28 @@ export default { |
|
|
|
// this.modelVisible = false; |
|
|
|
// this.$emit('queryData', true); |
|
|
|
// return; |
|
|
|
request({ |
|
|
|
url: `/business/warning/delete`, |
|
|
|
method: "post", |
|
|
|
data: { id: this.formData.id } |
|
|
|
}).then(result => { |
|
|
|
if (result.code == 200) Message.success('成功!'); |
|
|
|
else Message.error(result?.msg); |
|
|
|
this.modelVisible = false; |
|
|
|
this.$emit('queryData', true); |
|
|
|
}) |
|
|
|
if (this.activeName == '-1') { |
|
|
|
request({ |
|
|
|
url: `/business/warning/delete`, |
|
|
|
method: 'post', |
|
|
|
data: { id: this.formData.id } |
|
|
|
}).then(result => { |
|
|
|
if (result.code == 200) Message.success('成功!'); |
|
|
|
else Message.error(result?.msg); |
|
|
|
this.modelVisible = false; |
|
|
|
this.$emit('queryData', true); |
|
|
|
}) |
|
|
|
} else { |
|
|
|
request({ |
|
|
|
url: `dc/system/event/${this.formData.eventType}/${this.formData.id}`, |
|
|
|
method: 'delete', |
|
|
|
}).then(result => { |
|
|
|
if (result.code == 200) Message.success('成功!'); |
|
|
|
else Message.error(result?.msg); |
|
|
|
this.modelVisible = false; |
|
|
|
this.$emit('queryData', true); |
|
|
|
}) |
|
|
|
} |
|
|
|
}) |
|
|
|
|
|
|
|
} |
|
|
|