From 4a68a94d5e429eca8b01a24bdbf601c0331ff73d Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期一, 09 三月 2026 17:27:51 +0800
Subject: [PATCH] 保养预览
---
src/pages/equipmentManagement/upkeep/maintain.vue | 17 ++++++++---------
1 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/src/pages/equipmentManagement/upkeep/maintain.vue b/src/pages/equipmentManagement/upkeep/maintain.vue
index 610a185..d3b8549 100644
--- a/src/pages/equipmentManagement/upkeep/maintain.vue
+++ b/src/pages/equipmentManagement/upkeep/maintain.vue
@@ -41,7 +41,7 @@
clearable />
</u-form-item>
<u-form-item label="淇濆吇鐘舵��"
- prop="status"
+ prop="maintenancestatusText"
required
border-bottom>
<u-input v-model="maintenancestatusText"
@@ -123,7 +123,7 @@
:key="index"
class="file-item">
<view class="file-preview-container">
- {{formatFileUrl(file.url)}}
+ <!-- {{formatFileUrl(file.url)}} -->
<image v-if="file.type === 'image' || isImageFile(file)"
:src="formatFileUrl(file.url || file.tempFilePath || file.path || file.downloadUrl)"
class="file-preview"
@@ -592,7 +592,6 @@
await fetchSparePartOptions(pageId);
}
// 椤甸潰鏄剧ず鏃跺垵濮嬪寲琛ㄥ崟
- initForm();
});
const sparePartOptions = ref([]);
const fetchSparePartOptions = deviceLedgerId => {
@@ -927,12 +926,12 @@
if (url.startsWith("http://") || url.startsWith("https://")) {
return url;
}
- const uploadsIndex = url.indexOf("uploads");
- if (uploadsIndex !== -1) {
- const relativePath = url.substring(uploadsIndex);
- return `${config.baseUrl}/${relativePath}`;
- }
- return `${config.baseUrl}/${url}`;
+ // const uploadsIndex = url.indexOf("uploads");
+ // if (uploadsIndex !== -1) {
+ // const relativePath = url.substring(uploadsIndex);
+ // return `${config.fileUrl}/${relativePath}`;
+ // }
+ return `${config.fileUrl}/${url}`;
};
// 涓婁紶鎴愬姛澶勭悊
--
Gitblit v1.9.3