index.js 503 B

12345678910111213141516171819202122
  1. Component({
  2. properties: {
  3. list: {
  4. type: Array,
  5. value: []
  6. },
  7. onClick: {
  8. type: Function
  9. }
  10. },
  11. methods: {
  12. toDetail(e) {
  13. const {
  14. item
  15. } = e.currentTarget.dataset;
  16. wx.navigateTo({
  17. url: '/packageA/report/detail?id=' + item.sys_workreportid,
  18. })
  19. if (item.readstatus == '未读') this.triggerEvent("onClick", item)
  20. }
  21. }
  22. })