|
@@ -36,16 +36,33 @@
|
|
|
<div class="card-header">
|
|
|
<div>事件接报</div>
|
|
|
</div>
|
|
|
- <div class="card-content flex" style="height: 100%">
|
|
|
- <!--<Chart :option="option1" />-->
|
|
|
+ <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>
|
|
|
+ </tr>
|
|
|
+ </thead>
|
|
|
+ <tr v-for="(item, index) in listData2" :key="index" class="tr">
|
|
|
+ <td class="td">{{ item.name }}</td>
|
|
|
+ <td class="td">{{ item.type }}</td>
|
|
|
+ <td class="td">{{ item.address }}</td>
|
|
|
+ <td class="td">{{ item.time }}</td>
|
|
|
+ <td class="td">{{ item.status }}</td>
|
|
|
+ <td class="td">
|
|
|
+ <div class="flex">
|
|
|
+ <div @click="enterCommand">进入指挥</div>
|
|
|
+ </div>
|
|
|
+ </td>
|
|
|
+ </tr>
|
|
|
+ </table>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts" setup>
|
|
|
-import { chartOption1 } from './optionsData';
|
|
|
-
|
|
|
+const router = useRouter();
|
|
|
// 巡查消息
|
|
|
const columns = [
|
|
|
{ label: '巡检任务', key: 'task' },
|
|
@@ -65,7 +82,26 @@ const listData = reactive([
|
|
|
]);
|
|
|
|
|
|
// 事件接报
|
|
|
-const option1 = reactive(chartOption1);
|
|
|
+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 enterCommand = () => {
|
|
|
+ router.push('/emergencyCommandMap');
|
|
|
+};
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss" scoped>
|