Commit 4318dcc5 authored by 姬鋆屾's avatar 姬鋆屾

fixed:代码优化

parent f7b3bd9d
...@@ -334,11 +334,14 @@ export default { ...@@ -334,11 +334,14 @@ export default {
this.form.remarkAdd.length == 0 || this.form.remarkAdd.length == 0 ||
this.form.remarkAdd == "" this.form.remarkAdd == ""
) { ) {
this.form.remarkAdd = []; this.form.remarkAdd = [
this.form.remarkAdd.push({ {
name: "", name: "",
score: 0, score: 0,
}); },
];
console.log(this.form.remarkAdd);
this.handleBlur(); this.handleBlur();
this.$forceUpdate(); this.$forceUpdate();
} else { } else {
...@@ -374,11 +377,10 @@ export default { ...@@ -374,11 +377,10 @@ export default {
/**取消按钮 */ /**取消按钮 */
cancel() { cancel() {
this.open = false; this.open = false;
this.reset();
}, },
/**获取数据后弹框 */ /**获取数据后弹框 */
afterRender(data) { afterRender(data) {
console.log(456);
this.open = true; this.open = true;
}, },
...@@ -405,7 +407,7 @@ export default { ...@@ -405,7 +407,7 @@ export default {
remark: "", remark: "",
year: null, year: null,
month: null, month: null,
remarkAdd: [], remarkAdd: "[]",
addTotalScore: 0, addTotalScore: 0,
}; };
this.resetForm("form"); this.resetForm("form");
......
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