follow-record.ts 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  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. console.log(res,"记录列表");
  14. this.setData({
  15. followEvaluationList: res.data,
  16. });
  17. },
  18. goFollowRecord(e: any) {
  19. console.log(e, "记录列表");
  20. },
  21. },
  22. properties: {},
  23. /**
  24. * 组件的初始数据
  25. */
  26. data: {
  27. loading: false,
  28. followEvaluationList: [
  29. // {
  30. // id: 1,
  31. // time: "2025-05-19",
  32. // name: "计划",
  33. // status: "未完成",
  34. // statusId: 1,
  35. // },
  36. // {
  37. // id: 2,
  38. // time: "2025-05-19",
  39. // name: "计划",
  40. // status: "未完成",
  41. // statusId: 1,
  42. // },
  43. // {
  44. // id: 3,
  45. // time: "2025-05-19",
  46. // name: "计划",
  47. // statusId: 2,
  48. // status: "已完成",
  49. // },
  50. ],
  51. },
  52. observers: {},
  53. });