Commit 639c8047 authored by zhanglongtao's avatar zhanglongtao

修改

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