提交 e3dd22cc 编写于 作者: chengxiang.li's avatar chengxiang.li

fix empty show

上级 9583e2ec
...@@ -367,7 +367,7 @@ ...@@ -367,7 +367,7 @@
} }
}, },
getDiseaseData(query) { getDiseaseData(query) {
if (query !== '') { // if (query !== '') {
let params = { let params = {
diseaseName: query ? query : '', diseaseName: query ? query : '',
pageSize: 200, pageSize: 200,
...@@ -385,9 +385,9 @@ ...@@ -385,9 +385,9 @@
type: 'error' type: 'error'
}); });
}); });
}else { // }else {
this.icdOptions = []; // this.icdOptions = [];
} // }
}, },
getPatientsList(){ getPatientsList(){
const data = { const data = {
......
...@@ -224,28 +224,23 @@ ...@@ -224,28 +224,23 @@
// type: 'error' // type: 'error'
// }); // });
// }); // });
let params = {
if (query !== '') { diseaseName: query ? query : '',
let params = { pageNum: 1,
diseaseName: query ? query : '', pageSize: 200,
pageNum: 1, };
pageSize: 200, this.loading = true;
}; getIcdList(params).then(data => {
this.loading = true; this.loading = false;
getIcdList(params).then(data => { if(data.code == "000000") {
this.loading = false; this.options = data.data;
if(data.code == "000000") { }
this.options = data.data; }).catch((error) => {
} this.$message({
}).catch((error) => { message: error,
this.$message({ type: 'error'
message: error,
type: 'error'
});
}); });
}else { });
this.options = [];
}
}, },
getGroupList() { getGroupList() {
getLabelList({ getLabelList({
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册