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

解决区域是单个的,并且degree是3或者4的问题

上级 a59defcb
......@@ -177,7 +177,9 @@ export default {
provinceList(newVal) {
this.areaList.provinceList = newVal;
this.areaList.provinceList[0].selected = true;
this.value.provinceName = "全部";
this.value.provinceName = this.areaList.provinceList[0].label;
this.value.areaDegree = this.areaList.provinceList[0].degree;
// this.value.provinceName = "全部";
}
},
methods: {
......
......@@ -393,7 +393,13 @@ export default {
if (res.code === "000000") {
this.queryGDParams.regionId = (res.data && res.data.list[0] && res.data.list[0].id) || '';
this.CNTParams.regionId = (res.data && res.data.list[0] && res.data.list[0].id) || '';
this.setProvinceList((res.data && res.data.list) || []);
let proviceList = (res.data && res.data.list) || [];
let degree = (proviceList.length && proviceList[0].degree) || 0
this.setProvinceList(proviceList);
this.setAreaDegree(degree);
if( degree == 3 || degree == 4) {
this.isShowOrg = true;
}
this.getHospitalsCNT(this.CNTParams);
}
});
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册