部分样式,图片上传,
This commit is contained in:
@@ -68,14 +68,14 @@
|
||||
</view>
|
||||
<view class="items_picker_box">
|
||||
<view class="label">
|
||||
<text v-if="info.inspectSetting === 1" class="is-required">*</text>
|
||||
<text class="is-required">*</text>
|
||||
<text>巡检照片</text>
|
||||
</view>
|
||||
<view class="filePickerbox" v-if="!ite.complated">
|
||||
<filePicker
|
||||
v-model="ite.files"
|
||||
file-field-name="file"
|
||||
uploadUrl="/resource/oss/upload"
|
||||
uploadUrl="/api/butler/file/uploadImage"
|
||||
@fail="onUploadFail"
|
||||
></filePicker>
|
||||
</view>
|
||||
@@ -106,9 +106,8 @@
|
||||
<script setup>
|
||||
import { computed, ref } from 'vue'
|
||||
import filePicker from '@/components/filePicker/filePicker.vue'
|
||||
import { getInspectionMain } from '@/api/insepction.js'
|
||||
import { getInspectionMain, putInsepctionPoint } from '@/api/insepction.js'
|
||||
import { onLoad } from '@dcloudio/uni-app'
|
||||
import { putInsepctionPoint } from '@/api/insepction.js'
|
||||
|
||||
const statuslist = [
|
||||
{
|
||||
@@ -202,15 +201,13 @@ function onUploadFail() {
|
||||
|
||||
/** 提交巡检点 检查情况 */
|
||||
function handleSubmit(item) {
|
||||
if (info.value.inspectSetting === 1) {
|
||||
if (item.files.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
mask: true,
|
||||
title: '必须拍照'
|
||||
})
|
||||
return
|
||||
}
|
||||
if (item.files.length <= 0) {
|
||||
uni.showToast({
|
||||
icon: 'error',
|
||||
mask: true,
|
||||
title: '必须拍照'
|
||||
})
|
||||
return
|
||||
}
|
||||
let obj = {
|
||||
pointId: item.pointId,
|
||||
@@ -271,14 +268,14 @@ function previewImages(images, currentIndex) {
|
||||
.inspection_title {
|
||||
margin-bottom: 20rpx;
|
||||
.title {
|
||||
font-size: 32rpx;
|
||||
font-size: 30rpx;
|
||||
color: #333333;
|
||||
line-height: 40rpx;
|
||||
height: 40rpx;
|
||||
min-height: 40rpx;
|
||||
text-wrap: wrap;
|
||||
.line {
|
||||
display: block;
|
||||
width: 6rpx;
|
||||
height: 28rpx;
|
||||
background: #4d5dfa;
|
||||
margin-right: 10rpx;
|
||||
margin-top: 6rpx;
|
||||
@@ -288,6 +285,7 @@ function previewImages(images, currentIndex) {
|
||||
font-weight: 400;
|
||||
font-size: 28rpx;
|
||||
color: #4d5dfa;
|
||||
width: 100rpx;
|
||||
line-height: 36rpx;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user