From 185f0ab2be3cb33f1436bd39c72049ac5e34fe73 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 19 十二月 2025 09:25:42 +0800
Subject: [PATCH] 最新版本541200007最新版本541200007
---
admin/src/views/index.vue | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/admin/src/views/index.vue b/admin/src/views/index.vue
index b414d59..70f58c4 100644
--- a/admin/src/views/index.vue
+++ b/admin/src/views/index.vue
@@ -2,7 +2,7 @@
<div class="main_home">
<!-- <div style="position: fixed;z-index: 99999"><video style="height: 100px;width: 500px" src="rtsp://10.50.250.253:554/openUrl/K2y2vE4" controls></video></div> -->
<div class="home_header">
- <div class="mb10 fs17">涓嬪崍濂斤紝{{ userInfo.realname }}</div>
+ <div class="mb10 fs17">{{timeInfo}}濂斤紝{{ userInfo.realname }}</div>
<div class="fs13">
浠婂ぉ鏄� {{ nowDate }} {{ nowWeek }}锛屾杩庤闂櫤鎱х墿娴佸洯鍖哄畨娑堜竴浣撳寲绯荤粺
</div>
@@ -236,6 +236,7 @@
nowDate: '',
nowWeek: '',
headerData: {},
+ timeInfo:'涓婂崍',
staticData: {},
manningRatio: [],
taskList: [],
@@ -373,6 +374,7 @@
this.$router.push(item.path)
},
updateDate () {
+ this.timeInfo = new Date().getHours()<12?'涓婂崍':'涓嬪崍'
this.nowDate = dayjs().format('YYYY骞碝鏈圖鏃�')
this.nowWeek = weeks[new Date().getDay()]
},
@@ -396,6 +398,7 @@
},
getWorkBody () {
getWorkbenchData({ queryType: 2 }).then(res => {
+ console.log(res)
this.staticData = res || {}
this.initEchart2()
this.initEchart21()
@@ -517,6 +520,7 @@
if (!document.getElementById('echart2')) {
return
}
+ echarts.dispose(document.getElementById('echart2'))
const myChart = echarts.init(document.getElementById('echart2'))
const that = this
var ydata = that.staticData.internalList.map(i => i.num)
@@ -621,11 +625,11 @@
})
},
initEchart21 () {
- console.log('initEchart21')
+ console.log('initEchart21',this.staticData.lwList)
if (!document.getElementById('echart21')) {
return
}
-
+ echarts.dispose(document.getElementById('echart21'))
const myChart = echarts.init(document.getElementById('echart21'))
const that = this
var le1 = that.staticData.internalList.length
--
Gitblit v1.9.3