| | |
| | | </div> |
| | | </div> |
| | | </div> |
| | | <div class="footer"> |
| | | |
| | | <div >{{ nowDate }}</div> |
| | | <div >{{ nowTime }}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | const Timer = ref() |
| | | |
| | | const realTime = ref(new Map()) |
| | | const nowTime = ref() |
| | | const nowDate = ref() |
| | | |
| | | |
| | | function listAllEqp() { |
| | | listAll({ enable: 'Y' }) |
| | |
| | | } |
| | | } |
| | | |
| | | function getNowTime() { |
| | | var date = new Date() |
| | | nowDate.value = (date.getFullYear()) + "/" + (date.getMonth()< 9? "0" + (date.getMonth() + 1): date.getMonth() + 1) + "/" + (date.getDay() < 10? "0" + date.getDay() : date.getDay()) |
| | | nowTime.value = "" + (date.getHours()<10? "0" + date.getHours() : date.getHours()) + ":" + (date.getMinutes()< 10? "0" + date.getMinutes(): date.getMinutes()) |
| | | //console.log("获取当前时间!"); |
| | | } |
| | | |
| | | getNowTime() |
| | | listAllEqp() |
| | | onMounted(() => { |
| | | Timer.value = setInterval(updateRealTime, 3000) |
| | | setInterval(getNowTime,10000) |
| | | }) |
| | | |
| | | onUnmounted(() => { |
| | |
| | | line-height: 26px; |
| | | } |
| | | |
| | | .value { |
| | | |
| | | .footer { |
| | | height: 160px; |
| | | display: flex; |
| | | padding: 10px 20px; |
| | | font-size: 30px; |
| | | flex-direction: column-reverse; |
| | | align-items: flex-end; |
| | | color: white; |
| | | line-height: 40px; |
| | | |
| | | } |
| | | :deep() .progress { |
| | | padding: 25px 25px; |