|
@@ -0,0 +1,101 @@
|
|
|
+<template>
|
|
|
+ <div class="kouan-run-monitor-head">
|
|
|
+ <img src="../img/header.png"/>
|
|
|
+ <div class="head-center">
|
|
|
+ 二线口岸全景运行管理中心
|
|
|
+ </div>
|
|
|
+ <div class="head-right">
|
|
|
+ <div class="head-right-time">{{state.time}}</div>
|
|
|
+ <div class="head-right-date">
|
|
|
+ <div class="day">{{state.day}}</div>
|
|
|
+ <div class="date">{{state.date}}</div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+</template>
|
|
|
+
|
|
|
+<script setup lang="ts">
|
|
|
+import {computed, getCurrentInstance, onMounted, reactive} from "vue";
|
|
|
+
|
|
|
+const {proxy} = getCurrentInstance()
|
|
|
+const props = defineProps({
|
|
|
+ tab: {}
|
|
|
+})
|
|
|
+const state: any = reactive({
|
|
|
+ time: '',
|
|
|
+ day: '',
|
|
|
+ date: ''
|
|
|
+})
|
|
|
+const initTime = () => {
|
|
|
+ const d = new Date()
|
|
|
+ state.time = proxy.$util.Hms(d)
|
|
|
+ state.date = proxy.$util.YMD(d)
|
|
|
+ let str = ''
|
|
|
+ switch (d.getDay()) {
|
|
|
+ case 0: str = '星期日'
|
|
|
+ break
|
|
|
+ case 1: str = '星期一'
|
|
|
+ break
|
|
|
+ case 2: str = '星期二'
|
|
|
+ break
|
|
|
+ case 3: str = '星期三'
|
|
|
+ break
|
|
|
+ case 4: str = '星期四'
|
|
|
+ break
|
|
|
+ case 5: str = '星期五'
|
|
|
+ break
|
|
|
+ case 6: str = '星期六'
|
|
|
+ break
|
|
|
+ }
|
|
|
+ state.day = str
|
|
|
+}
|
|
|
+onMounted(() => {
|
|
|
+ initTime()
|
|
|
+ setInterval(() => {
|
|
|
+ initTime()
|
|
|
+ }, 1000)
|
|
|
+})
|
|
|
+</script>
|
|
|
+
|
|
|
+<style lang="scss" scoped>
|
|
|
+.kouan-run-monitor-head {
|
|
|
+ color: #ffffff;
|
|
|
+ width: 100%;
|
|
|
+ height: 60px;
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ position: relative;
|
|
|
+ >img {
|
|
|
+ z-index: 1;
|
|
|
+ width: 100%;
|
|
|
+ position: absolute;
|
|
|
+ }
|
|
|
+ .head-center {
|
|
|
+ z-index: 2;
|
|
|
+ position: absolute;
|
|
|
+ font-family: YouSheBiaoTiHei, YouSheBiaoTiHei;
|
|
|
+ font-weight: 400;
|
|
|
+ font-size: 50px;
|
|
|
+ color: #E7F5FF;
|
|
|
+ letter-spacing: 2px;
|
|
|
+ text-shadow: 0px 20px 30px #0091FF, 0px 0px 4px #0D74C2;
|
|
|
+ line-height: 90px;
|
|
|
+ }
|
|
|
+ .head-right {
|
|
|
+ margin-top: 14px;
|
|
|
+ margin-right: 30px;
|
|
|
+ height: fit-content;
|
|
|
+ margin-left: auto;
|
|
|
+ display: flex;
|
|
|
+ align-items: center;
|
|
|
+ gap: 20px;
|
|
|
+ .head-right-time {
|
|
|
+ font-size: 34px;
|
|
|
+ font-weight: bold;
|
|
|
+ }
|
|
|
+ .head-right-date {
|
|
|
+ font-size: 14px;
|
|
|
+ }
|
|
|
+ }
|
|
|
+}
|
|
|
+</style>
|