代码内容

  1. dataSource: function (opt){
  2. var time = seTimeout(() =>{
  3. var firstValue = opt.data[0].selectId;
  4. // 选中第一个数据
  5. $("#set_a16576754664451").widget().setCurrentValue(firstValue)
  6. // 数据放置到文本框
  7. $("#tex_a112832784738247").widget().setCurrentValue(firstValue)
  8. clearTimeout(time);
  9. },100);
  10. }

使用说明

copy上述代码,注入到获取数据的代码注入中;与allChildrenLoaded 层级