图片显示问题。不能有中文,不然会转码失败。

This commit is contained in:
姚俊旭 2025-06-03 09:54:37 +08:00
parent 2d659fe4eb
commit 6825cebc0e
6 changed files with 5 additions and 5 deletions

View File

Before

Width:  |  Height:  |  Size: 41 KiB

After

Width:  |  Height:  |  Size: 41 KiB

View File

Before

Width:  |  Height:  |  Size: 42 KiB

After

Width:  |  Height:  |  Size: 42 KiB

View File

Before

Width:  |  Height:  |  Size: 46 KiB

After

Width:  |  Height:  |  Size: 46 KiB

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -283,11 +283,11 @@ const showMaxValueTooltip = () => {
onMounted(() => { onMounted(() => {
initChart(); initChart();
if (props.title.indexOf('灌溉') !== -1) { if (props.title.indexOf('灌溉') !== -1) {
Pics.value = [getAssetsFile('images/mockPic/智能灌溉.png')]; Pics.value = [getAssetsFile('images/mockPic/IrrigationReport.png')];
} else if (props.title.indexOf('浸种') !== -1) { } else if (props.title.indexOf('浸种') !== -1) {
Pics.value = [getAssetsFile('images/mockPic/智能浸种.png')]; Pics.value = [getAssetsFile('images/mockPic/seedReport.png')];
} else if (props.title.indexOf('配肥') !== -1) { } else if (props.title.indexOf('配肥') !== -1) {
Pics.value = [getAssetsFile('images/mockPic/智能配肥.png')]; Pics.value = [getAssetsFile('images/mockPic/fertilizerReport.png')];
} }
}); });
// //

View File

@ -6,7 +6,7 @@ import { getAssetsFile } from '@/utils/index.js';
const currentDevice = ref(0); const currentDevice = ref(0);
const imgUrl = ref('/images/smartFarm/banner.png'); const imgUrl = ref('/images/smartFarm/banner.png');
const srcList = ref([getAssetsFile('images/mockPic/水质检测.png')]); const srcList = ref([getAssetsFile('images/mockPic/waterReport.png')]);
const devices = ref([ const devices = ref([
{ {
name: 'A-001', name: 'A-001',
@ -182,7 +182,7 @@ const chooseIcon = (type) => {
<div style="margin-top: 20px"> <div style="margin-top: 20px">
<el-image <el-image
style="width: 100%" style="width: 100%"
:src="getAssetsFile('images/mockPic/水质检测.png')" :src="getAssetsFile('images/mockPic/waterReport.png')"
:zoom-rate="1.2" :zoom-rate="1.2"
:max-scale="7" :max-scale="7"
:min-scale="0.2" :min-scale="0.2"