Commit e793f7b6 by 杨北旺

修复bug

1 parent 370396e9
......@@ -1331,7 +1331,7 @@ export default {
}
} else if (e.attributeName === 'gearbox') {
e.optionList = this.gearboxOptions
}else if (e.attributeName==='vehicle_nature'){
} else if (e.attributeName === 'vehicle_nature') {
e.optionList = this.operationalOptions
this.$set(this.productModal[item.idName], `${e.attributeName}`, e.optionList[0].value)
}
......@@ -1912,6 +1912,7 @@ export default {
}
},
handleConfirm() {
try {
this.vaildGlassParams()
const vaidObj = this.equityRadio == 1 ? this.formatProduct : this.autoFormatProduct
const isEmptyObj = JSON.stringify(vaidObj) == '{}'
......@@ -1988,6 +1989,10 @@ export default {
})
}
})
} catch (error) {
console.log(error)
this.submit = false
}
},
handleReset() {
this.editForm = {
......@@ -2056,9 +2061,12 @@ export default {
let _code = [],
_typeCode = ['YB0001', 'YB0002', 'YB0003', 'YB0004'],
flag = false
if((!this.attachmentList || !this.attachmentList.length)&&this.attachmentListQuery.length){
if ((!this.attachmentList || !this.attachmentList.length) && this.attachmentListQuery.length) {
this.attachmentList = this.attachmentListQuery || []
}
if (!this.attachmentList) {
this.attachmentList = []
}
this.attachmentList.forEach(el => {
if (_typeCode.includes(el.attachmentCode)) {
_code.push(el.attachmentCode)
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!