|
@ -112,6 +112,7 @@
|
|
|
.time-axis tr:hover{background-color: #f5f5fa;}
|
|
|
.time-axis tr:hover p{color: #333333;}
|
|
|
[is-future="1"] .cur-status,[is-future="2"] .cur-status{background-color: #12b7f5;}
|
|
|
[is-future="-1"] .cur-status{background-color: #ff3b30;}
|
|
|
[is-future="3"] .cur-status{background-color: #5cb85c;}
|
|
|
.time-box:after{content: '';position: absolute;right: 0;z-index: 2;right: 19px;height: 100%;width: 1px;background-color: #d7dce6;top: 50%;}
|
|
|
.time-axis tr:nth-last-of-type(1) .time-box:after{display: none;}
|
|
@ -204,7 +205,7 @@
|
|
|
<span>{{(item.family && item.family.finish)+'/'+(item.family && item.family.all)}}</span>
|
|
|
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="2" aria-valuemin="0" aria-valuemax="100" :style="{width: (item.family?(item.family.finish/item.family.all):0)*100+'%'}"></div>
|
|
|
</div>
|
|
|
<p v-if="!item.noService" class="mb0 f12" :class="{'visibility-hide':!curTask}" style="line-height: 1;">{{curTask==1?'我的任务':(curTask==2?'随访':(curTask==3?'复诊':(curTask==4?'健康教育':' ')))}}</p>
|
|
|
<p v-if="!item.noService" class="mb0 f12" :class="{'visibility-hide':!curTask}" style="line-height: 1;">{{curTask==1?'我的任务':(curTask==2?'健康教育':(curTask==3?'复诊':(curTask==4?'随访':' ')))}}</p>
|
|
|
</div>
|
|
|
<p v-if="item.noService" class="no-server">无服务项</p>
|
|
|
</div>
|
|
@ -273,7 +274,7 @@
|
|
|
taskArr:[
|
|
|
{code:1,name:'我的任务'},
|
|
|
{code:2,name:'健康教育'},
|
|
|
{code:3,name:'健康指导'},
|
|
|
{code:3,name:'复诊'},
|
|
|
{code:4,name:'随访'},
|
|
|
],
|
|
|
statusArr:[
|
|
@ -287,7 +288,7 @@
|
|
|
mounted:function(){
|
|
|
this.tabStatus=1;
|
|
|
if(!this.planId){
|
|
|
layer.msg('为传入计划id(planId)',{icon:5})
|
|
|
layer.msg('未传入计划id(planId)',{icon:5})
|
|
|
}
|
|
|
},
|
|
|
methods:{
|
|
@ -504,7 +505,9 @@
|
|
|
var _time=o.executeTime.split(' ');
|
|
|
var thatTime=+new Date(_time[0]);
|
|
|
var future=_currentTimeStamp>thatTime?0:(_currentTimeStamp==thatTime?1:2);
|
|
|
var _html=o.status==2?'预':'';
|
|
|
(o.status==0 && _currentTimeStamp>thatTime) && (future=-1)
|
|
|
console.log(future)
|
|
|
var _html=o.status==2?'预':(future==-1?'逾':'');
|
|
|
_html=future==1?'今':_html;
|
|
|
if(_html=='预') future=3;
|
|
|
o.html=_html
|