|
@ -88,7 +88,7 @@
|
|
|
</p>
|
|
|
</div>
|
|
|
</li>
|
|
|
<li v-if="!denizenList.length">暂无居民信息</li>
|
|
|
<li v-else>暂无居民信息</li>
|
|
|
</ul>
|
|
|
<div class="text-center ptb10" v-if="!noDenizen" @click="getScreenList('more')">
|
|
|
<button class="btn btn-default">更多居民</button>
|
|
@ -125,15 +125,17 @@
|
|
|
noDenizen:false,
|
|
|
denizenList:[],//居民列表
|
|
|
doctorList:[],//医生团队列表
|
|
|
currentType:(httpData['goDenizen'] || 0),// 当前是在选择类型还是选择居民
|
|
|
screeningType:{},//当前问卷类型
|
|
|
currentType:0,// 当前是在选择类型还是选择居民
|
|
|
screeningType:{code:httpData['fliter_code'],title:decodeURI(httpData['fliter_title'])},//当前问卷类型
|
|
|
screeningResidents:{},//选中居民
|
|
|
keyWord:'',//关键字
|
|
|
teamCode:'',
|
|
|
denizenName:'',
|
|
|
isSearch:false,
|
|
|
isReLoad:httpData['isReLoad']!=undefined?1:0
|
|
|
},
|
|
|
mounted: function(){
|
|
|
this.currentType=(httpData['goDenizen'] || 0)
|
|
|
this.getScreenList();
|
|
|
},
|
|
|
methods: {
|
|
@ -193,11 +195,13 @@
|
|
|
pagesize: vm.pageSize
|
|
|
}
|
|
|
jbscAPI.patientsByTeam(data).then(function(res){
|
|
|
console.log(res)
|
|
|
if(res.status==200){
|
|
|
var list=vm.denizenList;
|
|
|
var _length=res.data && res.data.length || 0;
|
|
|
_length && (list=list.concat(res.data));
|
|
|
vm.denizenList=list;
|
|
|
console.log(vm.denizenList)
|
|
|
if(_length<vm.pageSize){
|
|
|
vm.noDenizen=true;
|
|
|
}
|
|
@ -220,8 +224,16 @@
|
|
|
// 选择好类型自动下一步
|
|
|
goDenizen:function(item){
|
|
|
var vm=this;
|
|
|
vm.currentType=1;
|
|
|
vm.screeningType=item;
|
|
|
console.log(vm.isReLoad)
|
|
|
if(vm.isReLoad==1){
|
|
|
console.log('进来了')
|
|
|
parent.question.screeningType=vm.screeningType.code
|
|
|
parent.question.screeningTitle=vm.screeningType.title
|
|
|
var index = parent.layer.getFrameIndex(window.name); //先得到当前iframe层的索引
|
|
|
parent.layer.close(index); //再执行关闭
|
|
|
}
|
|
|
vm.currentType=1;
|
|
|
},
|
|
|
// 开始筛查
|
|
|
startScreening:function(){
|