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

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

parent 65b40b58
......@@ -314,35 +314,37 @@ export default {
this.urls.currUrl = "staff/perform/summary/edit";
this.pageInfo.type = "edit";
this.title = "员工绩效统计";
await this.getData();
row.label && row.label != "" ? (this.form.label = row.label) : "";
this.$nextTick(async () => {
if (row.label == "备注2") {
await this.$post("/perform/rules/list", { size: -1 }).then((res) => {
if (res.code == 1) {
this.rulesList = res.data.data;
this.rulesList && this.rulesList.length > 0
? this.rulesList.forEach((v) => {
v.value = v.name + "--" + v.content;
})
: "";
if (
!this.form.remarkAdd ||
this.form.remarkAdd.length == 0 ||
this.form.remarkAdd != ""
) {
this.form.remarkAdd = [];
this.form.remarkAdd.push({
name: "",
score: 0,
});
await this.$post("/perform/rules/list", { size: -1 }).then(
async (res) => {
if (res.code == 1) {
this.rulesList = res.data.data;
this.rulesList && this.rulesList.length > 0
? this.rulesList.forEach((v) => {
v.value = v.name + "--" + v.content;
})
: "";
if (
this.form.remarkAdd == undefined ||
this.form.remarkAdd == null ||
this.form.remarkAdd.length == 0 ||
this.form.remarkAdd == ""
) {
this.form.remarkAdd = [];
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