优化
This commit is contained in:
@@ -238,12 +238,14 @@ Component({
|
||||
return item.value == _this.data.select_keshi_id
|
||||
})
|
||||
console.log("科室:", index)
|
||||
let keshi_note = _this.data.keshi_columns[index].text;
|
||||
console.log("科室 keshi_note:", keshi_note);
|
||||
if(index != undefined){
|
||||
if(index == -1){
|
||||
clearInterval(data_replay);
|
||||
return
|
||||
}
|
||||
if(index > -1){
|
||||
_this.setData({
|
||||
select_keshi_index: index,
|
||||
keshi_note: keshi_note
|
||||
keshi_note: _this.data.keshi_columns[index].text
|
||||
})
|
||||
}
|
||||
keshi_huixian = true;
|
||||
@@ -254,6 +256,10 @@ Component({
|
||||
let index = _this.data.zhicheng_columns.findIndex(item => {
|
||||
return item.value == _this.data.select_zhicheng_id
|
||||
})
|
||||
if(index == -1){
|
||||
clearInterval(data_replay);
|
||||
return
|
||||
}
|
||||
if(index > -1){
|
||||
_this.setData({
|
||||
select_zhicheng_index: index,
|
||||
@@ -299,6 +305,7 @@ Component({
|
||||
}
|
||||
api.getBasicHospital(params).then(response => {// 请求医院列表
|
||||
_this.setData({
|
||||
hospital_search_val: "",
|
||||
yiyuan_columns: _this.formatYiYuan(response),
|
||||
city_note: _this.data.hospital.province + "/" + _this.data.hospital.city + "/" + _this.data.hospital.county
|
||||
})
|
||||
@@ -423,6 +430,7 @@ Component({
|
||||
}
|
||||
api.getBasicHospital(params).then(response => {// 请求医院列表】
|
||||
this.setData({
|
||||
hospital_search_val: "",
|
||||
yiyuan_columns: this.formatYiYuan(response),
|
||||
city_show: false,
|
||||
city_note: this.getCityNote(selectedOptions),
|
||||
|
||||
Reference in New Issue
Block a user