|
@@ -5,23 +5,24 @@
|
|
|
<div>综合值守</div>
|
|
|
</div>
|
|
|
<div class="card-content">
|
|
|
- <div style="line-height: 207px">值班时间:08-30-17:30</div>
|
|
|
- <div style="line-height: 207px">带班领导:张珊珊</div>
|
|
|
- <div style="line-height: 207px">值班时间:林珊珊、张珊珊</div>
|
|
|
+ <div style="line-height: 207px">值班时间:{{ comprehensiveDutyState.data.time }}</div>
|
|
|
+ <div style="line-height: 207px">带班领导:{{ comprehensiveDutyState.data.classLeader }}</div>
|
|
|
+ <div style="line-height: 207px">值班时间:{{ comprehensiveDutyState.data.operatorOnDuty }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="card">
|
|
|
<div class="card-header">
|
|
|
<div>巡查消息</div>
|
|
|
+ <div class="more" @click="showInspectionNewsState">查看更多</div>
|
|
|
</div>
|
|
|
<div class="card-content">
|
|
|
<table class="table">
|
|
|
<thead>
|
|
|
<tr class="tr">
|
|
|
- <td v-for="(item, index) in columns" :key="index" class="td">{{ item.label }}</td>
|
|
|
+ <td v-for="(item, index) in inspectionNewsState.columns" :key="index" class="td">{{ item.label }}</td>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
- <tr v-for="(item, index) in listData" :key="index" class="tr">
|
|
|
+ <tr v-for="(item, index) in inspectionNewsState.listData" :key="index" class="tr">
|
|
|
<td class="td">{{ item.name }}</td>
|
|
|
<td class="td">{{ item.type }}</td>
|
|
|
<td class="td">{{ item.address }}</td>
|
|
@@ -35,15 +36,16 @@
|
|
|
<div class="card">
|
|
|
<div class="card-header">
|
|
|
<div>事件接报</div>
|
|
|
+ <div class="more" @click="showvideoMonitorList">查看更多</div>
|
|
|
</div>
|
|
|
<div class="card-content" style="height: 100%">
|
|
|
<table class="table">
|
|
|
<thead>
|
|
|
<tr class="tr">
|
|
|
- <td v-for="(item, index) in columns2" :key="index" class="td">{{ item.label }}</td>
|
|
|
+ <td v-for="(item, index) in inspectionNewsState.columns" :key="index" class="td">{{ item.label }}</td>
|
|
|
</tr>
|
|
|
</thead>
|
|
|
- <tr v-for="(item, index) in listData2" :key="index" class="tr">
|
|
|
+ <tr v-for="(item, index) in inspectionNewsState.listData" :key="index" class="tr">
|
|
|
<td class="td">{{ item.name }}</td>
|
|
|
<td class="td">{{ item.type }}</td>
|
|
|
<td class="td">{{ item.address }}</td>
|
|
@@ -59,49 +61,99 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
+ <!--巡查消息弹窗-->
|
|
|
+ <Dialog v-model="inspectionNewsState.showListDialog" title="巡查消息列表" width="70%"></Dialog>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
+import Dialog from '@/components/Dialog/index.vue';
|
|
|
+
|
|
|
const router = useRouter();
|
|
|
+
|
|
|
+// 综合值守
|
|
|
+const comprehensiveDutyState = reactive({
|
|
|
+ data: {
|
|
|
+ // 值班时间
|
|
|
+ time: '',
|
|
|
+ // 带班领导
|
|
|
+ classLeader: '',
|
|
|
+ // 值班人员
|
|
|
+ operatorOnDuty: ''
|
|
|
+ }
|
|
|
+});
|
|
|
+
|
|
|
// 巡查消息
|
|
|
-const columns = [
|
|
|
- { label: '巡检任务', key: 'task' },
|
|
|
- { label: '巡检类型', key: 'type' },
|
|
|
- { label: '巡检地点', key: 'address' },
|
|
|
- { label: '巡检时间', key: 'time' },
|
|
|
- { label: '巡检结果', key: 'result' },
|
|
|
- { label: '巡检图像', key: 'img' }
|
|
|
-];
|
|
|
-const listData = reactive([
|
|
|
- { name: '巡检任务1', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' },
|
|
|
- { name: '巡检任务2', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' },
|
|
|
- { name: '巡检任务3', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' },
|
|
|
- { name: '巡检任务4', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' },
|
|
|
- { name: '巡检任务5', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' },
|
|
|
- { name: '巡检任务6', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' }
|
|
|
-]);
|
|
|
+const inspectionNewsState = reactive({
|
|
|
+ showListDialog: false,
|
|
|
+ columns: [
|
|
|
+ { label: '巡检任务', key: 'task' },
|
|
|
+ { label: '巡检类型', key: 'type' },
|
|
|
+ { label: '巡检地点', key: 'address' },
|
|
|
+ { label: '巡检时间', key: 'time' },
|
|
|
+ { label: '巡检结果', key: 'result' },
|
|
|
+ { label: '巡检图像', key: 'img' }
|
|
|
+ ],
|
|
|
+ listData: []
|
|
|
+});
|
|
|
+// 显示更多巡查消息
|
|
|
+const showInspectionNewsState = () => {
|
|
|
+ inspectionNewsState.showListDialog = true;
|
|
|
+};
|
|
|
|
|
|
// 事件接报
|
|
|
-const columns2 = [
|
|
|
- { label: '事件名称', key: 'name' },
|
|
|
- { label: '事件类型', key: 'type' },
|
|
|
- { label: '地点', key: 'address' },
|
|
|
- { label: '上报时间', key: 'time' },
|
|
|
- { label: '事件状态', key: 'status' },
|
|
|
- { label: '操作', key: 'operate' }
|
|
|
-];
|
|
|
-const listData2 = reactive([
|
|
|
- { name: '巡检任务1', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' },
|
|
|
- { name: '巡检任务2', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' },
|
|
|
- { name: '巡检任务3', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' },
|
|
|
- { name: '巡检任务4', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' },
|
|
|
- { name: '巡检任务5', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' },
|
|
|
- { name: '巡检任务6', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' }
|
|
|
-]);
|
|
|
+const eventReporting = reactive({
|
|
|
+ showListDialog: false,
|
|
|
+ columns: [
|
|
|
+ { label: '事件名称', key: 'name' },
|
|
|
+ { label: '事件类型', key: 'type' },
|
|
|
+ { label: '地点', key: 'address' },
|
|
|
+ { label: '上报时间', key: 'time' },
|
|
|
+ { label: '事件状态', key: 'status' },
|
|
|
+ { label: '操作', key: 'operate' }
|
|
|
+ ],
|
|
|
+ listData: []
|
|
|
+});
|
|
|
+// 显示更多巡查消息
|
|
|
+const showEventReporting = () => {
|
|
|
+ eventReporting.showListDialog = true;
|
|
|
+};
|
|
|
+
|
|
|
// 进入应急态界面
|
|
|
const enterCommand = () => {
|
|
|
router.push('/emergencyCommandMap');
|
|
|
};
|
|
|
+
|
|
|
+// 初始化数据
|
|
|
+const initData = () => {
|
|
|
+ // 综合值守数据
|
|
|
+ comprehensiveDutyState.data = {
|
|
|
+ time: '08:30-17:30',
|
|
|
+ classLeader: '张珊珊',
|
|
|
+ operatorOnDuty: '林珊珊、张珊珊'
|
|
|
+ };
|
|
|
+ // 巡查消息数据
|
|
|
+ inspectionNewsState.listData = [
|
|
|
+ { name: '巡检任务1', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' },
|
|
|
+ { name: '巡检任务2', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' },
|
|
|
+ { name: '巡检任务3', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' },
|
|
|
+ { name: '巡检任务4', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' },
|
|
|
+ { name: '巡检任务5', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' },
|
|
|
+ { name: '巡检任务6', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', result: '正常', img: '' }
|
|
|
+ ];
|
|
|
+ // 事件接报
|
|
|
+ eventReporting.listData = [
|
|
|
+ { name: '巡检任务1', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' },
|
|
|
+ { name: '巡检任务2', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' },
|
|
|
+ { name: '巡检任务3', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' },
|
|
|
+ { name: '巡检任务4', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' },
|
|
|
+ { name: '巡检任务5', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' },
|
|
|
+ { name: '巡检任务6', type: '城市隐患巡查', address: '油城十路', time: '2024-7-11 16:00:21', status: '正常' }
|
|
|
+ ];
|
|
|
+};
|
|
|
+// 加载完成事件
|
|
|
+onMounted(() => {
|
|
|
+ initData();
|
|
|
+});
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|
|
@@ -120,7 +172,11 @@ const enterCommand = () => {
|
|
|
margin-bottom: 69px;
|
|
|
animation-name: slide;
|
|
|
.card-header {
|
|
|
+ width: 100%;
|
|
|
margin-bottom: 20px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: space-between;
|
|
|
+ align-items: center;
|
|
|
}
|
|
|
&:last-child {
|
|
|
margin-bottom: 0;
|
|
@@ -156,6 +212,10 @@ const enterCommand = () => {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+.more {
|
|
|
+ color: #1890ff;
|
|
|
+ cursor: pointer;
|
|
|
+}
|
|
|
@keyframes slide {
|
|
|
0% {
|
|
|
transform: translateX(-100%);
|