Commit de222313 authored by 周远喜's avatar 周远喜

ok

parent 85ee3070
...@@ -171,7 +171,7 @@ export default { ...@@ -171,7 +171,7 @@ export default {
}); });
}, },
updatepart() { updatepart() {
if (this.status != this.entity.status) { if (this.status != this.entity.status) {
let params = { let params = {
id: this.eid, id: this.eid,
status: this.status, status: this.status,
...@@ -185,15 +185,14 @@ export default { ...@@ -185,15 +185,14 @@ export default {
} }
}); });
} }
ApiRecord.create(this.entitysave) ApiRecord.create(this.entitysave).then((res) => {
.then((res) => { if (res.success) {
if (res.success) { this.$Message.success("工时汇报成功");
this.$Message.success("工时汇报成功"); this.$emit("on-ok");
this.$emit("on-ok"); } else {
} else { this.$Message.error("保存失败");
this.$Message.error("保存失败"); }
} });
})
}, },
handleClose() { handleClose() {
this.$emit("on-close"); this.$emit("on-close");
......
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