|  | @ -25,10 +25,13 @@ layui.use('element', function () {
 | 
	
		
			
				|  |  |             } else {
 | 
	
		
			
				|  |  |                 isStop = num == 0 ? 1 : 0
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  |           
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             var params = {
 | 
	
		
			
				|  |  |                 status: isStop,
 | 
	
		
			
				|  |  |                 planId: planid
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             healthAPI.updatePlanStatusById(params).then(function (res) {
 | 
	
		
			
				|  |  |                 if (res.status == 200) {
 | 
	
		
			
				|  |  |                     getDat()
 | 
	
	
		
			
				|  | @ -78,24 +81,11 @@ layui.use('element', function () {
 | 
	
		
			
				|  |  |                         var allFinishCount = val[i].allFinishCount
 | 
	
		
			
				|  |  |                         var allCount = val[i].allCount
 | 
	
		
			
				|  |  |                         var isStop = val[i].status
 | 
	
		
			
				|  |  |                         var isname = val[i].name
 | 
	
		
			
				|  |  |                         var ishospitalName=val[i].hospitalName
 | 
	
		
			
				|  |  |                         if(ishospitalName==null){
 | 
	
		
			
				|  |  |                             
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  |                         if (isStop == 0) {
 | 
	
		
			
				|  |  |                             $(".layui-progress-bar").css({
 | 
	
		
			
				|  |  |                                 "background-color": "gray"
 | 
	
		
			
				|  |  |                             })
 | 
	
		
			
				|  |  |                             $("#button_id").html("激活计划")
 | 
	
		
			
				|  |  |                         } else {
 | 
	
		
			
				|  |  |                             $(".layui-progress-bar").css({
 | 
	
		
			
				|  |  |                                 "background-color": "#ff9526"
 | 
	
		
			
				|  |  |                             })
 | 
	
		
			
				|  |  |                             $("#button_id").html("终止计划")
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                         }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |                        
 | 
	
		
			
				|  |  |                         var progressNum = Math.ceil((allFinishCount / allCount) * 100)
 | 
	
		
			
				|  |  |                         Progress(val[i].id, progressNum + "%")
 | 
	
		
			
				|  |  | 
 | 
	
	
		
			
				|  | @ -260,8 +250,27 @@ layui.use('element', function () {
 | 
	
		
			
				|  |  |                 var vm = this
 | 
	
		
			
				|  |  |                 vm.planid = data.id
 | 
	
		
			
				|  |  |                 conFirm("确定终止该计划吗", data.status, vm.isStop, vm.planid, vm.getDatas)
 | 
	
		
			
				|  |  |                 for(var i=0;i<data.length;i++){
 | 
	
		
			
				|  |  |                     
 | 
	
		
			
				|  |  |                     if (data.status == 0) {
 | 
	
		
			
				|  |  |                         $( $(".layui-progress-bar")[i]).css({
 | 
	
		
			
				|  |  |                              "background-color": "gray"
 | 
	
		
			
				|  |  |                          })
 | 
	
		
			
				|  |  |                         $($("#button_id")[i]).html("激活计划")
 | 
	
		
			
				|  |  |                      } else {
 | 
	
		
			
				|  |  |                          $($(".layui-progress-bar")[i]).css({
 | 
	
		
			
				|  |  |                              "background-color": "#ff9526"
 | 
	
		
			
				|  |  |                          })
 | 
	
		
			
				|  |  |                          $($("#button_id")[i]).html("终止计划")
 | 
	
		
			
				|  |  |         
 | 
	
		
			
				|  |  |                      }
 | 
	
		
			
				|  |  |                 }
 | 
	
		
			
				|  |  |                
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |             },
 | 
	
		
			
				|  |  |             newRecover:function(){
 | 
	
		
			
				|  |  |                 location.href="../../recover/html/new_recover.html"
 | 
	
		
			
				|  |  |             }
 | 
	
		
			
				|  |  | 
 | 
	
		
			
				|  |  |         }
 | 
	
		
			
				|  |  | 
 |