提交 77172030 编写于 作者: 张平's avatar 张平

Merge branch 'dev-usetwo-1224' into 'release'

Dev usetwo 1224

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

See merge request !125
......@@ -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,14 @@ export default {
if (res.code == "000000") {
vm.hospitalCnt = res.data.hospitalCnt;
vm.hospitalCntList = res.data.list
// 只有一个机构时,所有请求中要传递机构ID added by Anndy Yang
if(vm.hospitalCntList.length == 1) {
vm.formInline.organization = [];
vm.formInline.organization.push(vm.hospitalCntList[0].hospitalId);
// vm.formInline.organization[0] = vm.hospitalCntList[0].hospitalId;
}
vm.search(); // added by Anndy Yang
}
});
},
......@@ -628,6 +636,12 @@ export default {
this.organizationList = operationData.getLearnOrganization(
res.data.list
);
// // added by Anndy Yang
// if(this.organizationList.length == 1) {
// vm.formInline.organization = [];
// vm.formInline.organization = vm.organizationList[0].value
// }
}
});
},
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册