xframelib 0.5.6 → 0.5.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -2,6 +2,7 @@
2
2
 
3
3
  基于 VUE3+Hprose+Typescript 的前端框架
4
4
 
5
+ - v0.5.7 修改 init 初始化增加 sysGroup 参数;增加 Global.SystemGroup 字段,Axios 和 Hprose 的 Http 请求头加入 sysgroup 系统分组名;解决 Global 变量的循环引用,增加 SysConfig 的 UI 下的 GrayMode 参数、部分 ServiceURL 下参数,修改一些小 BUG;
5
6
  - v0.5.6 修改 init 初始化方法增加 sysID 参数;增加 Global.SystemID 字段,Axios 和 Hprose 的 Http 请求头加入 sysid;
6
7
  - v0.5.5 截取捕捉后台返回的有用异常信息,重新抛出;异常警告输出统一模型增加 isExceptionInfo 字段;更新依赖库;
7
8
  - v0.5.4 解决 IRole 相关模型类型未导出;LayoutManager.d.ts 输出两遍问题;完善 axios http 请求异常警告输出统一模型,发送 SysEvents.AxiosRequestErrorEvent 系统事件;
@@ -1,22 +1,2 @@
1
- import ProxyClient from '../hprose/ProxyClient';
2
1
  import { InnerObject } from './IModel';
3
2
  export declare const Global: InnerObject;
4
- /**
5
- * 框架初始化
6
- * @param messageUI 消息UI,例如message
7
- * @param sysID 系统的标识,工程名+版本的MD5值
8
- * @param defaultHproseURL 默认HproseURL
9
- */
10
- export declare const init: (messageUI: any, sysID?: string | undefined, defaultHproseURL?: string | undefined) => void;
11
- /**
12
- * 获取HproseProxy对象
13
- * @param hproseURL Hprose服务链接地址
14
- * @returns Hprose代理对象
15
- */
16
- export declare function getProxyClient(hproseURL?: string): ProxyClient | undefined;
17
- /**
18
- * 初始化Global.DefaultProxyClient对象
19
- * @param defaulthproseURL 默认的Hprose服务对象URL
20
- * @returns ProxyClient对象
21
- */
22
- export declare function initDefaultProxyClient(defaulthproseURL?: string): ProxyClient | undefined;
@@ -26,6 +26,11 @@ export interface InnerObject {
26
26
  * 系统ID标识
27
27
  */
28
28
  SystemID?: string;
29
+ /**
30
+ * 系统——工程项目名,分组名
31
+ * 例如:都是影像工程
32
+ */
33
+ SystemGroup?: string;
29
34
  [props: string]: any;
30
35
  }
31
36
  /**
@@ -34,5 +39,7 @@ export interface InnerObject {
34
39
  export interface XOptions {
35
40
  config?: any;
36
41
  message?: any;
42
+ sysID?: string;
43
+ sysGroup?: string;
37
44
  defaultHproseURL?: string;
38
45
  }
@@ -0,0 +1,20 @@
1
+ import ProxyClient from '../hprose/ProxyClient';
2
+ /**
3
+ * 框架初始化
4
+ * @param messageUI 消息UI,例如message
5
+ * @param sysID 系统的标识,工程名+版本的MD5值
6
+ * @param sysGroup 系统工程分组名,工程
7
+ */
8
+ export declare const init: (messageUI: any, sysID?: string | undefined, sysGroup?: string | undefined) => void;
9
+ /**
10
+ * 获取HproseProxy对象
11
+ * @param hproseURL Hprose服务链接地址
12
+ * @returns Hprose代理对象
13
+ */
14
+ export declare function getProxyClient(hproseURL?: string): ProxyClient | undefined;
15
+ /**
16
+ * 初始化Global.DefaultProxyClient对象
17
+ * @param defaulthproseURL 默认的Hprose服务对象URL
18
+ * @returns ProxyClient对象
19
+ */
20
+ export declare function initDefaultProxyClient(defaulthproseURL?: string): ProxyClient | undefined;
@@ -1,3 +1,4 @@
1
1
  export * from './Global';
2
+ export * from './Init';
2
3
  export * from './SysEvents';
3
4
  export * from './MsgHelper';