index.js 549 B

1234567891011121314151617181920212223242526272829
  1. const app = getApp()
  2. Page({
  3. data: {
  4. tableData: [],
  5. logId:0
  6. },
  7. onLoad: function(options) {
  8. let logId = +options.logId||0;
  9. this.setData({logId})
  10. app.checkLogin( userInfo =>{
  11. this.loadData()
  12. })
  13. },
  14. onPullDownRefresh() {
  15. this.loadData()
  16. },
  17. gotoDetail( e ){
  18. },
  19. loadData: function() {
  20. let logId = this.data.logId;
  21. app.formPost('User.getImportOutList', {logId} ).then(res => {
  22. if (res.code === 200) {
  23. this.setData({
  24. tableData: res.data||[]
  25. });
  26. }
  27. })
  28. }
  29. })