Browse Source

Merge branch 'master' of http://192.168.1.220:10080/raolu/PC-application

lulihong 6 years ago
parent
commit
be3b30cfa8

+ 1 - 2
app/rehabilitation/html/health_control.html

@ -17,7 +17,6 @@
    <link rel="stylesheet" href="../../../plugins/layui-v2.3.0/layui/css/layui.css">
    <link rel="stylesheet" href="../css/health_control.css">
</head>
<body>
    <div id="app" v-cloak>
        <div class="re-title no-select">
@ -72,7 +71,7 @@
                今日代办
            </label>
            <div class="neironglef">
                <button>新康复安排</button>
                <button @click="newRecover()">新康复安排</button>
                <button>模版管理</button>
            </div>
        </div>

+ 1 - 1
app/rehabilitation/html/moreplan.html

@ -36,7 +36,7 @@
                        <div class="dataatop">
                            <div class="dac flex-box">
                                <p>
                               <img src="../../../images/d-default.png" width="40" height="40" class="c-images-cycle" />
                               <img src="setImgSrc(data.patientPhoto)" width="40" height="40" class="c-images-cycle" />
                                </p>
                                <div class="xinxi">

+ 23 - 14
app/rehabilitation/js/health_control.js

@ -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"
            }
        }