Commit f7b3bd9d authored by 姬鋆屾's avatar 姬鋆屾

fixed:修改备注2为空字符串得问题

parent e33b2e26
...@@ -85,7 +85,7 @@ export default { ...@@ -85,7 +85,7 @@ export default {
data.remark == "迟到:0 次,\n早退:0 次,\n缺卡:0 次,\n请假:0 次" data.remark == "迟到:0 次,\n早退:0 次,\n缺卡:0 次,\n请假:0 次"
? (data.remark = "") ? (data.remark = "")
: ""; : "";
data.remarkAdd == "[]" ? (data.remarkAdd = null) : ""; data.remarkAdd == "[]" ? (data.remarkAddDesc = "") : "";
console.log(data); console.log(data);
return data; return data;
......
...@@ -328,6 +328,7 @@ export default { ...@@ -328,6 +328,7 @@ export default {
}) })
: ""; : "";
if ( if (
this.form.remarkAdd === "[]" ||
this.form.remarkAdd == undefined || this.form.remarkAdd == undefined ||
this.form.remarkAdd == null || this.form.remarkAdd == null ||
this.form.remarkAdd.length == 0 || this.form.remarkAdd.length == 0 ||
...@@ -338,9 +339,12 @@ export default { ...@@ -338,9 +339,12 @@ export default {
name: "", name: "",
score: 0, score: 0,
}); });
}
this.handleBlur(); this.handleBlur();
this.$forceUpdate(); this.$forceUpdate();
} else {
this.handleBlur();
this.$forceUpdate();
}
} }
} }
); );
...@@ -373,6 +377,8 @@ export default { ...@@ -373,6 +377,8 @@ export default {
}, },
/**获取数据后弹框 */ /**获取数据后弹框 */
afterRender(data) { afterRender(data) {
console.log(456);
this.open = true; this.open = true;
}, },
......
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