优化
This commit is contained in:
@@ -200,6 +200,9 @@ Page({
|
||||
params.product_keyword = this.data.product_name;
|
||||
api.getBasicProductSearch(params).then(response => {
|
||||
console.log(response);
|
||||
this.setData({
|
||||
drug_content_show: false
|
||||
})
|
||||
if(response.data.length > 0){
|
||||
this.setData({
|
||||
search_drug_list_empty: false,
|
||||
@@ -252,7 +255,7 @@ Page({
|
||||
console.log("disease_class_id: ", disease_class_id);
|
||||
let list = this.data.zhenduan_list;
|
||||
let find_index = list.findIndex(item => {
|
||||
return item.disease_class_id == disease_class_id
|
||||
return item.icd_id == disease_class_id
|
||||
});
|
||||
console.log("find_idex: ", find_index)
|
||||
list.splice(find_index, 1);
|
||||
|
||||
Reference in New Issue
Block a user