| src/config.js | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/pages/equipmentManagement/upkeep/detail.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/pages/equipmentManagement/upkeep/maintain.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| src/pages/inspectionUpload/index.vue | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
src/config.js
@@ -1,6 +1,7 @@ // 应用全局配置 const config = { baseUrl: "http://1.15.17.182:9011", fileUrl: "http://1.15.17.182:9010", // 应用信息 appInfo: { // 应用名称 src/pages/equipmentManagement/upkeep/detail.vue
@@ -199,9 +199,9 @@ const uploadsIndex = url.indexOf("uploads"); if (uploadsIndex !== -1) { const relativePath = url.substring(uploadsIndex); return `${config.baseUrl}/${relativePath}`; return `${config.fileUrl}/${relativePath}`; } return `${config.baseUrl}/${url}`; return `${config.fileUrl}/${url}`; }; // 判断是否为图片文件 src/pages/equipmentManagement/upkeep/maintain.vue
@@ -929,9 +929,9 @@ const uploadsIndex = url.indexOf("uploads"); if (uploadsIndex !== -1) { const relativePath = url.substring(uploadsIndex); return `${config.baseUrl}/${relativePath}`; return `${config.fileUrl}/${relativePath}`; } return `${config.baseUrl}/${url}`; return `${config.fileUrl}/${url}`; }; // 上传成功处理 src/pages/inspectionUpload/index.vue
@@ -281,7 +281,6 @@ class="attachment-item" @click="previewAttachment(file)"> <view class="attachment-preview-container"> {{formatFileUrl(file.url || file.downloadUrl)}} <image v-if="file.type === 'image' || isImageFile(file)" :src="formatFileUrl(file.url || file.downloadUrl)" class="attachment-preview" @@ -1599,9 +1598,9 @@ const uploadsIndex = url.indexOf("uploads"); if (uploadsIndex !== -1) { const relativePath = url.substring(uploadsIndex); return `${config.baseUrl}/${relativePath}`; return `${config.fileUrl}/${relativePath}`; } return `${config.baseUrl}/${url}`; return `${config.fileUrl}/${url}`; }; // 格式化文件大小 const formatFileSize = size => {