提交 aef37f35 编写于 作者: guangjun.yang's avatar guangjun.yang

只有一个机构时,所有请求中要传递机构ID

上级 55d56668
......@@ -598,7 +598,7 @@ export default {
vm.optionsRegion = operationData.setRegionOptionNew(
res.data.list
);
vm.search();
// vm.search(); // deleted by Anndy Yang
vm.gethHspitalsCnt();
}
});
......@@ -612,6 +612,13 @@ export default {
if (res.code == "000000") {
vm.hospitalCnt = res.data.hospitalCnt;
vm.hospitalCntList = res.data.list
// 只有一个机构时,所有请求中要传递机构ID added by Anndy Yang
if(vm.hospitalCnt.length == 1) {
vm.formInline.organization = [];
vm.formInline.organization = vm.hospitalCntList[0].hospitalId;
}
vm.search(); // added by Anndy Yang
}
});
},
......@@ -629,11 +636,11 @@ export default {
res.data.list
);
// add by Anndy Yang
if(this.organizationList.length == 1) {
vm.formInline.organization = [];
vm.formInline.organization = vm.organizationList[0].value
}
// // added by Anndy Yang
// if(this.organizationList.length == 1) {
// vm.formInline.organization = [];
// vm.formInline.organization = vm.organizationList[0].value
// }
}
});
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册