refactor(iot): 将项目和设备默认图片转到项目本地地址,并更换引用地址

This commit is contained in:
fhysy 2025-07-22 14:59:50 +08:00
parent 4c48b77529
commit 7656ef75c9
6 changed files with 15 additions and 8 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

View File

@ -310,8 +310,8 @@
<div class="card-header">
<div class="device-img-box">
<el-image
:preview-src-list="item.deviceImage?[imgPath+item.deviceImage]:['http://static.drgyen.com/pc/smart-power-ui/device/device-card.png']"
:src="item.deviceImage?imgPath+item.deviceImage:'http://static.drgyen.com/pc/smart-power-ui/device/device-card.png'"
:preview-src-list="item.deviceImage?[imgPath+item.deviceImage]:[deviceCardImgUrl]"
:src="item.deviceImage?imgPath+item.deviceImage:deviceCardImgUrl"
style="width: 100%; height: 100%">
</el-image>
</div>
@ -586,6 +586,7 @@ import EDialogTableInput from "@/components/EDialogTableInput";
import DialogTemplate from "@/components/DialogTemplate";
import JsBarcode from "jsbarcode";
import { getProjectGroupList, listProject } from "@/api/tenant/project";
import deviceCardImgUrl from "@/assets/images/device/device-card.png";
const deviceStatusOpt = {
ONLINE: "在线",
@ -803,6 +804,7 @@ export default {
},
data() {
return {
deviceCardImgUrl,
//
viewType: "card",
deviceStatusOpt,

View File

@ -161,8 +161,8 @@
<div class="card-header-top">
<div class="device-img-box">
<el-image
:preview-src-list="['http://static.drgyen.com/pc/smart-power-ui/device/device-number.png']"
:src="'http://static.drgyen.com/pc/smart-power-ui/device/device-number.png'"
:preview-src-list="[deviceImgUrl]"
:src="deviceImgUrl"
style="width: 100%; height: 100%">
</el-image>
</div>
@ -410,7 +410,6 @@
</div>
</dialog-template>
</div>
<!-- <div class="to-home-wrap2" @click="linkToTable" v-show="componectVal !== ''">
<el-button icon="el-icon-d-arrow-left" title="返回列表" circle>返回列表</el-button>
</div> -->
@ -437,6 +436,7 @@ import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import DialogTemplate from "@/components/DialogTemplate/index";
import EDialogTableInput from "@/components/EDialogTableInput";
import deviceImgUrl from "@/assets/images/device/device-number.png";
/////
import EDetailsWrap from "./profileV2/details";
@ -603,6 +603,7 @@ export default {
},
data() {
return {
deviceImgUrl,
//
viewType: "card",
selectPriceTable,

View File

@ -241,8 +241,8 @@
<div class="card-header">
<div class="device-img-box">
<el-image
:preview-src-list="item.deviceImage?[imgPath+item.deviceImage]:['http://static.drgyen.com/pc/smart-power-ui/device/device-card.png']"
:src="item.deviceImage?imgPath+item.deviceImage:'http://static.drgyen.com/pc/smart-power-ui/device/device-card.png'"
:preview-src-list="item.deviceImage?[imgPath+item.deviceImage]:[deviceCardImgUrl]"
:src="item.deviceImage?imgPath+item.deviceImage:deviceCardImgUrl"
style="width: 100%; height: 100%">
</el-image>
</div>
@ -363,6 +363,7 @@ import DetailsWrap from "./profile/details";
import GatewayDetail from "@/views/profile/DeviceDetailsView/index";
import JsBarcode from "jsbarcode";
import { getProjectGroupList, listProject } from "@/api/tenant/project";
import deviceCardImgUrl from "@/assets/images/device/device-card.png";
const deviceStatusOpt = {
ONLINE: "在线",
OFFLINE: "离线",
@ -382,6 +383,7 @@ export default {
},
data() {
return {
deviceCardImgUrl,
//
viewType: "card",
deviceStatusOpt,

View File

@ -118,7 +118,7 @@
<div class="card-header-top">
<div class="device-img-box">
<el-image
:src="'http://static.drgyen.com/pc/smart-power-ui/device/device-number.png'"
:src="deviceImgUrl"
style="width: 100%; height: 100%">
</el-image>
</div>
@ -173,6 +173,7 @@ import {
import DetailsWrap from '@/views/iot/project/profileV2/details'
import Treeselect from "@riophae/vue-treeselect";
import "@riophae/vue-treeselect/dist/vue-treeselect.css";
import deviceImgUrl from "@/assets/images/device/device-number.png";
export default {
name: "Project",
@ -182,6 +183,7 @@ export default {
},
data() {
return {
deviceImgUrl,
//
viewType: "card",
//