RPA JS 扩展开发文档

RPA JS 扩展开发文档

  • SDK接口说明
  • 代码示例

xsy-breeze-ui-rpa > SystemUtils

SystemUtils class

系统基础方法类

Signature:

export declare class SystemUtils extends ExtensionPointSDKBase<SystemUtilsInterface> 

Constructors

ConstructorModifiersDescription
(constructor)()Creates an instance of entity operation.

Properties

PropertyModifiersTypeDescription
clearSWCache() => Promise<undefined>清理缓存
currentUser() => Promise<object>获取当前用户
getHuolalaToken() => Promise<string>获取货拉拉私有Token,仅在货拉拉私有系统有效
getMainWindowLocationInfo() => Promise<{
hash: string;
host: string;
href: string;
pathname: string;
search: string;
}>
获取主窗口页面的location信息
getMobileLocationInfo() => Promise<{
title: string | null;
address: string | null;
latitude: number | null;
longitude: number | null;
state: string | null;
city: string | null;
region: string | null;
}>
获取移动的location信息
goBack() => Promise<undefined>返回上一个页面
openDialog(param: {
url: string;
windowSize: 1 | 2 | 3;
title: string;
query?: {
[key: string]: string;
} | undefined;
}) => Promise<any>
打开弹出框
openEntityDialog(param: {
edit: boolean;
entityId: number;
entityApiKey: string;
entityTypeId: number;
entityName: string;
extraData?: any;
parentEntityId?: number | undefined;
parentDataId?: number | undefined;
productFamilyId?: number | undefined;
hasDetailData?: boolean | undefined;
}) => Promise<any>
打开实体新建编辑弹出框
openIMSDialog(param: {
id: string;
name: string;
}) => Promise<any>
打开企业微信对话框
openScheduleCreate(param: {
users: any;
}) => Promise<any>
打开日程创建弹框
openWindow(param: {
url: string;
query?: {
[key: string]: string;
} | undefined;
}) => Promise<any>
打开新窗口
refreshCurrentPage() => Promise<undefined>刷新当前页面
sendBackResult(data: any) => Promise<undefined>向iframe外发送数据
setIMVisible(param: boolean) => Promise<undefined>设置IM是否可见
Last updated on 3/15/2021
  • SystemUtils class
  • Constructors
  • Properties
Copyright © 2021 销售易