|
@@ -81,9 +81,9 @@ app.controller('inspectPlanCtrl', ["$rootScope", "$scope", "$state", "$timeout",
|
81
|
81
|
};
|
82
|
82
|
|
83
|
83
|
$scope.transfer = function (status) {
|
84
|
|
- if (status === "正常") {
|
|
84
|
+ if (status === "执行中") {
|
85
|
85
|
return "执行中"
|
86
|
|
- } else if (status === "停止") {
|
|
86
|
+ } else if (status === "暂停中") {
|
87
|
87
|
return "暂停中"
|
88
|
88
|
}
|
89
|
89
|
}
|
|
@@ -176,10 +176,10 @@ app.controller('inspectPlanCtrl', ["$rootScope", "$scope", "$state", "$timeout",
|
176
|
176
|
cellTemplate: '<div class="cl-effect-1 ui-grid-cell-contents pull-left">' +
|
177
|
177
|
// '<a ng-click="grid.appScope.selectRowFunction(row.entity)" tooltip="编辑" tooltip-placement="right"><i class="icon iconfont icon-bianji bianjifont"></i></a>' +
|
178
|
178
|
'<a ng-click="grid.appScope.seeFunction(row.entity)" class="bianjifont">查看</a>' +
|
179
|
|
- '<a ng-click="grid.appScope.selectRowFunction(row.entity)" ng-show="{{(row.entity.status.name==\'配置中\'||row.entity.status.name==\'正常\'||row.entity.status.name==\'停止\')&&grid.appScope.bianji}}" class="bianjifont">编辑</a>' +
|
|
179
|
+ '<a ng-click="grid.appScope.selectRowFunction(row.entity)" ng-show="{{(row.entity.status.name==\'配置中\'||row.entity.status.name==\'执行中\'||row.entity.status.name==\'暂停中\')&&grid.appScope.bianji}}" class="bianjifont">编辑</a>' +
|
180
|
180
|
// '<a ng-click="grid.appScope.runFunction(row.entity)" tooltip={{row.entity.runStatus}} tooltip-placement="left"><i class={{row.entity.style}}/></a>' +
|
181
|
|
- '<a ng-click="grid.appScope.runFunction(row.entity)" ng-show="{{row.entity.status.name==\'正常\'&&grid.appScope.zantingzhixing}}" class="bianjifont">执行中</a>' +
|
182
|
|
- '<a ng-click="grid.appScope.runFunction(row.entity)" ng-show="{{row.entity.status.name==\'停止\'&&grid.appScope.zantingzhixing}}" class="bianjifont">暂停中</a>' +
|
|
181
|
+ '<a ng-click="grid.appScope.runFunction(row.entity)" ng-show="{{row.entity.status.name==\'执行中\'&&grid.appScope.zantingzhixing}}" class="bianjifont">暂停计划</a>' +
|
|
182
|
+ '<a ng-click="grid.appScope.runFunction(row.entity)" ng-show="{{row.entity.status.name==\'暂停中\'&&grid.appScope.zantingzhixing}}" class="bianjifont">继续执行</a>' +
|
183
|
183
|
'</div>'
|
184
|
184
|
},
|
185
|
185
|
// { name: 'planTime2', displayName: '截止时间', width: 160, enableFiltering: false },
|
|
@@ -269,11 +269,11 @@ app.controller('inspectPlanCtrl', ["$rootScope", "$scope", "$state", "$timeout",
|
269
|
269
|
controller: function ($scope, $modalInstance) {
|
270
|
270
|
$scope.isRunFunction = true;
|
271
|
271
|
var status = "";
|
272
|
|
- if (data.status.name == "正常") {
|
|
272
|
+ if (data.status.name == "执行中") {
|
273
|
273
|
$scope.title = '暂停巡检计划';
|
274
|
274
|
$scope.connect = '确定要暂停该巡检计划?';
|
275
|
275
|
// $scope.textLog = "是否暂停该巡检计划";
|
276
|
|
- } else if (data.status.name == "停止") {
|
|
276
|
+ } else if (data.status.name == "暂停中") {
|
277
|
277
|
$scope.title = '开始巡检计划';
|
278
|
278
|
$scope.connect = '确定要开始该巡检计划?';
|
279
|
279
|
// $scope.textLog = "是否开始该巡检计划";
|
|
@@ -282,11 +282,11 @@ app.controller('inspectPlanCtrl', ["$rootScope", "$scope", "$state", "$timeout",
|
282
|
282
|
$scope.ok = function () {
|
283
|
283
|
// var groupdata = "123";
|
284
|
284
|
// $modalInstance.dismiss('cancel');
|
285
|
|
- if (data.status.name == "正常") {
|
286
|
|
- upData.status = "停止";
|
|
285
|
+ if (data.status.name == "执行中") {
|
|
286
|
+ upData.status = "暂停中";
|
287
|
287
|
// data.style = "fa fa-pause";
|
288
|
|
- } else if (data.status.name == "停止") {
|
289
|
|
- upData.status = "正常";
|
|
288
|
+ } else if (data.status.name == "暂停中") {
|
|
289
|
+ upData.status = "执行中";
|
290
|
290
|
// data.style = "fa fa-play";
|
291
|
291
|
}
|
292
|
292
|
|
|
@@ -304,7 +304,7 @@ app.controller('inspectPlanCtrl', ["$rootScope", "$scope", "$state", "$timeout",
|
304
|
304
|
|
305
|
305
|
modalInstance.result.then(function (result) {
|
306
|
306
|
if (result) {
|
307
|
|
- // if(result.status=="停止"){
|
|
307
|
+ // if(result.status=="暂停中"){
|
308
|
308
|
// result.status={"id":$scope.statusData[1].id}
|
309
|
309
|
// }else{
|
310
|
310
|
// result.status={"id":$scope.statusData[2].id}
|
|
@@ -617,9 +617,9 @@ app.controller('inspectPlanCtrl', ["$rootScope", "$scope", "$state", "$timeout",
|
617
|
617
|
}
|
618
|
618
|
console.log($scope.myData)
|
619
|
619
|
for (var i = 0; i < $scope.myData.length; i++) {
|
620
|
|
- if ($scope.myData[i].status == "正常") {
|
|
620
|
+ if ($scope.myData[i].status == "执行中") {
|
621
|
621
|
$scope.myData[i].style = "fa fa-play";
|
622
|
|
- } else if ($scope.myData[i].status == "停止") {
|
|
622
|
+ } else if ($scope.myData[i].status == "暂停中") {
|
623
|
623
|
$scope.myData[i].style = "fa fa-pause";
|
624
|
624
|
};
|
625
|
625
|
$scope.myData[i].runStatus = $scope.transfer($scope.myData[i].status);
|
|
@@ -662,9 +662,9 @@ app.controller('inspectPlanCtrl', ["$rootScope", "$scope", "$state", "$timeout",
|
662
|
662
|
}
|
663
|
663
|
console.log($scope.myData)
|
664
|
664
|
for (var i = 0; i < $scope.myData.length; i++) {
|
665
|
|
- if ($scope.myData[i].status == "正常") {
|
|
665
|
+ if ($scope.myData[i].status == "执行中") {
|
666
|
666
|
$scope.myData[i].style = "fa fa-play";
|
667
|
|
- } else if ($scope.myData[i].status == "停止") {
|
|
667
|
+ } else if ($scope.myData[i].status == "暂停中") {
|
668
|
668
|
$scope.myData[i].style = "fa fa-pause";
|
669
|
669
|
};
|
670
|
670
|
$scope.myData[i].runStatus = $scope.transfer($scope.myData[i].status);
|