29492
This commit is contained in:
@@ -184,7 +184,8 @@
|
||||
</div>
|
||||
</div>
|
||||
<div class="upload">
|
||||
<AiUploader :def.sync="photo" multiple placeholder="上传图片" :limit="1" action="/admin/file/add2" :disabled="isEdit"/>
|
||||
<!-- :disabled="isEdit" -->
|
||||
<AiUploader :def.sync="photo" multiple placeholder="上传图片" :limit="1" action="/admin/file/add2"/>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -615,7 +616,7 @@ export default {
|
||||
this.form.photo = this.form.files[0].url
|
||||
}
|
||||
if (this.photo.length) {
|
||||
this.form.photo = this.photo[0].accessUrl
|
||||
this.form.photo = this.photo[0].url
|
||||
}
|
||||
|
||||
this.form.girdId = this.girdInfo.girdId
|
||||
@@ -636,12 +637,17 @@ export default {
|
||||
|
||||
submit() {
|
||||
|
||||
|
||||
if(!this.isEdit) {
|
||||
if (!this.form.riskType) {
|
||||
return this.$u.toast('请选择风险因素')
|
||||
}
|
||||
}
|
||||
|
||||
if (this.photo.length) {
|
||||
this.form.photo = this.photo[0].url
|
||||
}
|
||||
|
||||
this.basicsCheckList.map((item, index) => {
|
||||
if (item.checked) {
|
||||
this.basicsList.push(index)
|
||||
@@ -718,11 +724,13 @@ export default {
|
||||
...this.form,
|
||||
...res.data
|
||||
}
|
||||
this.photo = [{url: this.form.photo}]
|
||||
// this.photo = [{url: this.form.photo}]
|
||||
|
||||
if (this.form.photo) {
|
||||
this.form.files = [{url: this.form.photo}]
|
||||
this.photo = [{url: this.form.photo}] || []
|
||||
// this.form.files = [{url: this.form.photo}]
|
||||
}
|
||||
|
||||
}
|
||||
})
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user