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

fix empty show

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