|
|
@@ -338,6 +338,16 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
|
|
|
$modalInstance.dismiss();
|
|
|
};
|
|
|
|
|
|
+ $scope.deleteSchedule = function(scheduleId) {
|
|
|
+ Project.deleteSchedule({scheduleId: scheduleId}, {}, function() {
|
|
|
+ toaster.pop('success', '操作成功');
|
|
|
+ // 重新加载
|
|
|
+ $scope.getSchedules();
|
|
|
+ }, function() {
|
|
|
+ toaster.pop('error', '出现错误,操作失败');
|
|
|
+ });
|
|
|
+ };
|
|
|
+
|
|
|
// true通过 false驳回
|
|
|
$scope.decide = function(type) {
|
|
|
var modalInstance = $modal.open({
|