|
@@ -97,7 +97,7 @@
|
|
</el-form-item>
|
|
</el-form-item>
|
|
</el-col>
|
|
</el-col>
|
|
<div class="flex">
|
|
<div class="flex">
|
|
- <div class="common-btn-primary" @click="handleQuery" style="margin-top: -32px;">搜索</div>
|
|
|
|
|
|
+ <div class="common-btn-primary" @click="handleQuery" style="margin-top: -32px">搜索</div>
|
|
<div class="common-btn" @click="resetQuery">重置</div>
|
|
<div class="common-btn" @click="resetQuery">重置</div>
|
|
</div>
|
|
</div>
|
|
</el-row>
|
|
</el-row>
|
|
@@ -125,19 +125,11 @@
|
|
<div class="td">{{ item.event_status }}</div>
|
|
<div class="td">{{ item.event_status }}</div>
|
|
<div class="td">{{ item.event_time }}</div>
|
|
<div class="td">{{ item.event_time }}</div>
|
|
<div class="td">
|
|
<div class="td">
|
|
- <div @click="handleView(item)">查看</div>
|
|
|
|
- <div @click="handleClose(item)">关闭事件</div>
|
|
|
|
|
|
+ <div class="common-btn2" @click="enterCommand(item)">进入指挥</div>
|
|
|
|
+<!-- <div class="common-btn2" style="margin-left: 20px" @click="handleClose(item)">关闭事件</div>-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
- <eventDetails v-model="eventDetailsState.show" :title="eventDetailsState.title" :event-id="eventId" @update:model-value="getList"></eventDetails>
|
|
|
|
- <EventEditDialog v-model="eventEditDialogState.show" :title="eventEditDialogState.title" :event-id="eventId" @update:model-value="getList" />
|
|
|
|
- <CloseEventDialog
|
|
|
|
- v-model="closeDialogState.show"
|
|
|
|
- :data="closeDialogState.form"
|
|
|
|
- :event-id="eventId"
|
|
|
|
- @update:model-value="handleCloseEventDialog"
|
|
|
|
- />
|
|
|
|
<div class="footer">
|
|
<div class="footer">
|
|
<pagination
|
|
<pagination
|
|
v-show="total > 0"
|
|
v-show="total > 0"
|
|
@@ -148,6 +140,12 @@
|
|
@pagination="getList"
|
|
@pagination="getList"
|
|
/>
|
|
/>
|
|
</div>
|
|
</div>
|
|
|
|
+ <CloseEventDialog
|
|
|
|
+ v-model="closeDialogState.show"
|
|
|
|
+ :data="closeDialogState.form"
|
|
|
|
+ :event-id="eventId"
|
|
|
|
+ @update:model-value="handleCloseEventDialog"
|
|
|
|
+ />
|
|
</Dialog>
|
|
</Dialog>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -157,7 +155,6 @@ import { getEvent } from '@/api/duty/eventing';
|
|
|
|
|
|
import EventEditDialog from '../eventing/EventEditDialog.vue';
|
|
import EventEditDialog from '../eventing/EventEditDialog.vue';
|
|
import CloseEventDialog from '../eventing/CloseEventDialog.vue';
|
|
import CloseEventDialog from '../eventing/CloseEventDialog.vue';
|
|
-import eventDetails from '../eventing/eventDetails.vue';
|
|
|
|
const proxy = getCurrentInstance()?.proxy;
|
|
const proxy = getCurrentInstance()?.proxy;
|
|
const { mm_event_type, mm_event_level, mm_event_state, region } = toRefs<any>(
|
|
const { mm_event_type, mm_event_level, mm_event_state, region } = toRefs<any>(
|
|
proxy?.useDict('mm_event_type', 'mm_event_level', 'mm_event_state', 'region')
|
|
proxy?.useDict('mm_event_type', 'mm_event_level', 'mm_event_state', 'region')
|
|
@@ -245,50 +242,6 @@ const eventEditDialogState = reactive({
|
|
show: false,
|
|
show: false,
|
|
title: ''
|
|
title: ''
|
|
});
|
|
});
|
|
-const eventDetailsState = reactive({
|
|
|
|
- show: false,
|
|
|
|
- title: ''
|
|
|
|
-});
|
|
|
|
-
|
|
|
|
-// const handleAdd = () => {
|
|
|
|
-// eventId.value = '';
|
|
|
|
-// eventEditDialogState.title = '新增事件';
|
|
|
|
-// eventEditDialogState.show = true;
|
|
|
|
-// };
|
|
|
|
-
|
|
|
|
-// 修改事件
|
|
|
|
-// const handleUpdate = (row) => {
|
|
|
|
-// if (row) {
|
|
|
|
-// eventId.value = row.event_id;
|
|
|
|
-// eventEditDialogState.title = '修改事件';
|
|
|
|
-// eventEditDialogState.show = true;
|
|
|
|
-// }
|
|
|
|
-// };
|
|
|
|
-//查看事件详情
|
|
|
|
-const handleView = (row) => {
|
|
|
|
- // 查看事件详情逻辑
|
|
|
|
- eventId.value = row.event_id;
|
|
|
|
- eventDetailsState.title = '查看事件';
|
|
|
|
- eventDetailsState.show = true;
|
|
|
|
-};
|
|
|
|
-
|
|
|
|
-// const handleDelete = (row) => {
|
|
|
|
-// if (row) {
|
|
|
|
-// ElMessageBox.confirm('确认删除事件吗?', '提示', {
|
|
|
|
-// confirmButtonText: '确定',
|
|
|
|
-// cancelButtonText: '取消',
|
|
|
|
-// type: 'info'
|
|
|
|
-// }).then(() => {
|
|
|
|
-// eventList.value = eventList.value.filter((item) => item.eventId !== row.event_id);
|
|
|
|
-// deleteEvent({ eventId: row.event_id }).then((res) => {
|
|
|
|
-// proxy?.$modal.msgSuccess(res.msg);
|
|
|
|
-// setTimeout(() => {
|
|
|
|
-// getList();
|
|
|
|
-// }, 500);
|
|
|
|
-// });
|
|
|
|
-// });
|
|
|
|
-// }
|
|
|
|
-// };
|
|
|
|
|
|
|
|
// 关闭事件
|
|
// 关闭事件
|
|
const closeDialogState = reactive({
|
|
const closeDialogState = reactive({
|
|
@@ -351,6 +304,17 @@ watch(
|
|
const closeDialog = () => {
|
|
const closeDialog = () => {
|
|
emit('update:modelValue', false);
|
|
emit('update:modelValue', false);
|
|
};
|
|
};
|
|
|
|
+// 进入应急态界面
|
|
|
|
+const enterCommand = (item) => {
|
|
|
|
+ if (item) {
|
|
|
|
+ // 查看事件详情逻辑
|
|
|
|
+ console.log('进入指挥', item);
|
|
|
|
+ router.push({
|
|
|
|
+ path: '/emergencyCommandMap',
|
|
|
|
+ query: { event_id: item.event_id }
|
|
|
|
+ });
|
|
|
|
+ }
|
|
|
|
+};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
<style lang="scss" scoped>
|