|
@@ -25,12 +25,18 @@
|
|
</div>
|
|
</div>
|
|
<div class="task-text gradient-text">任务登记</div>
|
|
<div class="task-text gradient-text">任务登记</div>
|
|
</div>
|
|
</div>
|
|
- <div class="task-item">
|
|
|
|
|
|
+ <div class="task-item" @click="openKnowledgeWarehouse">
|
|
<div class="icon">
|
|
<div class="icon">
|
|
<div class="icon5"></div>
|
|
<div class="icon5"></div>
|
|
</div>
|
|
</div>
|
|
<div class="task-text gradient-text">知识库</div>
|
|
<div class="task-text gradient-text">知识库</div>
|
|
</div>
|
|
</div>
|
|
|
|
+ <div class="task-item" @click="openDutyManagement">
|
|
|
|
+ <div class="icon">
|
|
|
|
+ <div class="icon3"></div>
|
|
|
|
+ </div>
|
|
|
|
+ <div class="task-text gradient-text">值班管理</div>
|
|
|
|
+ </div>
|
|
</div>
|
|
</div>
|
|
<RightTop :event-id="eventId" />
|
|
<RightTop :event-id="eventId" />
|
|
<PublicOpinionSupervision />
|
|
<PublicOpinionSupervision />
|
|
@@ -39,6 +45,8 @@
|
|
<StartPlan v-if="startPlanState.show" v-model:show="startPlanState.show" :title="startPlanState.title" :event-id="startPlanState.eventId" />
|
|
<StartPlan v-if="startPlanState.show" v-model:show="startPlanState.show" :title="startPlanState.title" :event-id="startPlanState.eventId" />
|
|
<SelectPlan v-model="selectPlanState.show" :title="selectPlanState.title" :temp-event-id="eventId" @update-plan="updatePlan" />
|
|
<SelectPlan v-model="selectPlanState.show" :title="selectPlanState.title" :temp-event-id="eventId" @update-plan="updatePlan" />
|
|
<RenWuDengJi v-if="renWuDengJiState.show" v-model:show="renWuDengJiState.show" :event-id="eventId" />
|
|
<RenWuDengJi v-if="renWuDengJiState.show" v-model:show="renWuDengJiState.show" :event-id="eventId" />
|
|
|
|
+ <dutyManagement v-if="dutyManagementState.show" v-model:show="dutyManagementState.show" :event-id="eventId" />
|
|
|
|
+ <knowledgeWarehouse v-if="knowledgeWarehouseState.show" v-model:show="knowledgeWarehouseState.show" :event-id="eventId" />
|
|
</div>
|
|
</div>
|
|
</template>
|
|
</template>
|
|
|
|
|
|
@@ -53,11 +61,31 @@ import SelectPlan from './SelectPlan.vue';
|
|
import InitConsultation from './InitConsultation.vue';
|
|
import InitConsultation from './InitConsultation.vue';
|
|
import PublicOpinionSupervision from '@/views/emergencyCommandMap/RightSection/PublicOpinionSupervision.vue';
|
|
import PublicOpinionSupervision from '@/views/emergencyCommandMap/RightSection/PublicOpinionSupervision.vue';
|
|
import RenWuDengJi from '@/views/emergencyCommandMap/RightSection/RenWuDengJi.vue';
|
|
import RenWuDengJi from '@/views/emergencyCommandMap/RightSection/RenWuDengJi.vue';
|
|
|
|
+import dutyManagement from './dutyManagement.vue';
|
|
|
|
+import knowledgeWarehouse from './knowledgeWarehouse.vue';
|
|
|
|
|
|
const route = useRoute();
|
|
const route = useRoute();
|
|
let eventId = ref('');
|
|
let eventId = ref('');
|
|
// let tempEventId = ref<string | null>(null);
|
|
// let tempEventId = ref<string | null>(null);
|
|
|
|
|
|
|
|
+// 创建值班管理的状态管理
|
|
|
|
+const dutyManagementState = reactive({
|
|
|
|
+ show: false
|
|
|
|
+});
|
|
|
|
+// 打开值班管理弹窗
|
|
|
|
+const openDutyManagement = () => {
|
|
|
|
+ dutyManagementState.show = true;
|
|
|
|
+};
|
|
|
|
+
|
|
|
|
+// 创建知识库的状态管理
|
|
|
|
+const knowledgeWarehouseState = reactive({
|
|
|
|
+ show: false
|
|
|
|
+});
|
|
|
|
+// 打开知识库弹窗
|
|
|
|
+const openKnowledgeWarehouse = () => {
|
|
|
|
+ knowledgeWarehouseState.show = true;
|
|
|
|
+};
|
|
|
|
+
|
|
// 创建任务登记弹窗的状态管理
|
|
// 创建任务登记弹窗的状态管理
|
|
const renWuDengJiState = reactive({
|
|
const renWuDengJiState = reactive({
|
|
show: false
|
|
show: false
|
|
@@ -91,10 +119,10 @@ const getEventIdFromUrl = () => {
|
|
*/
|
|
*/
|
|
|
|
|
|
// 更新 startPlan 方法
|
|
// 更新 startPlan 方法
|
|
-const startPlan = async() => {
|
|
|
|
- const response = await getEventDetail({ event_id: eventId.value })
|
|
|
|
- const event_data = (response.data);
|
|
|
|
- if(event_data.emergency_notify_count > 0) {
|
|
|
|
|
|
+const startPlan = async () => {
|
|
|
|
+ const response = await getEventDetail({ event_id: eventId.value });
|
|
|
|
+ const event_data = response.data;
|
|
|
|
+ if (event_data.emergency_notify_count > 0) {
|
|
ElMessage.warning('预案已启动');
|
|
ElMessage.warning('预案已启动');
|
|
return;
|
|
return;
|
|
}
|
|
}
|
|
@@ -108,7 +136,7 @@ const startPlan = async() => {
|
|
nextTick().then(() => {
|
|
nextTick().then(() => {
|
|
console.log('DOM updated, showing StartPlan:', startPlanState.show);
|
|
console.log('DOM updated, showing StartPlan:', startPlanState.show);
|
|
});
|
|
});
|
|
- } else if(event_data.del_flag === '9') {
|
|
|
|
|
|
+ } else if (event_data.del_flag === '9') {
|
|
selectPlanState.title = '预案任务下发';
|
|
selectPlanState.title = '预案任务下发';
|
|
selectPlanState.tempEventId = eventId.value;
|
|
selectPlanState.tempEventId = eventId.value;
|
|
selectPlanState.show = true;
|
|
selectPlanState.show = true;
|
|
@@ -132,7 +160,7 @@ const handleShowInitConsultation = () => {
|
|
};
|
|
};
|
|
// 初始化数据
|
|
// 初始化数据
|
|
const initData = () => {
|
|
const initData = () => {
|
|
- eventId.value = route.query.event_id as string || '';
|
|
|
|
|
|
+ eventId.value = (route.query.event_id as string) || '';
|
|
// getEventIdFromUrl();
|
|
// getEventIdFromUrl();
|
|
console.log('URL中的eventId:', route.query.event_id);
|
|
console.log('URL中的eventId:', route.query.event_id);
|
|
};
|
|
};
|