ionic ion-select-option不会显示在动态json中

时间:2019-02-03 01:55:50

标签: json ionic-framework ion-select

我用离子ion-selection-select-option,如果JSON文件是静态的,它示出了确定,但如果JSON结果是从http,它不显示良好。如果我使用角度材质选择,则它始终有效。 enter image description here

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;
    }
  }      
}

0 个答案:

没有答案