From d5f3ca51818d635d3c5be7f73984b0e592a23ed4 Mon Sep 17 00:00:00 2001
From: zxl <763096477@qq.com>
Date: 星期五, 20 三月 2026 16:11:04 +0800
Subject: [PATCH] 修改
---
src/views/analysisScreen/operationBigdata.vue | 13 ++++++++++---
src/views/dataAnalysis/components/CarInfoDetail.vue | 28 +++++++++++++++++++++++++---
2 files changed, 35 insertions(+), 6 deletions(-)
diff --git a/src/views/analysisScreen/operationBigdata.vue b/src/views/analysisScreen/operationBigdata.vue
index 5c6c829..158d889 100644
--- a/src/views/analysisScreen/operationBigdata.vue
+++ b/src/views/analysisScreen/operationBigdata.vue
@@ -1,7 +1,8 @@
<template>
<div>
<div class="content">
- <div class="header_ct">{{ localInfo.operationViewName }}</div>
+ <div class="header_ct"><span class="blue-text">{{ localInfo.operationViewName }}</span>
+ 鍙鍖栧ぇ灞�</div>
<div class="tab_page">
<div class="operation">杩愯惀鏁版嵁鍒嗘瀽</div>
<div class="alarm" @click="goAlarmPage">鍛婅鏁版嵁鍒嗘瀽</div>
@@ -186,8 +187,8 @@
<div class="block monthly_sales_statis">
<div class="block_title">
<div>
- <span class="blue_text">閿�鍞�</span>
- <span>瓒嬪娍</span>
+ <span class="blue_text">鏈堝害閿�鍞�</span>
+ <span>缁熻</span>
</div>
</div>
<img class="title_line" src="@/assets/img/bigdata/daoh.png" alt="" />
@@ -274,8 +275,10 @@
//鑾峰彇杩愯惀姒傚喌鏁版嵁
getOverviewData() {
getAction('/jyz/operationData/overview', {}).then((res) => {
+ console.log('杩愯惀姒傚喌鏁版嵁')
console.log(res)
this.overviewData = res.result
+
this.setTurnInRateChart()
this.setRefuelingRateChart()
})
@@ -1367,6 +1370,10 @@
text-align: center;
font-size: 40px;
color: #fff;
+ .blue-text {
+ color: #5a81f9;
+ }
+
}
.tab_page {
display: flex;
diff --git a/src/views/dataAnalysis/components/CarInfoDetail.vue b/src/views/dataAnalysis/components/CarInfoDetail.vue
index ce54739..bb55720 100644
--- a/src/views/dataAnalysis/components/CarInfoDetail.vue
+++ b/src/views/dataAnalysis/components/CarInfoDetail.vue
@@ -14,7 +14,8 @@
<a-col :span="6" style="border-right: 1px solid #343a44">
<div class="flex" style="justify-content: space-between">
<viewer>
- <img class="car_img" :src="detailData.imgPath" alt="" />
+ <!-- <img class="car_img" :src="detailData.imgPath2" alt="" /> -->
+ <img class="car_img" :src="getImgUrl(detailData.imgPath2)" alt="" />
</viewer>
<div class="flex flex-column" style="justify-content: space-between; height: 90px; align-items: flex-start">
<div class="blue_text" style="font-size: 16px">{{ detailData.licenseNum }}</div>
@@ -88,7 +89,7 @@
>
<span slot="imgPath" slot-scope="imgPath">
<viewer v-if="imgPath">
- <img :src="imgPath" alt="" style="width:100px;"/>
+ <img :src="getImgUrl(imgPath)" alt="" style="width:100px;"/>
</viewer>
<span v-else>--</span>
</span>
@@ -199,11 +200,19 @@
oilPositionChart: null, //鍔犳补浣嶅亸濂絜charts
visible: false,
symIng: img,
+ staticUrl: window._CONFIG['staticDomainURL'],
detailData: {
labelName: '',
},
columns: [
- {
+ // {
+ // title: '杩涚珯鍥剧墖',
+ // align: 'center',
+ // dataIndex: 'imgPath',
+ // width: 100,
+ // scopedSlots: { customRender: 'imgPath' },
+ // },
+ {
title: '杩涚珯鍥剧墖',
align: 'center',
dataIndex: 'imgPath',
@@ -266,7 +275,20 @@
},
props: ['orgCode'],
methods: {
+ getImgUrl(path) {
+ if (!path) return this.symIng
+ if (path.startsWith('http://') || path.startsWith('https://')) return path
+ if (path.includes(':\\') || path.includes('/')) {
+ try {
+ return require('@/image/' + path.split(/[\\/]/).pop())
+ } catch (e) {
+ return this.symIng
+ }
+ }
+ return this.staticUrl + path
+ },
show(data) {
+ console.log(data)
this.detailData = data
this.visible = true
this.loadData()
--
Gitblit v1.8.0