Browse Source

交通事件删除接口

wangqin
zhoule 8 months ago
parent
commit
8175372bdc
  1. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/commonPhrases/index.vue
  2. 2
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue
  3. 14
      ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/commonPhrases/index.vue

@ -4,7 +4,7 @@
<div class="header"> <div class="header">
<el-form ref="form" label-width="120px"> <el-form ref="form" label-width="120px">
<el-form-item label="事件类型"> <el-form-item label="事件类型">
<el-select v-model="eventType" placeholder="请选择" style="width: 220px"> <el-select v-model="eventType" placeholder="请选择" style="width: 220px" disabled>
<el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value"> <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value">
</el-option> </el-option>
</el-select> </el-select>

2
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/emergencyProcessManagement/disposalProcess/index.vue

@ -3,7 +3,7 @@
<div class="header"> <div class="header">
<el-form ref="form" label-width="120px"> <el-form ref="form" label-width="120px">
<el-form-item label="事件类型"> <el-form-item label="事件类型">
<el-select v-model="eventType" placeholder="请选择" style="width: 220px"> <el-select v-model="eventType" placeholder="请选择" style="width: 220px" disabled>
<el-option v-for="item in eventTypeOptions" :key="item.value" :label="item.label" <el-option v-for="item in eventTypeOptions" :key="item.value" :label="item.label"
:value="item.value"> :value="item.value">
</el-option> </el-option>

14
ruoyi-ui/src/views/JiHeExpressway/pages/control/event/event/EventDetailDialog/index.vue

@ -171,9 +171,10 @@ export default {
// this.modelVisible = false; // this.modelVisible = false;
// this.$emit('queryData', true); // this.$emit('queryData', true);
// return; // return;
if (this.activeName == '-1') {
request({ request({
url: `/business/warning/delete`, url: `/business/warning/delete`,
method: "post", method: 'post',
data: { id: this.formData.id } data: { id: this.formData.id }
}).then(result => { }).then(result => {
if (result.code == 200) Message.success('成功!'); if (result.code == 200) Message.success('成功!');
@ -181,6 +182,17 @@ export default {
this.modelVisible = false; this.modelVisible = false;
this.$emit('queryData', true); 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);
})
}
}) })
} }

Loading…
Cancel
Save