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

推添加自评考核报错提醒;修改请假原因无法显示的问题

parent 9c837f17
...@@ -56,8 +56,12 @@ export default { ...@@ -56,8 +56,12 @@ export default {
// //
res.entity = this.util_toDateStr(res.entity, this.toDate); res.entity = this.util_toDateStr(res.entity, this.toDate);
this.form = Object.assign({}, this.form, res.entity); this.form = Object.assign({}, this.form, res.entity);
this.dict = Object.assign({}, this.dict, res.dict); this.dict = Object.assign({}, this.dict, res.dict);
console.log(this.form);
this.form.leaveType
? (this.form.leaveType = Number(this.form.leaveType))
: "";
this.afterRender(res); this.afterRender(res);
}) })
.catch((error) => { .catch((error) => {
...@@ -89,6 +93,9 @@ export default { ...@@ -89,6 +93,9 @@ export default {
el.validate((valid) => { el.validate((valid) => {
if (!valid) return; if (!valid) return;
this.loading = true; this.loading = true;
this.form.leaveType
? (this.form.leaveType = this.form.leaveType.toString())
: "";
this.$post(url, this.beforeSubmit(this.form)) this.$post(url, this.beforeSubmit(this.form))
.then((res) => { .then((res) => {
this.$message.success(res.msg); this.$message.success(res.msg);
......
...@@ -256,11 +256,11 @@ export default { ...@@ -256,11 +256,11 @@ export default {
this.title = "新增请假记录信息"; this.title = "新增请假记录信息";
}, },
/** 查看*/ /** 查看*/
view(row) { async view(row) {
this.reset(); this.reset();
this.query = { id: row.id }; this.query = { id: row.id };
this.urls.currUrl = "attendance/leave/record/view"; this.urls.currUrl = "attendance/leave/record/view";
this.getData(); await this.getData();
this.pageInfo.type = "view"; this.pageInfo.type = "view";
this.title = "请假记录信息详细"; this.title = "请假记录信息详细";
}, },
......
...@@ -337,18 +337,22 @@ export default { ...@@ -337,18 +337,22 @@ export default {
this.query = { id: row.id }; this.query = { id: row.id };
await this.$get("/window/workman/perform/info", { await this.$get("/window/workman/perform/info", {
id: row.recordId, id: row.recordId,
}).then((res) => { })
console.log(res); .then((res) => {
if (res.code == 1) { console.log(res);
this.form = res.data; if (res.code == 1) {
this.form.id = row.id; this.form = res.data;
this.dict = res.dict; this.form.id = row.id;
} else { this.dict = res.dict;
this.form = row; } else {
} this.form = row;
this.form.view = "修改"; }
this.open = true; this.form.view = "修改";
}); this.open = true;
})
.catch((error) => {
this.$message.error(error.message);
});
this.pageInfo.type = "edit"; this.pageInfo.type = "edit";
this.title = "市政务服务大厅窗口工作人员考核汇总表"; this.title = "市政务服务大厅窗口工作人员考核汇总表";
// await this.$get("/check/window/workman/perform/info", { // await this.$get("/check/window/workman/perform/info", {
...@@ -437,25 +441,29 @@ export default { ...@@ -437,25 +441,29 @@ export default {
this.query = { id: row.id }; this.query = { id: row.id };
await this.$get("/window/workman/perform/info", { await this.$get("/window/workman/perform/info", {
id: row.recordId, id: row.recordId,
}).then((res) => { })
if (res.code == 1) { .then((res) => {
this.form = res.data; if (res.code == 1) {
this.form.id = row.id; this.form = res.data;
this.dict = res.dict; this.form.id = row.id;
} else { this.dict = res.dict;
this.form = row; } else {
} this.form = row;
this.form.view = "查看";
this.open = true;
this.$get("/check/window/workman/perform/info", { id: row.id }).then(
(response) => {
if (response.code == 1) {
this.form = { ...this.form, ...response.data };
this.dict = { ...this.dict, ...response.dict };
}
} }
); this.form.view = "查看";
}); this.open = true;
this.$get("/check/window/workman/perform/info", { id: row.id }).then(
(response) => {
if (response.code == 1) {
this.form = { ...this.form, ...response.data };
this.dict = { ...this.dict, ...response.dict };
}
}
);
})
.catch((error) => {
this.$message.error(error.message);
});
this.pageInfo.type = "view"; this.pageInfo.type = "view";
this.title = "市政务服务大厅窗口工作人员考核汇总表"; this.title = "市政务服务大厅窗口工作人员考核汇总表";
// this.form = row; // this.form = row;
......
...@@ -337,16 +337,20 @@ export default { ...@@ -337,16 +337,20 @@ export default {
this.query = { id: row.id }; this.query = { id: row.id };
await this.$get("/window/workman/perform/info", { await this.$get("/window/workman/perform/info", {
id: row.recordId, id: row.recordId,
}).then((res) => { })
if (res.code == 1) { .then((res) => {
this.form = res.data; if (res.code == 1) {
this.dict = res.dict; this.form = res.data;
} else { this.dict = res.dict;
this.form = row; } else {
} this.form = row;
this.form.view = "修改"; }
this.open = true; this.form.view = "修改";
}); this.open = true;
})
.catch((error) => {
this.$message.error(error.message);
});
this.pageInfo.type = "edit"; this.pageInfo.type = "edit";
this.title = "市政务服务大厅窗口工作人员考核汇总表"; this.title = "市政务服务大厅窗口工作人员考核汇总表";
// await this.$get("/check/window/workman/perform/info", { // await this.$get("/check/window/workman/perform/info", {
...@@ -435,65 +439,79 @@ export default { ...@@ -435,65 +439,79 @@ export default {
this.query = { id: row.id }; this.query = { id: row.id };
await this.$get("/check/window/workman/perform/info", { await this.$get("/check/window/workman/perform/info", {
id: row.id, id: row.id,
}).then((res) => { })
if (res.code == 1) { .then((res) => {
this.form = res.data; if (res.code == 1) {
this.dict = res.dict; this.form = res.data;
} else { this.dict = res.dict;
this.form = row; } else {
} this.form = row;
for (let key in this.form) { }
key == "fillDate" for (let key in this.form) {
? (this.form[key] = timestampToTime(this.form[key], 6)) key == "fillDate"
: key == "createTime" ? (this.form[key] = timestampToTime(this.form[key], 6))
? (this.form[key] = timestampToTime(this.form[key], 6)) : key == "createTime"
: key == "deductTime" ? (this.form[key] = timestampToTime(this.form[key], 6))
? (this.form[key] = timestampToTime(this.form[key], 6)) : key == "deductTime"
: key == "updateTime" ? (this.form[key] = timestampToTime(this.form[key], 6))
? (this.form[key] = timestampToTime(this.form[key], 6)) : key == "updateTime"
: key == "checkTime" ? (this.form[key] = timestampToTime(this.form[key], 6))
? (this.form[key] = timestampToTime(this.form[key], 6)) : key == "checkTime"
: key == "reviewTime" ? (this.form[key] = timestampToTime(this.form[key], 6))
? (this.form[key] = timestampToTime(this.form[key], 6)) : key == "reviewTime"
: ""; ? (this.form[key] = timestampToTime(this.form[key], 6))
} : "";
this.$get("/window/workman/perform/detail/info", { id: row.id }).then( }
(response) => { this.$get("/window/workman/perform/detail/info", { id: row.id }).then(
if (response.code == 1) { (response) => {
this.form = { ...this.form, ...response.data }; if (response.code == 1) {
this.form = { ...this.form, ...response.data };
this.dict = { ...this.dict, ...response.dict }; this.dict = { ...this.dict, ...response.dict };
}
} }
} );
); this.$get("/window/workman/perform/info", { id: row.id }).then(
this.$get("/window/workman/perform/info", { id: row.id }).then( (responses) => {
(responses) => { if (responses.code == 1) {
if (responses.code == 1) { this.form = { ...this.form, ...responses.data };
this.form = { ...this.form, ...responses.data };
this.dict = { ...this.dict, ...responses.dict }; this.dict = { ...this.dict, ...responses.dict };
}
} }
} );
); this.tableData = [];
this.tableData = []; this.tableData.push({
this.tableData.push({ staffName: this.form["staffName"] ? this.form["staffName"] : "--",
staffName: this.form["staffName"] ? this.form["staffName"] : "--", discipline: this.form["discipline"]
discipline: this.form["discipline"] ? this.form["discipline"] : "--", ? this.form["discipline"]
specification: this.form["specification"] : "--",
? this.form["specification"] specification: this.form["specification"]
: "--", ? this.form["specification"]
management: this.form["management"] ? this.form["management"] : "--", : "--",
evaluation: this.form["evaluation"] ? this.form["evaluation"] : "--", management: this.form["management"]
efficiency: this.form["efficiency"] ? this.form["efficiency"] : "--", ? this.form["management"]
bonusScore: this.form["bonusScore"] ? this.form["bonusScore"] : "--", : "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--", evaluation: this.form["evaluation"]
examineLevel: this.form["examineLevel"] ? this.form["evaluation"]
? this.dict["examineLevel"] : "--",
: "--", efficiency: this.form["efficiency"]
? this.form["efficiency"]
: "--",
bonusScore: this.form["bonusScore"]
? this.form["bonusScore"]
: "--",
sumScore: this.form["sumScore"] ? this.form["sumScore"] : "--",
examineLevel: this.form["examineLevel"]
? this.dict["examineLevel"]
: "--",
});
this.form.view = "查看";
this.open = true;
})
.catch((error) => {
this.$message.error(error.message);
}); });
this.form.view = "查看";
this.open = true;
});
this.pageInfo.type = "view"; this.pageInfo.type = "view";
this.title = "市政务服务大厅窗口工作人员考核汇总表"; this.title = "市政务服务大厅窗口工作人员考核汇总表";
}, },
......
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