follow-record.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. // module/health/components/field-ruler/field-ruler.ts
  2. import { getFollowRecordListMethod } from "../../request";
  3. Component({
  4. behaviors: ["wx://form-field-group"],
  5. lifetimes: {
  6. attached() {
  7. this.getFollowRecordList();
  8. },
  9. },
  10. methods: {
  11. async getFollowRecordList() {
  12. const res = await getFollowRecordListMethod();
  13. this.setData({
  14. followEvaluationList: res.data,
  15. });
  16. },
  17. goFollowRecord(e: any) {
  18. },
  19. },
  20. properties: {},
  21. /**
  22. * 组件的初始数据
  23. */
  24. data: {
  25. loading: false,
  26. followEvaluationList: [
  27. // {
  28. // id: 1,
  29. // time: "2025-05-19",
  30. // name: "计划",
  31. // status: "未完成",
  32. // statusId: 1,
  33. // },
  34. // {
  35. // id: 2,
  36. // time: "2025-05-19",
  37. // name: "计划",
  38. // status: "未完成",
  39. // statusId: 1,
  40. // },
  41. // {
  42. // id: 3,
  43. // time: "2025-05-19",
  44. // name: "计划",
  45. // statusId: 2,
  46. // status: "已完成",
  47. // },
  48. ],
  49. },
  50. observers: {},
  51. });