|
|
@@ -268,18 +268,20 @@ export default {
|
|
|
this.lossService
|
|
|
.findById(id)
|
|
|
.then(data => {
|
|
|
- this.inputForm = this.recover(this.createDefaultForm(), data);
|
|
|
+ this.inputForm = this.recover(this.inputForm, data)
|
|
|
+
|
|
|
+ // this.inputForm = this.recover(this.createDefaultForm(), data);
|
|
|
this.inputForm.id = data.id;
|
|
|
this.inputForm.detailInfos = this.inputForm.detailInfos || [];
|
|
|
- this.inputForm = JSON.parse(JSON.stringify(this.inputForm));
|
|
|
|
|
|
- this.$refs.uploadComponent.newUpload(method, this.inputForm.files || [], "psi");
|
|
|
+ this.$refs.uploadComponent.newUpload(this.method ? this.method : "view", this.inputForm.files, "psi");
|
|
|
+
|
|
|
})
|
|
|
.finally(() => {
|
|
|
this.loading = false;
|
|
|
});
|
|
|
} else {
|
|
|
- this.$refs.uploadComponent.newUpload(method, [], "psi");
|
|
|
+ this.$refs.uploadComponent.newUpload(this.method ? this.method : "view", [], "psi");
|
|
|
}
|
|
|
});
|
|
|
},
|