| | |
| | | clearable /> |
| | | </u-form-item> |
| | | <u-form-item label="保养状态" |
| | | prop="status" |
| | | prop="maintenancestatusText" |
| | | required |
| | | border-bottom> |
| | | <u-input v-model="maintenancestatusText" |
| | |
| | | :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" |
| | |
| | | await fetchSparePartOptions(pageId); |
| | | } |
| | | // 页面显示时初始化表单 |
| | | initForm(); |
| | | }); |
| | | const sparePartOptions = ref([]); |
| | | const fetchSparePartOptions = deviceLedgerId => { |
| | |
| | | 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}`; |
| | | }; |
| | | |
| | | // 上传成功处理 |