Commit 02789017 by zhangzhen

功能优化

parent 92b12c8d
......@@ -224,9 +224,14 @@
})
orderSave(this.formData).then(res => {
if (res.data.__sys__.status === 0) {
if (res.data.detail && this.fileList.length) {
this.dataInfo = res.data.detail;
this.onFileBindByRecord(0)
let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns)
if (list && list.length && this.fileList.length) {
this.dataInfo = list[0];
if(this.dataInfo.id){
this.onFileBindByRecord(0)
} else {
this.onSaveSuccess()
}
} else {
this.onSaveSuccess()
}
......
......@@ -497,6 +497,8 @@
this.dataInfo = list[0];
if(this.dataInfo.id){
this.onFileBindByRecord(0)
}else{
this.onSaveSuccess()
}
}else{
this.onSaveSuccess()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment