index.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. const _Http = getApp().globalData.http;
  2. Component({
  3. options: {
  4. addGlobalClass: true
  5. },
  6. properties: {
  7. list: Array,
  8. ownertable: String,
  9. ownerid: String,
  10. changeTotal: Function
  11. },
  12. data: {
  13. },
  14. methods: {
  15. toDetail(e) {
  16. const {
  17. item
  18. } = e.currentTarget.dataset;
  19. wx.navigateTo({
  20. url: `/packageA/setclient/modules/trace/detail/index?data=` + JSON.stringify({
  21. "sys_datafollowupid": item.sys_datafollowupid,
  22. "ownertable": this.data.ownertable,
  23. "ownerid": this.data.ownerid
  24. }),
  25. })
  26. },
  27. editItem(e) {
  28. const {
  29. item
  30. } = e.currentTarget.dataset;
  31. wx.navigateTo({
  32. url: `/packageA/setclient/modules/trace/add/index?ownertable=${this.data.ownertable}&ownerid=${this.data.ownerid}&sys_datafollowupid=${item.sys_datafollowupid}`
  33. });
  34. },
  35. deleteItem(e) {
  36. const {
  37. item
  38. } = e.currentTarget.dataset;
  39. wx.navigateTo({
  40. url: `/packageA/setclient/modules/trace/list/delete?item=${JSON.stringify({
  41. "sys_datafollowupid": item.sys_datafollowupid,
  42. "ownertable": this.data.ownertable,
  43. "ownerid": this.data.ownerid
  44. })}`,
  45. })
  46. },
  47. }
  48. })