index.js 1.6 KB

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