|
@ -117,6 +117,7 @@ |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
<view class="image-item image-item1" @click="chooseImage(item)"> |
|
|
<view class="image-item image-item1" @click="chooseImage(item)"> |
|
|
|
|
|
<view style="color: red">*</view> |
|
|
<image src="../../static/images/photo.png" mode=""></image> |
|
|
<image src="../../static/images/photo.png" mode=""></image> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
|
</view> |
|
@ -230,6 +231,13 @@ function submit() { |
|
|
proxy.$modal.showToast('请选择班次') |
|
|
proxy.$modal.showToast('请选择班次') |
|
|
return |
|
|
return |
|
|
} |
|
|
} |
|
|
|
|
|
console.log('subList.value', subList.value) |
|
|
|
|
|
for (let valueElement of subList.value) { |
|
|
|
|
|
if (!valueElement.fileInfoList || valueElement.fileInfoList.length == 0) { |
|
|
|
|
|
proxy.$modal.showToast('点检项内容:设备部位名称为'+valueElement.equipmentPosition+' 未上传图片') |
|
|
|
|
|
return; |
|
|
|
|
|
} |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
const submitData = { |
|
|
const submitData = { |
|
|
id: data.value.id, |
|
|
id: data.value.id, |
|
@ -375,6 +383,7 @@ function chooseImage(dataItem) { |
|
|
sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有 |
|
|
sizeType: ['compressed'], // 可以指定是原图还是压缩图,默认二者都有 |
|
|
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 |
|
|
sourceType: ['album', 'camera'], // 可以指定来源是相册还是相机,默认二者都有 |
|
|
success: (res) => { |
|
|
success: (res) => { |
|
|
|
|
|
console.log("上传图片",dataItem); |
|
|
const filePath = res.tempFilePaths[0] |
|
|
const filePath = res.tempFilePaths[0] |
|
|
proxy.$modal.loading() |
|
|
proxy.$modal.loading() |
|
|
const fileInfo = ref({ |
|
|
const fileInfo = ref({ |
|
|