|
@@ -8,6 +8,7 @@
|
|
|
:close-on-press-escape="false"
|
|
|
append-to-body
|
|
|
@open="visibleChange"
|
|
|
+ @close="closedHandle"
|
|
|
>
|
|
|
<el-form
|
|
|
ref="modalFormComp"
|
|
@@ -109,7 +110,10 @@ export default {
|
|
|
methods: {
|
|
|
visibleChange() {
|
|
|
this.modalForm = this.$objAssign(initModalForm, this.instance);
|
|
|
- this.modalForm.scoreDetail = deepCopy(this.instance.scoreDetail);
|
|
|
+ this.modalForm.scoreDetail = deepCopy(this.instance.scoreDetail || []);
|
|
|
+ },
|
|
|
+ closedHandle() {
|
|
|
+ this.modalForm = { ...initModalForm };
|
|
|
},
|
|
|
cancel() {
|
|
|
this.modalIsShow = false;
|