Commit 3029eabf authored by neo's avatar neo

[DEV] fixed status when change date

parent 6fd22896
......@@ -80,12 +80,18 @@ function ($scope, $rootScope, $q, $log, $timeout, $state, $translate, projectSer
else {
SweetAlert.error($translate.instant('SetProjectStatusError'));
}
}).error(function(e){
vatSessionService.project.projectStatusList[temp] = constant.ProjectStatusEnum.UnStarted;
initStatus(vatSessionService.project.id, temp);
});
}
else { //已经导入的话,更新最新项目状态
vatSessionService.project.projectStatusList[temp] = or.data.status;
initStatus( vatSessionService.project.id, temp);
}
}else{
vatSessionService.project.projectStatusList[temp] = constant.ProjectStatusEnum.UnStarted;
initStatus(vatSessionService.project.id, temp);
}
});
......@@ -676,6 +682,11 @@ function ($scope, $rootScope, $q, $log, $timeout, $state, $translate, projectSer
setLayoutStatusTitle(vatSessionService.project.projectStatusList[month]);
setStartStatusText(month);
$log.debug(vatSessionService.project.importSubStatus);
}else{
vatSessionService.project.importSubStatus = constant.ProjectStatusEnum.UnStarted;
$scope.period = vatSessionService.month;
setLayoutStatusTitle(constant.ProjectStatusEnum.UnStarted);
setStartStatusText(month);
}
});
......
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