Demo entry 6634137

jsx

   

Submitted by anonymous on Aug 09, 2017 at 09:11
Language: JavaScript. Code size: 563 Bytes.

toDetail(e){
    let visitNo = e.currentTarget.id;
    //写入localStorage
    let result = {checklist:this.state.checklist,noMore:this.state.noMore,currentPage:this.state.currentPage,
      tabs:this.state.tabs,orgId:this.state.orgId,orgName:this.state.orgName,scrollValue:this.state.scrollValue,
      rowIndex:Session.get("rowIndex")};
    let storage=window.localStorage;
    storage.setItem(this.state.storageName,JSON.stringify(result));

    this.context.router.push({
      pathname :'/detailquerymz',
      query : {visitNo:visitNo}
    });
  }

This snippet took 0.01 seconds to highlight.

Back to the Entry List or Home.

Delete this entry (admin only).