|
@ -32,7 +32,7 @@ layui.use('element', function () {
|
|
|
$("#stopBtn_"+planid).html("终止计划")
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
var params = {
|
|
|
status: isStop,
|
|
@ -44,6 +44,8 @@ layui.use('element', function () {
|
|
|
getDat()
|
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
layer.close(index);
|
|
|
});
|
|
|
}
|
|
@ -87,6 +89,7 @@ layui.use('element', function () {
|
|
|
var allCount = val[i].allCount
|
|
|
var isStop = val[i].status
|
|
|
var ishospitalName = val[i].hospitalName
|
|
|
|
|
|
if(ishospitalName==null){
|
|
|
$("#hospitalName_"+val[i].id).html("暂无社区信息")
|
|
|
}
|
|
@ -175,10 +178,25 @@ layui.use('element', function () {
|
|
|
if (vm.tablelist.length == 0) {
|
|
|
vm.wujilu = true
|
|
|
}
|
|
|
healthAPI.doctorBaseinfo().then(function (res) {
|
|
|
var vm=this
|
|
|
console.log(res.data)
|
|
|
vm.isLeader=res.data.isLeader
|
|
|
console.log( vm.isLeader)
|
|
|
if( vm.isLeader==0){
|
|
|
console.log( $(".ii"))
|
|
|
$(".ii").attr('disabled', 'true')
|
|
|
$(".ii").css("pointer-events","none");
|
|
|
$(".ii").css("color","#999999")
|
|
|
|
|
|
|
|
|
}
|
|
|
})
|
|
|
} else {
|
|
|
// showErrorMessage(res.msg);
|
|
|
}
|
|
|
})
|
|
|
|
|
|
|
|
|
},
|
|
|
stop: function (data) {
|
|
@ -186,12 +204,16 @@ layui.use('element', function () {
|
|
|
vm.planid = data.planId
|
|
|
console.log(data.planId)
|
|
|
conFirm("确定终止该计划吗", data.status, vm.isStop, vm.planid, vm.getDatas)
|
|
|
|
|
|
console.log(vm.isStop)
|
|
|
|
|
|
},
|
|
|
noOpen: function () {
|
|
|
showInfoMessage("暂未开放")
|
|
|
},
|
|
|
checkPatient:function(){
|
|
|
var vm=this
|
|
|
location.href = "../../temporary/html/userInfo.html?patient=" + vm.paticentcode
|
|
|
|
|
|
}
|
|
|
}
|
|
|
})
|