iframe模式-第三方工单接入
1.
2.
if(pullType == 'xxx'){
window.parent.postMessage(message, "*");
}
//第三方前端同事需监听message事件来唤起创建工单弹窗
window.addEventListener("message", receiveMessage, false);
3.
//通过判断pullType来源,实现跨源通信
if(pullType == 'xxx'){
window.parent.postMessage(message, "*");
}
//第三方前端同事需监听message事件来唤起工单详情弹窗
window.addEventListener("message", receiveMessage, false);
4.
interface messageProps {
projectId: number | string; // 项目id
projectName: string; // 项目名称
buildId: number | string; // 建筑id
buildName: string; // 建筑名称
floorId: number | string; // 楼层id
floor: string; //楼层
floorName: string; //楼层别名
image: string[]; //绘制图base64
createName: string; //创建人
patrolId: number | string; //巡检id
panorama: string; // 全景图地址
point: string; //轨迹点
uxTime: string; //轨迹点对应的时间
offsetYaw: string; // 轨迹点偏移量(轨迹点的p值)
perspective: string; // 旋转后全景的视角
orderType: any; //工单类型
}
需要调用2.17 批量添加工单将工单数据同步到威视通,工单才能在全景中展示
修改于 2024-05-22 03:13:56