|
@@ -732,27 +732,28 @@
|
|
confirmText: '确定',
|
|
confirmText: '确定',
|
|
success: function(res) {
|
|
success: function(res) {
|
|
if (res.confirm) {
|
|
if (res.confirm) {
|
|
|
|
+ console.log(that.OutList,that.EnterList)
|
|
that.OutList.inOutFlag = 1
|
|
that.OutList.inOutFlag = 1
|
|
that.EnterList.inOutFlag = 2
|
|
that.EnterList.inOutFlag = 2
|
|
- if (that.OutList.taskTypeKey == 1) {
|
|
|
|
- that.requestadd(that.OutList)
|
|
|
|
- } else if (that.EnterList.taskTypeKey == 2) {
|
|
|
|
- that.requestadd(that.EnterList)
|
|
|
|
- } else if (
|
|
|
|
- that.OutList.taskTypeKey == 3 ||
|
|
|
|
- that.OutList.taskTypeKey == 4
|
|
|
|
- ) {
|
|
|
|
- that.requestadd(that.OutList, 'repetition')
|
|
|
|
- if (!that.deletetask) {
|
|
|
|
- that.requestadd(that.EnterList, 'repetition')
|
|
|
|
- }
|
|
|
|
- }
|
|
|
|
- if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey == 2) {
|
|
|
|
- that.requestadd(that.retreatList)
|
|
|
|
- } else if (that.retreatList.taskTypeKey == 3 || that.retreatList.taskTypeKey ==
|
|
|
|
- 4) {
|
|
|
|
- that.requestadd(that.retreatList, 'repetition')
|
|
|
|
- }
|
|
|
|
|
|
+ // if (that.OutList.taskTypeKey == 1) {
|
|
|
|
+ // that.requestadd(that.OutList)
|
|
|
|
+ // } else if (that.EnterList.taskTypeKey == 2) {
|
|
|
|
+ // that.requestadd(that.EnterList)
|
|
|
|
+ // } else if (
|
|
|
|
+ // that.OutList.taskTypeKey == 3 ||
|
|
|
|
+ // that.OutList.taskTypeKey == 4
|
|
|
|
+ // ) {
|
|
|
|
+ // that.requestadd(that.OutList, 'repetition')
|
|
|
|
+ // if (!that.deletetask) {
|
|
|
|
+ // that.requestadd(that.EnterList, 'repetition')
|
|
|
|
+ // }
|
|
|
|
+ // }
|
|
|
|
+ // if (that.retreatList.taskTypeKey == 1 || that.retreatList.taskTypeKey == 2) {
|
|
|
|
+ // that.requestadd(that.retreatList)
|
|
|
|
+ // } else if (that.retreatList.taskTypeKey == 3 || that.retreatList.taskTypeKey ==
|
|
|
|
+ // 4) {
|
|
|
|
+ // that.requestadd(that.retreatList, 'repetition')
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
})
|
|
})
|