Commit 639c8047 authored by zhanglongtao's avatar zhanglongtao

修改

parent b165d59f
...@@ -272,9 +272,6 @@ export default { ...@@ -272,9 +272,6 @@ export default {
Api.getentrylist(parm).then((rest) => { Api.getentrylist(parm).then((rest) => {
if (rest.success) { if (rest.success) {
this.cardMan = rest.result; this.cardMan = rest.result;
this.cardManCopy = JSON.parse(JSON.stringify(this.cardMan));
} else { } else {
console.log("获取失败。"); console.log("获取失败。");
} }
...@@ -293,7 +290,7 @@ export default { ...@@ -293,7 +290,7 @@ export default {
} }
} }
// 编辑或关闭当前编辑框 // 编辑或关闭当前编辑框
console.log(item.workHour) console.log(item.workHour);
this.maxHour = item.workHour + this.waitHours; this.maxHour = item.workHour + this.waitHours;
item.showInputWorkHour = !item.showInputWorkHour; item.showInputWorkHour = !item.showInputWorkHour;
this.$set(this.cardMan, index, item); this.$set(this.cardMan, index, item);
...@@ -330,8 +327,7 @@ export default { ...@@ -330,8 +327,7 @@ export default {
}); });
}, },
editCancel() { editCancel() {
// this.laodHorse() this.laodHorse()
this.cardMan = JSON.parse(JSON.stringify(this.cardManCopy));
}, },
cancel() { cancel() {
this.addmodal = false; this.addmodal = false;
...@@ -365,7 +361,9 @@ export default { ...@@ -365,7 +361,9 @@ export default {
}, },
// 保存 添加分配人员 // 保存 添加分配人员
addInfo(formdata) { addInfo(formdata) {
this.addmodal = false; // 修改之前未保存的编辑
Api.subupdatehours(this.cardMan);
let parme = [ let parme = [
{ {
userTitle: formdata.userName, userTitle: formdata.userName,
...@@ -384,6 +382,7 @@ export default { ...@@ -384,6 +382,7 @@ export default {
this.addmodal = true; this.addmodal = true;
} }
}); });
this.addmodal = false;
}, },
// 检验编辑内容 // 检验编辑内容
testChange(workHour) { testChange(workHour) {
......
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