fcc-core
Version:
Fusion communication center.
37 lines (35 loc) • 988 B
JavaScript
export default async function (xw, params) {
// let req = [
// {
// service: 'E1903422',
// page: this.page,
// pagecount: this.pagecount,
// MEETING_STATUS: status,
// START_TIME: times[0] || '',
// END_TIME: times[1] || '',
// mask: this.dataList.length === 0
// }
// ]
console.log(xw, params)
await xw.validate(params, {
'page': { type: 'string', required: true },
'pagecount': { type: 'string', required: true }
})
return new Promise(async (resolve, reject) => {
xw.ajaxRequest([{
service: 'E1903422',
page: params.page,
pagecount: params.pagecount,
MEETING_STATUS: params.status,
START_TIME: params.starttime,
END_TIME: params.endtime,
mask: false
}]).then(data => {
if (data.code === '0') {
resolve(data.data)
} else {
reject(new xw.BaseException(424, '查询列表失败'))
}
})
})
}