Open solocao opened 6 years ago
// 查询历史记录
async routineHistory() {
const payload = {
url: '/routine/history',
data: {
did: '041DD10615',
starttime: 1506096000,
endtime: 1508774399,
page: 1,
pagesize: 100
},
router: 'home'
};
const history = await this.post(payload);
if (history.status) {
this.set({ key: 'historyTable', val: history.data.result });
console.log(history.data.result);
}
console.log(history.data.result);
}
// 查询历史记录
async routineHistory() {
const payload = {
url: '/routine/history',
data: {
did: '041DD10615',
starttime: 1506096000,
endtime: 1508774399,
page: 1,
pagesize: 100
},
router: 'home'
};
const history = await this.post(payload);
if (history.status) {
this.set({ key: 'historyTable', val: history.data.result });
console.log(history.data.result);
}
console.log(history.data.result);
}