|
|
@ -125,23 +125,41 @@ |
|
|
|
<Setting v-if="activeTab == 5" /> |
|
|
|
<div class="other_info"> |
|
|
|
<p>IP192.0.0.0.0</p> |
|
|
|
<p>2023-8-23 11:40:20</p> |
|
|
|
<p class="time">{{ nowTime }}</p> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
|
|
|
|
<script setup> |
|
|
|
import { ref } from 'vue' |
|
|
|
import { ref, onMounted, onBeforeUnmount } from 'vue' |
|
|
|
import moment from 'moment' |
|
|
|
import Operator from 'cpns/Operator' |
|
|
|
import Progress from 'cpns/Progress' |
|
|
|
import LiquidHandle from 'cpns/LiquidHandle' |
|
|
|
import Setting from 'cpns/Setting' |
|
|
|
import Test from 'cpns/Test' |
|
|
|
const activeTab = ref(1) |
|
|
|
const nowTime = ref('') |
|
|
|
const timer = ref(null) |
|
|
|
|
|
|
|
const changeTab = index => { |
|
|
|
activeTab.value = index |
|
|
|
} |
|
|
|
|
|
|
|
const getdateTime = () => { |
|
|
|
nowTime.value = moment().format('YYYY-MM-DD HH:mm:ss') |
|
|
|
} |
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
getdateTime() |
|
|
|
timer.value = setInterval(() => { |
|
|
|
getdateTime() |
|
|
|
}, 1000) |
|
|
|
}) |
|
|
|
|
|
|
|
onBeforeUnmount(() => { |
|
|
|
timer.value = null |
|
|
|
}) |
|
|
|
</script> |
|
|
|
|
|
|
|
<style lang="scss" scoped> |
|
|
@ -199,6 +217,10 @@ const changeTab = index => { |
|
|
|
letter-spacing: 0.06em; |
|
|
|
color: #ffffff; |
|
|
|
padding: 0 30px; |
|
|
|
.time { |
|
|
|
width: 156px; |
|
|
|
white-space: nowrap; |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
</style> |