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; }); }, })