离子离子选择选项不显示在动态json中

离子离子选择选项不显示在动态json中,json,ionic-framework,ion-select,Json,Ionic Framework,Ion Select,我使用离子离子选择和离子选择选项,如果json文件是静态的,则显示ok,但是如果json结果来自http,则显示不好。如果我使用角度材质选择,它总是有效的。 MWS ={ MWSTA:[{ TB004: '188', TB005: '999', TB006: TRUE }]} ;selectedTB004 = '188';exhttp() { this.http.post(this.http.xurl, this.para).subscribe( (record: any) =>

我使用离子离子选择和离子选择选项,如果json文件是静态的,则显示ok,但是如果json结果来自http,则显示不好。如果我使用角度材质选择,它总是有效的。

MWS ={ MWSTA:[{  TB004: '188', TB005: '999', TB006: TRUE }]} ;selectedTB004 = '188';exhttp() {
this.http.post(this.http.xurl, this.para).subscribe(
  (record: any) => {
   this.search_json(  record.recordset  ); this.MWSTA = record.recordset ; });search_json(para: any) {      
  for (let i in para) {
    if (para[i].TB006) {
     this.selectedTB004 = para[i].TB004;
    }
  }      
}