riku
2024-11-14 00a96d6881dd10ae7d3c4f5437bfceaabe677723
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
import { fetchRuleAndScore } from "../../../../services/enterprise/fetchAssessment";
import { useLoading } from '../../../../behaviors/loading';
 
Page({
  behaviors: [useLoading],
  data: {
 
  },
 
  onLoad(options) {
    if (options.period) {
      this.period = options.period;
      this.userId = options.userId;
    }
    this._startLoad();
  },
 
  _fetchData(page) {
    let { userId, period } = this;
    return fetchRuleAndScore({ userId, period}).then(res => {
      this.setData({
        evaluations: res.data
      });
      return res.head;
    });
  },
})