联通内容看板信息
This commit is contained in:
parent
d2a8851199
commit
465b68fbef
|
|
@ -140,6 +140,41 @@ onMounted(() => {
|
|||
}).catch(err => {
|
||||
console.error('getInfo 接口请求失败:', err);
|
||||
});
|
||||
|
||||
// 请求 dashboard/brief 接口
|
||||
const keys = [
|
||||
'taskStatus',
|
||||
'taskTodayCompleted',
|
||||
'taskSoonExpire',
|
||||
'taskOverdueUncompleted',
|
||||
'projectStatus',
|
||||
'projectDevSoonExpire',
|
||||
'projectDevOverdue',
|
||||
'customerTodayCreate',
|
||||
'customerTodayFollowed',
|
||||
'customerTodayWaitFollow',
|
||||
'customerSoonFollow',
|
||||
'customerMonthFollow',
|
||||
'customerMonthFollowCount'
|
||||
];
|
||||
|
||||
|
||||
const params = ['joinUserId=23'];
|
||||
keys.forEach((key) => {
|
||||
params.push(`keys=${encodeURIComponent(key)}`);
|
||||
});
|
||||
const queryString = params.join('&');
|
||||
|
||||
|
||||
uni.$uv.http.get(`dashboard/brief?${queryString}`, {
|
||||
custom: {
|
||||
auth: true // 启用 token 认证
|
||||
}
|
||||
}).then(res => {
|
||||
console.log('dashboard/brief 接口返回:', res);
|
||||
}).catch(err => {
|
||||
console.error('dashboard/brief 接口请求失败:', err);
|
||||
});
|
||||
});
|
||||
|
||||
// 页面显示时处理从新建日程页面返回的数据
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user