|
|
@@ -767,8 +767,8 @@
|
|
|
this.$refs.formRef.validate((valid) => {
|
|
|
if (!valid) return false;
|
|
|
let data = JSON.parse(JSON.stringify(this.form));
|
|
|
- let procedureJson = this.$refs.experimentationProcess1.getValue();
|
|
|
- let recordJson = this.$refs.experimentationProcess2.getValue();
|
|
|
+ let procedureJson = this.$refs.experimentationProcess1?.getValue();
|
|
|
+ let recordJson = this.$refs.experimentationProcess2?.getValue();
|
|
|
if (procedureJson) {
|
|
|
data.procedureJson = {
|
|
|
tempJson: JSON.stringify(procedureJson)
|
|
|
@@ -782,6 +782,7 @@
|
|
|
let row = JSON.parse(JSON.stringify(this.tableData[0]));
|
|
|
if (!this.pageName) {
|
|
|
row.experiment = data;
|
|
|
+ row.qualityResults = this.form.results;
|
|
|
this.$emit('done', row);
|
|
|
this.handleClose();
|
|
|
|
|
|
@@ -806,8 +807,8 @@
|
|
|
...defForm
|
|
|
};
|
|
|
this.$nextTick(() => {
|
|
|
- this.$refs.experimentationProcess1.init('{}');
|
|
|
- this.$refs.experimentationProcess2.init('{}');
|
|
|
+ this.$refs.experimentationProcess1.init('[]');
|
|
|
+ this.$refs.experimentationProcess2.init('[]');
|
|
|
this.visible = false;
|
|
|
});
|
|
|
}
|