5/30提交
This commit is contained in:
@@ -18,13 +18,13 @@
|
||||
</view>
|
||||
<view class="inspection_item">
|
||||
<text>巡检时间:</text>
|
||||
<text>07:00:00 - 09:00:00</text>
|
||||
<text>{{ info.taskTime }}</text>
|
||||
</view>
|
||||
<view class="inspection_item">
|
||||
<text>巡检小区:</text>
|
||||
<text>{{ info.villageName }}</text>
|
||||
</view>
|
||||
<view class="" v-for="(item, index) in baseFormData" :key="index">
|
||||
<view v-for="(item, index) in baseFormData" :key="index">
|
||||
<view class="inspection_item">
|
||||
<text>巡检路线:</text>
|
||||
<text>{{ item.routeName }}</text>
|
||||
@@ -74,9 +74,7 @@
|
||||
<view class="filePickerbox" v-if="!ite.complated">
|
||||
<filePicker
|
||||
v-model="ite.files"
|
||||
:sourceType="['camera']"
|
||||
file-field-name="file"
|
||||
:extra-data="uploadParams"
|
||||
uploadUrl="/resource/oss/upload"
|
||||
@fail="onUploadFail"
|
||||
></filePicker>
|
||||
@@ -190,15 +188,16 @@ function init() {
|
||||
}
|
||||
onLoad(options => {
|
||||
taskid.value = options.id
|
||||
// taskid.value = '2044684785371725826'
|
||||
init()
|
||||
})
|
||||
|
||||
// ----------------------------------------------
|
||||
const uploadParams = ref({})
|
||||
|
||||
function onUploadFail(e) {
|
||||
console.log('上传失败', e)
|
||||
function onUploadFail() {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
title: '上传失败!'
|
||||
})
|
||||
}
|
||||
|
||||
/** 提交巡检点 检查情况 */
|
||||
@@ -246,12 +245,7 @@ const isComputed = computed(() => {
|
||||
*/
|
||||
function previewImages(images, currentIndex) {
|
||||
uni.previewImage({
|
||||
urls: [
|
||||
'https://picsum.photos/80',
|
||||
'https://picsum.photos/80',
|
||||
'https://picsum.photos/80',
|
||||
'https://picsum.photos/80'
|
||||
],
|
||||
urls: images,
|
||||
current: currentIndex
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user