Commit 02789017 by zhangzhen

功能优化

parent 92b12c8d
...@@ -224,9 +224,14 @@ ...@@ -224,9 +224,14 @@
}) })
orderSave(this.formData).then(res => { orderSave(this.formData).then(res => {
if (res.data.__sys__.status === 0) { if (res.data.__sys__.status === 0) {
if (res.data.detail && this.fileList.length) { let list = toJsonData(res.data.__blocks__.result.rows, res.data.__blocks__.result.meta.columns)
this.dataInfo = res.data.detail; if (list && list.length && this.fileList.length) {
this.onFileBindByRecord(0) this.dataInfo = list[0];
if(this.dataInfo.id){
this.onFileBindByRecord(0)
} else {
this.onSaveSuccess()
}
} else { } else {
this.onSaveSuccess() this.onSaveSuccess()
} }
......
...@@ -497,6 +497,8 @@ ...@@ -497,6 +497,8 @@
this.dataInfo = list[0]; this.dataInfo = list[0];
if(this.dataInfo.id){ if(this.dataInfo.id){
this.onFileBindByRecord(0) this.onFileBindByRecord(0)
}else{
this.onSaveSuccess()
} }
}else{ }else{
this.onSaveSuccess() 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