随手拍增加调试

This commit is contained in:
BianLzhaoMin 2025-06-25 10:14:08 +08:00
parent 56229baa5c
commit 42bfc87215
1 changed files with 19 additions and 2 deletions

View File

@ -105,7 +105,7 @@
:model="editPhotoForm" :model="editPhotoForm"
:rules="editPhotoFormRules" :rules="editPhotoFormRules"
> >
<el-form-item label="工程名称" prop="proId"> <el-form-item label="工程名称">
<!-- <el-input v-model="editPhotoForm.proName" placeholder="请输入工程名称" maxlength="30" show-word-limit /> --> <!-- <el-input v-model="editPhotoForm.proName" placeholder="请输入工程名称" maxlength="30" show-word-limit /> -->
<el-select <el-select
@ -118,6 +118,17 @@
<el-option v-for="item in proOptionsList" :key="item.value" :label="item.label" :value="item.value" /> <el-option v-for="item in proOptionsList" :key="item.value" :label="item.label" :value="item.value" />
</el-select> </el-select>
</el-form-item> </el-form-item>
<el-form-item label="拍照地点" prop="shootingLocation">
<el-input
:rows="5"
type="textarea"
placeholder="请输入拍照地点"
maxlength="200"
show-word-limit
v-model="editPhotoForm.shootingLocation"
:autosize="{ minRows: 2, maxRows: 6 }"
/>
</el-form-item>
<el-form-item label="问题描述" prop="description"> <el-form-item label="问题描述" prop="description">
<el-input <el-input
:rows="5" :rows="5"
@ -187,6 +198,7 @@ export default {
tableList: [], tableList: [],
tableColumns: [ tableColumns: [
{ label: '工程名称', prop: 'proName' }, { label: '工程名称', prop: 'proName' },
{ label: '拍照地点', prop: 'shootingLocation' },
{ label: '问题描述', prop: 'description' }, { label: '问题描述', prop: 'description' },
{ label: '拍摄图片', prop: 'photoNum' }, { label: '拍摄图片', prop: 'photoNum' },
{ label: '当前状态', prop: 'status' }, { label: '当前状态', prop: 'status' },
@ -215,12 +227,14 @@ export default {
createUserName: '', createUserName: '',
createUserId: '', createUserId: '',
status: '', status: '',
shootingLocation: '',
// photoNum: '', // photoNum: '',
}, },
// //
editPhotoFormRules: { editPhotoFormRules: {
proId: [{ required: true, message: '请选择工程名称', trigger: 'change' }], // proId: [{ required: true, message: '', trigger: 'change' }],
shootingLocation: [{ required: true, message: '请输入拍照地点', trigger: 'blur' }],
description: [{ required: true, message: '请输入问题描述', trigger: 'blur' }], description: [{ required: true, message: '请输入问题描述', trigger: 'blur' }],
photoList: [{ required: true, message: '请上传照片', trigger: 'change' }], photoList: [{ required: true, message: '请上传照片', trigger: 'change' }],
}, },
@ -262,6 +276,7 @@ export default {
this.editPhotoForm.proName = item.proName this.editPhotoForm.proName = item.proName
this.editPhotoForm.proId = item.proId this.editPhotoForm.proId = item.proId
this.editPhotoForm.description = item.description this.editPhotoForm.description = item.description
this.editPhotoForm.shootingLocation = item?.shootingLocation || ''
this.editPhotoForm.id = item.id this.editPhotoForm.id = item.id
this.editPhotoForm.snapshotId = item.snapshotId this.editPhotoForm.snapshotId = item.snapshotId
this.editPhotoForm.createTime = item.createTime this.editPhotoForm.createTime = item.createTime
@ -346,6 +361,7 @@ export default {
createUserId, createUserId,
status, status,
proId, proId,
shootingLocation,
} = this.editPhotoForm } = this.editPhotoForm
let photoListNew = [] let photoListNew = []
if (photoList.length > 0) { if (photoList.length > 0) {
@ -370,6 +386,7 @@ export default {
proId, proId,
pageType: 'edit', pageType: 'edit',
photoType: photoListNew, photoType: photoListNew,
shootingLocation,
} }
console.log(params, '-----------params') console.log(params, '-----------params')