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

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

parent 65b40b58
...@@ -314,11 +314,12 @@ export default { ...@@ -314,11 +314,12 @@ export default {
this.urls.currUrl = "staff/perform/summary/edit"; this.urls.currUrl = "staff/perform/summary/edit";
this.pageInfo.type = "edit"; this.pageInfo.type = "edit";
this.title = "员工绩效统计"; this.title = "员工绩效统计";
await this.getData();
row.label && row.label != "" ? (this.form.label = row.label) : ""; row.label && row.label != "" ? (this.form.label = row.label) : "";
this.$nextTick(async () => { this.$nextTick(async () => {
if (row.label == "备注2") { if (row.label == "备注2") {
await this.$post("/perform/rules/list", { size: -1 }).then((res) => { await this.$post("/perform/rules/list", { size: -1 }).then(
async (res) => {
if (res.code == 1) { if (res.code == 1) {
this.rulesList = res.data.data; this.rulesList = res.data.data;
this.rulesList && this.rulesList.length > 0 this.rulesList && this.rulesList.length > 0
...@@ -327,9 +328,10 @@ export default { ...@@ -327,9 +328,10 @@ export default {
}) })
: ""; : "";
if ( if (
!this.form.remarkAdd || this.form.remarkAdd == undefined ||
this.form.remarkAdd == null ||
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({ this.form.remarkAdd.push({
...@@ -340,9 +342,9 @@ export default { ...@@ -340,9 +342,9 @@ export default {
this.handleBlur(); this.handleBlur();
this.$forceUpdate(); this.$forceUpdate();
} }
});
} }
await this.getData(); );
}
}); });
}, },
/** 新增 */ /** 新增 */
......
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