|
@ -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,22 @@ 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("终止计划")
|
|
|
|
|
|
}
|
|
|
|
|
|
if (isStop == 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("终止计划")
|
|
|
|
|
|
}
|
|
|
var progressNum = Math.ceil((allFinishCount / allCount) * 100)
|
|
|
Progress(val[i].id, progressNum + "%")
|
|
|
|
|
@ -262,6 +263,9 @@ layui.use('element', function () {
|
|
|
conFirm("确定终止该计划吗", data.status, vm.isStop, vm.planid, vm.getDatas)
|
|
|
|
|
|
},
|
|
|
newRecover:function(){
|
|
|
location.href="../../recover/html/new_recover.html"
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|