随手拍增加调试
This commit is contained in:
parent
56229baa5c
commit
42bfc87215
|
|
@ -105,7 +105,7 @@
|
|||
:model="editPhotoForm"
|
||||
: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-select
|
||||
|
|
@ -118,6 +118,17 @@
|
|||
<el-option v-for="item in proOptionsList" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</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-input
|
||||
:rows="5"
|
||||
|
|
@ -187,6 +198,7 @@ export default {
|
|||
tableList: [],
|
||||
tableColumns: [
|
||||
{ label: '工程名称', prop: 'proName' },
|
||||
{ label: '拍照地点', prop: 'shootingLocation' },
|
||||
{ label: '问题描述', prop: 'description' },
|
||||
{ label: '拍摄图片', prop: 'photoNum' },
|
||||
{ label: '当前状态', prop: 'status' },
|
||||
|
|
@ -215,12 +227,14 @@ export default {
|
|||
createUserName: '',
|
||||
createUserId: '',
|
||||
status: '',
|
||||
shootingLocation: '',
|
||||
// photoNum: '',
|
||||
},
|
||||
|
||||
// 校验规则
|
||||
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' }],
|
||||
photoList: [{ required: true, message: '请上传照片', trigger: 'change' }],
|
||||
},
|
||||
|
|
@ -262,6 +276,7 @@ export default {
|
|||
this.editPhotoForm.proName = item.proName
|
||||
this.editPhotoForm.proId = item.proId
|
||||
this.editPhotoForm.description = item.description
|
||||
this.editPhotoForm.shootingLocation = item?.shootingLocation || ''
|
||||
this.editPhotoForm.id = item.id
|
||||
this.editPhotoForm.snapshotId = item.snapshotId
|
||||
this.editPhotoForm.createTime = item.createTime
|
||||
|
|
@ -346,6 +361,7 @@ export default {
|
|||
createUserId,
|
||||
status,
|
||||
proId,
|
||||
shootingLocation,
|
||||
} = this.editPhotoForm
|
||||
let photoListNew = []
|
||||
if (photoList.length > 0) {
|
||||
|
|
@ -370,6 +386,7 @@ export default {
|
|||
proId,
|
||||
pageType: 'edit',
|
||||
photoType: photoListNew,
|
||||
shootingLocation,
|
||||
}
|
||||
|
||||
console.log(params, '-----------params')
|
||||
|
|
|
|||
Loading…
Reference in New Issue