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

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

parent 65b40b58
...@@ -314,35 +314,37 @@ export default { ...@@ -314,35 +314,37 @@ 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(
if (res.code == 1) { async (res) => {
this.rulesList = res.data.data; if (res.code == 1) {
this.rulesList && this.rulesList.length > 0 this.rulesList = res.data.data;
? this.rulesList.forEach((v) => { this.rulesList && this.rulesList.length > 0
v.value = v.name + "--" + v.content; ? this.rulesList.forEach((v) => {
}) v.value = v.name + "--" + v.content;
: ""; })
if ( : "";
!this.form.remarkAdd || if (
this.form.remarkAdd.length == 0 || this.form.remarkAdd == undefined ||
this.form.remarkAdd != "" this.form.remarkAdd == null ||
) { this.form.remarkAdd.length == 0 ||
this.form.remarkAdd = []; this.form.remarkAdd == ""
this.form.remarkAdd.push({ ) {
name: "", this.form.remarkAdd = [];
score: 0, this.form.remarkAdd.push({
}); name: "",
score: 0,
});
}
this.handleBlur();
this.$forceUpdate();
} }
this.handleBlur();
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