Commit c1258cb086da478f9b4869134fc3ba78ed4214ed

Authored by wangfan
1 parent 26b97789

fixbug tablesLength

Showing 1 changed file with 4 additions and 2 deletions
@@ -359,15 +359,17 @@ Page({ @@ -359,15 +359,17 @@ Page({
359 obj.form.cusdem=res.data.cusdem; 359 obj.form.cusdem=res.data.cusdem;
360 obj.form.rid=id; 360 obj.form.rid=id;
361 obj.form.tid=[]; 361 obj.form.tid=[];
  362 + let tablesed=[];
362 res.data.tables.forEach((t,ti)=>{ 363 res.data.tables.forEach((t,ti)=>{
  364 + if(ti>=3) return;
363 t.isselect=true 365 t.isselect=true
364 - res.data.tables[ti]=t;  
365 obj.form.tid.push(t.id) 366 obj.form.tid.push(t.id)
  367 + tablesed.push(t);
366 }) 368 })
367 this.setData({ 369 this.setData({
368 timePickerIndex:timePickerIndex, 370 timePickerIndex:timePickerIndex,
369 form:obj.form, 371 form:obj.form,
370 - tablesed:res.data.tables, 372 + tablesed:tablesed,
371 }) 373 })
372 }catch (e){ 374 }catch (e){
373 console.log('initModify',e) 375 console.log('initModify',e)