Commit dce0dfbf by 杨北旺

修复bug

1 parent bdf44421
...@@ -710,11 +710,11 @@ export default { ...@@ -710,11 +710,11 @@ export default {
operationalOptions: [ operationalOptions: [
{ {
label: '非营运', label: '非营运',
value: '1', value: '1'
}, },
{ {
label: '营运', label: '营运',
value: '0', value: '0'
} }
] ]
} }
...@@ -1921,6 +1921,7 @@ export default { ...@@ -1921,6 +1921,7 @@ export default {
} }
}, },
handleConfirm() { handleConfirm() {
try {
this.vaildGlassParams() this.vaildGlassParams()
const vaidObj = this.equityRadio == 1 ? this.formatProduct : this.autoFormatProduct const vaidObj = this.equityRadio == 1 ? this.formatProduct : this.autoFormatProduct
const isEmptyObj = JSON.stringify(vaidObj) == '{}' const isEmptyObj = JSON.stringify(vaidObj) == '{}'
...@@ -1997,6 +1998,10 @@ export default { ...@@ -1997,6 +1998,10 @@ export default {
}) })
} }
}) })
} catch (error) {
console.log(error);
this.submit = false
}
}, },
handleReset() { handleReset() {
this.editForm = { this.editForm = {
...@@ -2076,6 +2081,9 @@ export default { ...@@ -2076,6 +2081,9 @@ export default {
if ((!this.attachmentList || !this.attachmentList.length) && this.attachmentListQuery.length) { if ((!this.attachmentList || !this.attachmentList.length) && this.attachmentListQuery.length) {
this.attachmentList = this.attachmentListQuery || [] this.attachmentList = this.attachmentListQuery || []
} }
if(!this.attachmentList){
this.attachmentList = []
}
this.attachmentList.forEach(el => { this.attachmentList.forEach(el => {
if (_typeCode.includes(el.attachmentCode)) { if (_typeCode.includes(el.attachmentCode)) {
_code.push(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!