UNPKG

fcc-core

Version:

Fusion communication center.

47 lines (43 loc) 1.37 kB
export const addMonitorRecord = async (param, xw) => { const localParams = { service: 'E2803101', MONITOR_DATA_SOUR: '1', // 监控数据来源 1外部来源 2 录屏截取 MONITOR_OBJ_TYPE: '2' // 监控类型 1:人员监控,2:设备监控 } let id = await xw.ajaxRequest([Object.assign(localParams, param)]).then(res => { console.log('addMonitorWater', res.data[0].ID) if (res.code === '0') { return res.data[0].ID } else { return '' } }) return id } export const changeMonitorRecord = async (monitorSno, param, xw) => { const localParams = { service: 'E2803301', MONITOR_SNO: monitorSno } await xw.ajaxRequest([Object.assign(localParams, param)]).then(res => {}) } export const addOPTRecord = async (param, xw) => { const localParams = { service: 'E2801101', AGENT_OPT_TYPE: '93', // 操作类型 93: 浏览视频监控(设备监控) IS_SUCCESS: '1' } let id = '' let result = await xw.ajaxRequest([Object.assign(localParams, param)]) if (result.code === '0') { id = result.data[0].ID } return id } export const changeOPTRecord = async (trafficCode, param, xw) => { const localParams = { service: 'E2801301', OPT_SNO: trafficCode } await xw.ajaxRequest([Object.assign(localParams, param)]).then(res => {}) }