修改接车图片不必传
This commit is contained in:
parent
496a527ec1
commit
cd7cc4ebc5
@ -492,15 +492,21 @@ export default {
|
|||||||
if (count > 0){
|
if (count > 0){
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if (!this.formData.image){
|
if (this.formData.image){
|
||||||
this.$modal.msgError("接车图片不能为空")
|
|
||||||
return
|
|
||||||
}else{
|
|
||||||
const data = this.formData.image.split(",")
|
const data = this.formData.image.split(",")
|
||||||
this.formData.image = data.map(item => {
|
this.formData.image = data.map(item => {
|
||||||
return item.replace(process.env.VUE_APP_FILE_API, "")
|
return item.replace(process.env.VUE_APP_FILE_API, "")
|
||||||
}).join(",")
|
}).join(",")
|
||||||
}
|
}
|
||||||
|
// if (!this.formData.image){
|
||||||
|
// this.$modal.msgError("接车图片不能为空")
|
||||||
|
// return
|
||||||
|
// }else{
|
||||||
|
// const data = this.formData.image.split(",")
|
||||||
|
// this.formData.image = data.map(item => {
|
||||||
|
// return item.replace(process.env.VUE_APP_FILE_API, "")
|
||||||
|
// }).join(",")
|
||||||
|
// }
|
||||||
await createTickets(this.formData)
|
await createTickets(this.formData)
|
||||||
this.$modal.msgSuccess("新增成功")
|
this.$modal.msgSuccess("新增成功")
|
||||||
this.init()
|
this.init()
|
||||||
|
Loading…
Reference in New Issue
Block a user