From eea11ed9889e600eb89018cf0bf9f6b2d48b68b4 Mon Sep 17 00:00:00 2001
From: doum <doum>
Date: 星期五, 06 三月 2026 09:56:49 +0800
Subject: [PATCH] 最新版本541200007
---
admin/src/views/index.vue | 59 +++++++++++++++++++++++++++++++++--------------------------
1 files changed, 33 insertions(+), 26 deletions(-)
diff --git a/admin/src/views/index.vue b/admin/src/views/index.vue
index b414d59..eef03a9 100644
--- a/admin/src/views/index.vue
+++ b/admin/src/views/index.vue
@@ -2,9 +2,9 @@
<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 }}锛屾杩庤闂櫤鎱х墿娴佸洯鍖哄畨娑堜竴浣撳寲绯荤粺
+ 浠婂ぉ鏄� {{ nowDate }} {{ nowWeek }}锛屾杩庤闂畕{sysConfig.subtitle || title}}
</div>
</div>
<div class="main">
@@ -100,7 +100,7 @@
</div>
<div class="wrap static2">
<div class="header">
-<!-- <div class="home_title">闀挎湡鐩稿叧鏂瑰垎甯�</div>-->
+ <!-- <div class="home_title">闀挎湡鐩稿叧鏂瑰垎甯�</div>-->
<el-radio-group v-model="tabPosition" @change="changeType">
<el-radio-button label="right">鍐呴儴浜哄憳鍒嗗竷</el-radio-button>
<el-radio-button label="top">闀挎湡鐩稿叧鏂瑰垎甯�</el-radio-button>
@@ -218,6 +218,7 @@
import OperaCarUseBookWindow from '@/components/business/OperaCarUseBookWindow'
import OperaHiddenDangerWindow from '@/components/business/OperaHiddenDangerWindow'
import OperaVisitsDesWindow from '@/components/business/OperaVisitsDesWindow'
+import {mapState} from "vuex";
const colors = ['#52a4f7', '#7678f7', '#5fc6d5']
export default {
components: {
@@ -231,8 +232,10 @@
},
data () {
return {
+ title: process.env.VUE_APP_TITLE,
tabPosition: 'right',
colors,
+ timeInfo: '涓婂崍',
nowDate: '',
nowWeek: '',
headerData: {},
@@ -244,11 +247,11 @@
warningTotal: 0,
funcList: [
{ name: '璁垮鎶ュ', path: '', url: require('@/assets/icons/home_func1.png'), path: '/business/reportRecord' },
- { name: '闅愭偅闅忔墜鎷�', path: '', url: require('@/assets/icons/home_func2.png'), path: '/operation/danger/record' },
- { name: '棰勭害浼氳瀹�', path: '', url: require('@/assets/icons/home_func3.png'), path: '/meeting/bookings' },
- { name: '鍏姟杞﹂绾�', path: '', url: require('@/assets/icons/home_func5.png'), path: '/operation/serviceCar/apprRecord' },
- { name: '鑰冨嫟宸ヤ綔鍙�', path: '', url: require('@/assets/icons/home_func4.png') },
- { name: '椋熷爞娑堣垂', path: '', url: require('@/assets/icons/8.png') }
+ // { name: '闅愭偅闅忔墜鎷�', path: '', url: require('@/assets/icons/home_func2.png'), path: '/operation/danger/record' },
+ // { name: '棰勭害浼氳瀹�', path: '', url: require('@/assets/icons/home_func3.png'), path: '/meeting/bookings' },
+ { name: '鍏姟杞﹂绾�', path: '', url: require('@/assets/icons/home_func5.png'), path: '/operation/serviceCar/apprRecord' }
+ // { name: '鑰冨嫟宸ヤ綔鍙�', path: '', url: require('@/assets/icons/home_func4.png') },
+ // { name: '椋熷爞娑堣垂', path: '', url: require('@/assets/icons/8.png') }
],
isShowDetail: false,
isShowReport: false,
@@ -257,6 +260,7 @@
}
},
computed: {
+ ...mapState(['sysConfig']),
userInfo () {
return this.$store.state.userInfo
}
@@ -375,6 +379,7 @@
updateDate () {
this.nowDate = dayjs().format('YYYY骞碝鏈圖鏃�')
this.nowWeek = weeks[new Date().getDay()]
+ this.timeInfo = new Date().getHours() < 12 ? '涓婂崍' : '涓嬪崍'
},
initData () {
this.getWorkHead()
@@ -396,6 +401,7 @@
},
getWorkBody () {
getWorkbenchData({ queryType: 2 }).then(res => {
+ console.log(res)
this.staticData = res || {}
this.initEchart2()
this.initEchart21()
@@ -410,7 +416,7 @@
arr.push({ name: '璁垮', value: this.headerData.inParkVisitUserNum })
arr.push({ name: '鍐呴儴鍛樺伐', value: this.headerData.todayInParkUserNum - this.headerData.inParkLwUserNum - this.headerData.inParkVisitUserNum - this.headerData.inParkDriverUserNum })
arr.push({ name: '闀挎湡鐩稿叧鏂�', value: this.headerData.inParkLwUserNum })
- arr.push({ name: '璐ц繍鍙告満', value: this.headerData.inParkDriverUserNum })
+ // arr.push({ name: '璐ц繍鍙告満', value: this.headerData.inParkDriverUserNum })
arr.sort((a, b) => b.value - a.value)
this.manningRatio = arr
this.initEchart1()
@@ -426,9 +432,9 @@
type: 'warning'
}).then(() => {
level(id)
- .then(res => {
- this.getWarningList()
- })
+ .then(res => {
+ this.getWarningList()
+ })
}).catch(() => {
})
@@ -517,6 +523,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)
@@ -604,11 +611,11 @@
itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(
- 1, 0, 0, 0,
- [
- { offset: 0, color: '#56abf8' },
- { offset: 1, color: '#407ff0' }
- ]
+ 1, 0, 0, 0,
+ [
+ { offset: 0, color: '#56abf8' },
+ { offset: 1, color: '#407ff0' }
+ ]
)
// barBorderRadius: [0, 10, 10, 0]
}
@@ -621,16 +628,16 @@
})
},
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
var le2 = that.staticData.lwList.length
- const end = Math.round(40 * ((le1>0&& le2>0?le1:1) / (le1>0&& le2>0?le2:1)))+10
+ const end = Math.round(40 * ((le1 > 0 && le2 > 0 ? le1 : 1) / (le1 > 0 && le2 > 0 ? le2 : 1))) + 10
myChart.setOption({
dataZoom: [
{
@@ -698,7 +705,7 @@
yAxis: {
type: 'category',
inverse: true,
- data: that.staticData.lwList.map(i => i.name),
+ data: that.staticData.lwList.map(i => i.name),
axisLabel: {
interval: 0
}
@@ -711,11 +718,11 @@
itemStyle: {
normal: {
color: new echarts.graphic.LinearGradient(
- 1, 0, 0, 0,
- [
- { offset: 0, color: '#56abf8' },
- { offset: 1, color: '#407ff0' }
- ]
+ 1, 0, 0, 0,
+ [
+ { offset: 0, color: '#56abf8' },
+ { offset: 1, color: '#407ff0' }
+ ]
)
// barBorderRadius: [0, 10, 10, 0]
}
--
Gitblit v1.9.3