@ningboyz/types 1.0.181 → 1.0.183

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
- "version": "1.0.181",
3
+ "version": "1.0.183",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -42,25 +42,25 @@ export enum TButtonType {
42
42
  /** 删除 */
43
43
  remove = "delete",
44
44
  /** 查看 */
45
- browse = "查看",
45
+ browse = "browse",
46
46
  /** 送审 */
47
- submit = "送审",
47
+ submit = "submit",
48
48
  /** 撤销终审 */
49
49
  cancelFinalAudit = "撤销终审",
50
50
  /** 撤销送审 */
51
- cancelSend = "撤销送审",
51
+ cancelSend = "cancelSend",
52
52
  /** 审核 */
53
- audit = "审核",
53
+ audit = "audit",
54
54
  /** 退回 */
55
- reject = "退回",
55
+ reject = "reject",
56
56
  /** 撤销审核 */
57
- cancelAudit = "撤销审核",
57
+ cancelAudit = "cancelAudit",
58
58
  /** 刷新 */
59
- refresh = "刷新",
59
+ refresh = "refresh",
60
60
  /** 查询 */
61
61
  query = "select",
62
62
  /** 流程状态 */
63
- flowStep = "流程状态",
63
+ flowStep = "flowStep",
64
64
  /** 打印标签 */
65
65
  printTag = "打印标签",
66
66
  /** 启用 */
@@ -90,7 +90,7 @@ export enum TButtonType {
90
90
  /** 查看关联业务 */
91
91
  browseRelative = "查看关联业务",
92
92
  /** 打印 */
93
- print = "打印",
93
+ print = "print",
94
94
  /** 打印设置 */
95
95
  printConfig = "打印设置",
96
96
  /** 复制 */
@@ -32,20 +32,6 @@ export interface IViewCtrlResponse extends IBaseResponse<IViewCtrlResponse> {
32
32
  title: string;
33
33
  name: string;
34
34
  icon: string;
35
- /**
36
- * vxe中的路由
37
- * */
38
- routerLink?: {
39
- path?: string
40
- name?: string | number | null
41
- query?: any
42
- params?: any
43
- target?: null | '' | '_blank' | '_self' | '_parent' | '_top'
44
- };
45
- /**
46
- * 按钮权限
47
- * */
48
- permissions: IViewCtrlResponse[];
49
35
  }
50
36
 
51
37
  export class TViewCtrlResponse extends TBaseResponse<IViewCtrlResponse> implements IViewCtrlResponse {
@@ -79,8 +65,6 @@ export class TViewCtrlResponse extends TBaseResponse<IViewCtrlResponse> implemen
79
65
  name: string = "";
80
66
  icon: string = "";
81
67
 
82
- permissions: IViewCtrlResponse[] = [];
83
-
84
68
  static toTree(listView: IViewCtrlResponse[]) {
85
69
  listView.forEach((element) => {
86
70
  element.title = element.viewName;
@@ -0,0 +1,93 @@
1
+ import { construct } from "@aximario/json-tree";
2
+ import { IBaseResponse, TBaseResponse } from "../base/IBaseResponse";
3
+
4
+ export interface IViewCtrlResponse extends IBaseResponse<IViewCtrlResponse> {
5
+ asParent: number;
6
+ ctrlCode: string;
7
+ ctrlName: string;
8
+ ctrlPara: string;
9
+ entityID: string;
10
+ formType: string;
11
+ jsMethod: string;
12
+ metaData: string;
13
+ parentID: number;
14
+ queuesBy: number;
15
+ showCode: string;
16
+ showName: string;
17
+ uniqueID: number;
18
+ userIndx: number;
19
+ view4url: string;
20
+ viewCode: string;
21
+ viewIcon: string;
22
+ viewMemo: string;
23
+ viewName: string;
24
+ viewPara: string;
25
+ vitualID: number;
26
+ whoBuild: number;
27
+ withPara: string;
28
+ wtuiMain: number;
29
+ labelVal: string;
30
+ viewIndx: number;
31
+ //虚拟字段
32
+ title: string;
33
+ name: string;
34
+ icon: string;
35
+ /**
36
+ * vxe中的路由
37
+ * */
38
+ routerLink?: {
39
+ path?: string
40
+ name?: string | number | null
41
+ query?: any
42
+ params?: any
43
+ target?: null | '' | '_blank' | '_self' | '_parent' | '_top'
44
+ };
45
+ /**
46
+ * 按钮权限
47
+ * */
48
+ permissions: IViewCtrlResponse[];
49
+ }
50
+
51
+ export class TViewCtrlResponse extends TBaseResponse<IViewCtrlResponse> implements IViewCtrlResponse {
52
+ asParent: number = 0;
53
+ ctrlCode: string = "";
54
+ ctrlName: string = "";
55
+ ctrlPara: string = "";
56
+ entityID: string = "";
57
+ formType: string = "";
58
+ jsMethod: string = "";
59
+ metaData: string = "";
60
+ parentID: number = 0;
61
+ queuesBy: number = 0;
62
+ showCode: string = "";
63
+ showName: string = "";
64
+ uniqueID: number = 0;
65
+ userIndx: number = 0;
66
+ view4url: string = "";
67
+ viewCode: string = "";
68
+ viewIcon: string = "";
69
+ viewMemo: string = "";
70
+ viewName: string = "";
71
+ viewPara: string = "";
72
+ vitualID: number = 0;
73
+ whoBuild: number = 0;
74
+ withPara: string = "";
75
+ wtuiMain: number = 0;
76
+ labelVal: string = "";
77
+ viewIndx: number = 0;
78
+ title: string = "";
79
+ name: string = "";
80
+ icon: string = "";
81
+
82
+ permissions: IViewCtrlResponse[] = [];
83
+
84
+ static toTree(listView: IViewCtrlResponse[]) {
85
+ listView.forEach((element) => {
86
+ element.title = element.viewName;
87
+ element.name = element.view4url;
88
+ element.icon = `iconfont ${element.viewIcon}`;
89
+ element.children = [];
90
+ });
91
+ return construct(listView, { id: "uniqueID", pid: "parentID", children: "children" }) as IViewCtrlResponse[];
92
+ }
93
+ }