| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455 |
- // module/health/components/field-ruler/field-ruler.ts
- import { getFollowRecordListMethod } from "../../request";
- Component({
- behaviors: ["wx://form-field-group"],
- lifetimes: {
- attached() {
- this.getFollowRecordList();
- },
- },
- methods: {
- async getFollowRecordList() {
- const res = await getFollowRecordListMethod();
- console.log(res,"记录列表");
- this.setData({
- followEvaluationList: res.data,
- });
- },
- goFollowRecord(e: any) {
- console.log(e, "记录列表");
- },
- },
- properties: {},
- /**
- * 组件的初始数据
- */
- data: {
- loading: false,
- followEvaluationList: [
- // {
- // id: 1,
- // time: "2025-05-19",
- // name: "计划",
- // status: "未完成",
- // statusId: 1,
- // },
- // {
- // id: 2,
- // time: "2025-05-19",
- // name: "计划",
- // status: "未完成",
- // statusId: 1,
- // },
- // {
- // id: 3,
- // time: "2025-05-19",
- // name: "计划",
- // statusId: 2,
- // status: "已完成",
- // },
- ],
- },
- observers: {},
-
- });
|