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

fixed:代码优化

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