aldehyde 0.2.518 → 0.2.520

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.
Files changed (90) hide show
  1. package/lib/controls/icon-selector/icon/phonenode-menu-icon/iconfont.css +99 -99
  2. package/lib/detail/view/act-dtmpl-view.d.ts +3 -1
  3. package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
  4. package/lib/detail/view/act-dtmpl-view.js +5 -2
  5. package/lib/detail/view/act-dtmpl-view.js.map +1 -1
  6. package/lib/detail/view/audit-data-popover.d.ts +11 -0
  7. package/lib/detail/view/audit-data-popover.d.ts.map +1 -0
  8. package/lib/detail/view/audit-data-popover.js +48 -0
  9. package/lib/detail/view/audit-data-popover.js.map +1 -0
  10. package/lib/detail/view/dtmpl-view.d.ts +3 -9
  11. package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
  12. package/lib/detail/view/dtmpl-view.js +2 -1
  13. package/lib/detail/view/dtmpl-view.js.map +1 -1
  14. package/lib/draw-canvas-edit/components/asset-bar/index.less +35 -35
  15. package/lib/draw-canvas-edit/components/main-header/index.less +23 -23
  16. package/lib/form/dtmpl-form.d.ts +1 -0
  17. package/lib/form/dtmpl-form.d.ts.map +1 -1
  18. package/lib/form/dtmpl-form.js +24 -4
  19. package/lib/form/dtmpl-form.js.map +1 -1
  20. package/lib/lowcode-components/base-table/index.less +61 -61
  21. package/lib/lowcode-components/data-number/index.less +10 -10
  22. package/lib/lowcode-components/date-time/index.less +4 -4
  23. package/lib/lowcode-components/four-angle-glow-border/index.less +49 -49
  24. package/lib/lowcode-components/lowcode-view/component/font/FontGlobal.css +26 -26
  25. package/lib/lowcode-components/lowcode-view/component/screen-fit/index.less +13 -13
  26. package/lib/lowcode-components/text-scroller/index.less +28 -28
  27. package/lib/tmpl/interface.d.ts +8 -0
  28. package/lib/tmpl/interface.d.ts.map +1 -1
  29. package/lib/tmpl/interface.js +1 -0
  30. package/lib/tmpl/interface.js.map +1 -1
  31. package/lib/units/index.d.ts.map +1 -1
  32. package/lib/units/index.js +3 -2
  33. package/lib/units/index.js.map +1 -1
  34. package/package.json +1 -1
  35. package/src/aldehyde/controls/icon-selector/icon/phonenode-menu-icon/iconfont.css +99 -99
  36. package/src/aldehyde/controls/icon-selector/icon/phonenode-menu-icon/iconfont.json +156 -156
  37. package/src/aldehyde/detail/view/act-dtmpl-view.tsx +7 -2
  38. package/src/aldehyde/detail/view/audit-data-popover.tsx +70 -0
  39. package/src/aldehyde/detail/view/dtmpl-view.tsx +5 -3
  40. package/src/aldehyde/draw-canvas-edit/components/asset-bar/index.less +35 -35
  41. package/src/aldehyde/draw-canvas-edit/components/asset-bar/index.tsx +110 -110
  42. package/src/aldehyde/draw-canvas-edit/components/main-header/index.less +23 -23
  43. package/src/aldehyde/draw-canvas-edit/components/main-header/index.tsx +263 -263
  44. package/src/aldehyde/draw-canvas-edit/components/render/draws/index.ts +7 -7
  45. package/src/aldehyde/draw-canvas-edit/components/render/graphs/base-graph.ts +241 -241
  46. package/src/aldehyde/draw-canvas-edit/components/render/graphs/circle.ts +699 -699
  47. package/src/aldehyde/draw-canvas-edit/components/render/graphs/curve.ts +500 -500
  48. package/src/aldehyde/draw-canvas-edit/components/render/graphs/index.ts +5 -5
  49. package/src/aldehyde/draw-canvas-edit/components/render/graphs/line.ts +493 -493
  50. package/src/aldehyde/draw-canvas-edit/components/render/graphs/rect.ts +680 -680
  51. package/src/aldehyde/draw-canvas-edit/components/render/handlers/drag-handlers.ts +68 -68
  52. package/src/aldehyde/draw-canvas-edit/components/render/handlers/graph-handlers.ts +113 -113
  53. package/src/aldehyde/draw-canvas-edit/components/render/handlers/index.ts +9 -9
  54. package/src/aldehyde/draw-canvas-edit/components/render/handlers/key-move-handlers.ts +49 -49
  55. package/src/aldehyde/draw-canvas-edit/components/render/handlers/link-handlers.ts +45 -45
  56. package/src/aldehyde/draw-canvas-edit/components/render/handlers/shutcut-handlers.ts +45 -45
  57. package/src/aldehyde/draw-canvas-edit/components/render/handlers/text-handlers.ts +81 -81
  58. package/src/aldehyde/draw-canvas-edit/components/render/handlers/zoom-handlers.ts +59 -59
  59. package/src/aldehyde/draw-canvas-edit/components/render/tools/align-tool.ts +89 -89
  60. package/src/aldehyde/draw-canvas-edit/components/render/tools/asset-tool.ts +154 -154
  61. package/src/aldehyde/draw-canvas-edit/components/render/tools/link-tool.ts +222 -222
  62. package/src/aldehyde/draw-canvas-edit/components/render/tools/z-index-tool.ts +224 -224
  63. package/src/aldehyde/draw-canvas-edit/components/render/utils/a-star.ts +116 -116
  64. package/src/aldehyde/draw-canvas-edit/components/render/utils/bezier-scene-func.ts +72 -72
  65. package/src/aldehyde/draw-canvas-edit/components/setting-form/imag-upload.tsx +119 -119
  66. package/src/aldehyde/form/dtmpl-form.tsx +26 -4
  67. package/src/aldehyde/layout4/imgs/user.svg +26 -26
  68. package/src/aldehyde/lowcode-components/base-color-block/index.tsx +31 -31
  69. package/src/aldehyde/lowcode-components/base-table/index.less +61 -61
  70. package/src/aldehyde/lowcode-components/data-number/index.less +10 -10
  71. package/src/aldehyde/lowcode-components/date-time/index.less +4 -4
  72. package/src/aldehyde/lowcode-components/date-time/index.tsx +64 -64
  73. package/src/aldehyde/lowcode-components/four-angle-glow-border/index.less +49 -49
  74. package/src/aldehyde/lowcode-components/four-angle-glow-border/index.tsx +53 -53
  75. package/src/aldehyde/lowcode-components/lowcode-view/component/abstract-controller.ts +64 -64
  76. package/src/aldehyde/lowcode-components/lowcode-view/component/abstract-definition.ts +77 -77
  77. package/src/aldehyde/lowcode-components/lowcode-view/component/abstract-designer-loader.ts +36 -36
  78. package/src/aldehyde/lowcode-components/lowcode-view/component/component-container.tsx +144 -144
  79. package/src/aldehyde/lowcode-components/lowcode-view/component/font/FontGlobal.css +26 -26
  80. package/src/aldehyde/lowcode-components/lowcode-view/component/group-layer/controller.ts +36 -36
  81. package/src/aldehyde/lowcode-components/lowcode-view/component/group-layer/definition.ts +53 -53
  82. package/src/aldehyde/lowcode-components/lowcode-view/component/group-layer/index.tsx +15 -15
  83. package/src/aldehyde/lowcode-components/lowcode-view/component/layer-builder.tsx +98 -98
  84. package/src/aldehyde/lowcode-components/lowcode-view/component/screen-fit/index.less +13 -13
  85. package/src/aldehyde/lowcode-components/lowcode-view/component/screen-fit/index.tsx +121 -121
  86. package/src/aldehyde/lowcode-components/placeholder-component/index.tsx +81 -81
  87. package/src/aldehyde/lowcode-components/text-scroller/index.less +28 -28
  88. package/src/aldehyde/lowcode-components/text-scroller/index.tsx +173 -173
  89. package/src/aldehyde/tmpl/interface.tsx +10 -1
  90. package/src/aldehyde/units/index.tsx +2 -1
@@ -1,156 +1,156 @@
1
- {
2
- "id": "5037136",
3
- "name": "phonenode-menu-icon",
4
- "font_family": "iconfont",
5
- "css_prefix_text": "icon-",
6
- "description": "",
7
- "glyphs": [
8
- {
9
- "icon_id": "1314143",
10
- "name": "业务人员信息管理",
11
- "font_class": "yewurenyuanxinxiguanli",
12
- "unicode": "e60e",
13
- "unicode_decimal": 58894
14
- },
15
- {
16
- "icon_id": "2076280",
17
- "name": " 订单 处理中",
18
- "font_class": "dingdanchulizhong",
19
- "unicode": "e896",
20
- "unicode_decimal": 59542
21
- },
22
- {
23
- "icon_id": "5325477",
24
- "name": "车辆信息",
25
- "font_class": "cheliangxinxi",
26
- "unicode": "e755",
27
- "unicode_decimal": 59221
28
- },
29
- {
30
- "icon_id": "30184485",
31
- "name": "销售订单管理",
32
- "font_class": "a-SalesOrderManagement",
33
- "unicode": "e635",
34
- "unicode_decimal": 58933
35
- },
36
- {
37
- "icon_id": "35014974",
38
- "name": "采购订单@3x",
39
- "font_class": "a-caigoudingdan3x",
40
- "unicode": "e615",
41
- "unicode_decimal": 58901
42
- },
43
- {
44
- "icon_id": "40956109",
45
- "name": "过磅记录",
46
- "font_class": "guobangjilu",
47
- "unicode": "e64d",
48
- "unicode_decimal": 58957
49
- },
50
- {
51
- "icon_id": "42976294",
52
- "name": "参数配置",
53
- "font_class": "canshupeizhi",
54
- "unicode": "e609",
55
- "unicode_decimal": 58889
56
- },
57
- {
58
- "icon_id": "46265573",
59
- "name": "误差统计",
60
- "font_class": "wuchatongji",
61
- "unicode": "e890",
62
- "unicode_decimal": 59536
63
- },
64
- {
65
- "icon_id": "48016567",
66
- "name": "并购重组",
67
- "font_class": "binggouzhongzu",
68
- "unicode": "e660",
69
- "unicode_decimal": 58976
70
- },
71
- {
72
- "icon_id": "1079710",
73
- "name": "停车位",
74
- "font_class": "tingchewei",
75
- "unicode": "e664",
76
- "unicode_decimal": 58980
77
- },
78
- {
79
- "icon_id": "1305474",
80
- "name": "权限",
81
- "font_class": "quanxian",
82
- "unicode": "e63f",
83
- "unicode_decimal": 58943
84
- },
85
- {
86
- "icon_id": "1998826",
87
- "name": "工位",
88
- "font_class": "gongwei",
89
- "unicode": "e641",
90
- "unicode_decimal": 58945
91
- },
92
- {
93
- "icon_id": "10487476",
94
- "name": "维修",
95
- "font_class": "weixiu",
96
- "unicode": "e690",
97
- "unicode_decimal": 59024
98
- },
99
- {
100
- "icon_id": "12184880",
101
- "name": "部门",
102
- "font_class": "bumen",
103
- "unicode": "e686",
104
- "unicode_decimal": 59014
105
- },
106
- {
107
- "icon_id": "20951818",
108
- "name": "生产基地",
109
- "font_class": "shengchanjidi",
110
- "unicode": "e63b",
111
- "unicode_decimal": 58939
112
- },
113
- {
114
- "icon_id": "765849",
115
- "name": "地址",
116
- "font_class": "shouye",
117
- "unicode": "e63c",
118
- "unicode_decimal": 58940
119
- },
120
- {
121
- "icon_id": "8629256",
122
- "name": "人员",
123
- "font_class": "renyuan",
124
- "unicode": "e66c",
125
- "unicode_decimal": 58988
126
- },
127
- {
128
- "icon_id": "9921751",
129
- "name": "apply",
130
- "font_class": "apply",
131
- "unicode": "e61c",
132
- "unicode_decimal": 58908
133
- },
134
- {
135
- "icon_id": "39260433",
136
- "name": "厂区管理",
137
- "font_class": "changquguanli",
138
- "unicode": "e607",
139
- "unicode_decimal": 58887
140
- },
141
- {
142
- "icon_id": "8329706",
143
- "name": "kuaidi",
144
- "font_class": "kuaidi",
145
- "unicode": "e6c0",
146
- "unicode_decimal": 59072
147
- },
148
- {
149
- "icon_id": "15838501",
150
- "name": "menu",
151
- "font_class": "menu",
152
- "unicode": "e677",
153
- "unicode_decimal": 58999
154
- }
155
- ]
156
- }
1
+ {
2
+ "id": "5037136",
3
+ "name": "phonenode-menu-icon",
4
+ "font_family": "iconfont",
5
+ "css_prefix_text": "icon-",
6
+ "description": "",
7
+ "glyphs": [
8
+ {
9
+ "icon_id": "1314143",
10
+ "name": "业务人员信息管理",
11
+ "font_class": "yewurenyuanxinxiguanli",
12
+ "unicode": "e60e",
13
+ "unicode_decimal": 58894
14
+ },
15
+ {
16
+ "icon_id": "2076280",
17
+ "name": " 订单 处理中",
18
+ "font_class": "dingdanchulizhong",
19
+ "unicode": "e896",
20
+ "unicode_decimal": 59542
21
+ },
22
+ {
23
+ "icon_id": "5325477",
24
+ "name": "车辆信息",
25
+ "font_class": "cheliangxinxi",
26
+ "unicode": "e755",
27
+ "unicode_decimal": 59221
28
+ },
29
+ {
30
+ "icon_id": "30184485",
31
+ "name": "销售订单管理",
32
+ "font_class": "a-SalesOrderManagement",
33
+ "unicode": "e635",
34
+ "unicode_decimal": 58933
35
+ },
36
+ {
37
+ "icon_id": "35014974",
38
+ "name": "采购订单@3x",
39
+ "font_class": "a-caigoudingdan3x",
40
+ "unicode": "e615",
41
+ "unicode_decimal": 58901
42
+ },
43
+ {
44
+ "icon_id": "40956109",
45
+ "name": "过磅记录",
46
+ "font_class": "guobangjilu",
47
+ "unicode": "e64d",
48
+ "unicode_decimal": 58957
49
+ },
50
+ {
51
+ "icon_id": "42976294",
52
+ "name": "参数配置",
53
+ "font_class": "canshupeizhi",
54
+ "unicode": "e609",
55
+ "unicode_decimal": 58889
56
+ },
57
+ {
58
+ "icon_id": "46265573",
59
+ "name": "误差统计",
60
+ "font_class": "wuchatongji",
61
+ "unicode": "e890",
62
+ "unicode_decimal": 59536
63
+ },
64
+ {
65
+ "icon_id": "48016567",
66
+ "name": "并购重组",
67
+ "font_class": "binggouzhongzu",
68
+ "unicode": "e660",
69
+ "unicode_decimal": 58976
70
+ },
71
+ {
72
+ "icon_id": "1079710",
73
+ "name": "停车位",
74
+ "font_class": "tingchewei",
75
+ "unicode": "e664",
76
+ "unicode_decimal": 58980
77
+ },
78
+ {
79
+ "icon_id": "1305474",
80
+ "name": "权限",
81
+ "font_class": "quanxian",
82
+ "unicode": "e63f",
83
+ "unicode_decimal": 58943
84
+ },
85
+ {
86
+ "icon_id": "1998826",
87
+ "name": "工位",
88
+ "font_class": "gongwei",
89
+ "unicode": "e641",
90
+ "unicode_decimal": 58945
91
+ },
92
+ {
93
+ "icon_id": "10487476",
94
+ "name": "维修",
95
+ "font_class": "weixiu",
96
+ "unicode": "e690",
97
+ "unicode_decimal": 59024
98
+ },
99
+ {
100
+ "icon_id": "12184880",
101
+ "name": "部门",
102
+ "font_class": "bumen",
103
+ "unicode": "e686",
104
+ "unicode_decimal": 59014
105
+ },
106
+ {
107
+ "icon_id": "20951818",
108
+ "name": "生产基地",
109
+ "font_class": "shengchanjidi",
110
+ "unicode": "e63b",
111
+ "unicode_decimal": 58939
112
+ },
113
+ {
114
+ "icon_id": "765849",
115
+ "name": "地址",
116
+ "font_class": "shouye",
117
+ "unicode": "e63c",
118
+ "unicode_decimal": 58940
119
+ },
120
+ {
121
+ "icon_id": "8629256",
122
+ "name": "人员",
123
+ "font_class": "renyuan",
124
+ "unicode": "e66c",
125
+ "unicode_decimal": 58988
126
+ },
127
+ {
128
+ "icon_id": "9921751",
129
+ "name": "apply",
130
+ "font_class": "apply",
131
+ "unicode": "e61c",
132
+ "unicode_decimal": 58908
133
+ },
134
+ {
135
+ "icon_id": "39260433",
136
+ "name": "厂区管理",
137
+ "font_class": "changquguanli",
138
+ "unicode": "e607",
139
+ "unicode_decimal": 58887
140
+ },
141
+ {
142
+ "icon_id": "8329706",
143
+ "name": "kuaidi",
144
+ "font_class": "kuaidi",
145
+ "unicode": "e6c0",
146
+ "unicode_decimal": 59072
147
+ },
148
+ {
149
+ "icon_id": "15838501",
150
+ "name": "menu",
151
+ "font_class": "menu",
152
+ "unicode": "e677",
153
+ "unicode_decimal": 58999
154
+ }
155
+ ]
156
+ }
@@ -1,6 +1,6 @@
1
1
  import React from "react";
2
2
  import { Button, Card, Form as AntdForm, FormInstance, message, Tooltip } from "antd";
3
- import { DtmplBaseProps, DtmplConfig, DtmplData } from "../../tmpl/interface";
3
+ import { DtmplBaseProps, DtmplConfig, DtmplData, AuditData } from "../../tmpl/interface";
4
4
  import { EditOutlined, ReloadOutlined, ScheduleOutlined, } from "@ant-design/icons";
5
5
  import HCDataSource from "../../tmpl/hc-data-source";
6
6
  import "../dtmpl.css";
@@ -11,6 +11,7 @@ import ToolTipBar from "../tooltipbar";
11
11
  import { LocaleContext } from "../../locale/LocaleProvider";
12
12
  import Action from "../../controls/action";
13
13
  import HcserviceV3 from "../../tmpl/hcservice-v3";
14
+ import AuditDataPopover from "./audit-data-popover";
14
15
 
15
16
  export interface ActDtmplViewProps extends DtmplBaseProps {
16
17
  versionId?: number;
@@ -28,6 +29,7 @@ export interface ActDtmplViewStat {
28
29
  layout?: object;
29
30
  refreshCode?: string;
30
31
  actionDtmplData?: DtmplData;
32
+ auditData?: AuditData; // 审计页面变更数据
31
33
  }
32
34
 
33
35
  class ActDtmplView extends React.PureComponent<
@@ -55,6 +57,7 @@ class ActDtmplView extends React.PureComponent<
55
57
  },
56
58
  refreshCode: undefined,
57
59
  actionDtmplData: undefined,
60
+ auditData: undefined,
58
61
  };
59
62
 
60
63
  async componentDidMount() {
@@ -174,7 +177,7 @@ class ActDtmplView extends React.PureComponent<
174
177
  loading,
175
178
  layout,
176
179
  snapshotOpen,
177
- refreshCode, actionDtmplData,
180
+ refreshCode, actionDtmplData, auditData
178
181
  } = this.state;
179
182
  const { translate } = this.context;
180
183
  const { pageLayout, buttons, premises } = dtmplConfig || {};
@@ -187,6 +190,7 @@ class ActDtmplView extends React.PureComponent<
187
190
  }
188
191
 
189
192
  const renderAction = <div className="fr">
193
+ {isAudit ? <AuditDataPopover translate={translate} auditData={auditData} dtmplConfig={dtmplConfig} serverKey={serverKey} /> : ""}
190
194
  {buttons &&
191
195
  buttons.includes("dtmplEdit") &&
192
196
  goDtmpl &&
@@ -265,6 +269,7 @@ class ActDtmplView extends React.PureComponent<
265
269
  code={code}
266
270
  tabBarExtraContent={renderAction}
267
271
  isAudit={isAudit}
272
+ getAuditData={(val) => this.setState({ auditData: val })}
268
273
  />
269
274
  <AntdForm
270
275
  scrollToFirstError={true}
@@ -0,0 +1,70 @@
1
+ import React, { useMemo } from "react";
2
+ import { Button, Popover, Table } from "antd";
3
+ import { OneToOneOutlined } from "@ant-design/icons";
4
+ import { AuditData, DtmplConfig } from "../../tmpl/interface";
5
+ import ViewControl from "../../controls/view-control";
6
+
7
+ interface Props {
8
+ translate: Function;
9
+ auditData: AuditData;
10
+ serverKey: string;
11
+ dtmplConfig?: DtmplConfig;
12
+ }
13
+
14
+ const Index = (props: Props) => {
15
+ const { translate, auditData, dtmplConfig, serverKey } = props;
16
+
17
+ const columns = [
18
+ {
19
+ title: translate("${变更数据}"),
20
+ dataIndex: 'fieldTitle',
21
+ },
22
+ {
23
+ title: translate("${当前数据}"),
24
+ dataIndex: 'entityVal',
25
+ render: (text, record) => {
26
+ return <ViewControl
27
+ serverKey={serverKey}
28
+ holderType={"table"}
29
+ fieldConfig={record.field}
30
+ value={record.entityVal}
31
+ />;
32
+ }
33
+ },
34
+ {
35
+ title: translate("${变更前}"),
36
+ dataIndex: 'previousVal',
37
+ render: (text, record) => {
38
+ return <ViewControl
39
+ serverKey={serverKey}
40
+ holderType={"table"}
41
+ fieldConfig={record.field}
42
+ value={record.previousVal}
43
+ />;
44
+ }
45
+ },
46
+ ];
47
+
48
+ const dataSource = useMemo(() => {
49
+ if (!auditData) return [];
50
+ const { changeInfo, entity, previous } = auditData;
51
+ const fields = dtmplConfig?.groups?.[0]?.fields || [];
52
+ const temData = changeInfo?.changeFields?.map(item => {
53
+ const field = fields?.find(r => r.id === item);
54
+ const entityVal = entity?.fieldMap?.[item];
55
+ const previousVal = previous?.fieldMap?.[item];
56
+ return { fieldTitle: translate("${" + field?.title + "}"), entityVal, previousVal, field };
57
+ });
58
+ return temData;
59
+ }, [auditData])
60
+
61
+ const content = <Table columns={columns} dataSource={dataSource} pagination={false} />;
62
+
63
+ return <Popover content={content} trigger="click">
64
+ <Button className="hoverbig" title={translate("${数据对比}")}>
65
+ <OneToOneOutlined />
66
+ </Button>
67
+ </Popover>;
68
+ };
69
+
70
+ export default Index;
@@ -3,7 +3,7 @@ import {
3
3
  DtmplBaseProps,
4
4
  DtmplConfig,
5
5
  DtmplData,
6
- FieldGroupConfig,
6
+ FieldGroupConfig, AuditData
7
7
  } from "../../tmpl/interface";
8
8
  import RelationTable from "../../table/relation-table";
9
9
  import FieldViewGroup from "./field-view-group";
@@ -25,6 +25,7 @@ export interface DtmplViewProps extends DtmplBaseProps {
25
25
  parentId?: string;
26
26
  tabBarExtraContent?: ReactNode;
27
27
  isAudit?: boolean; // 是否审计
28
+ getAuditData?: (val: AuditData) => void; // 获取审计变更数据
28
29
  }
29
30
 
30
31
  export interface DtmplViewStat {
@@ -33,7 +34,7 @@ export interface DtmplViewStat {
33
34
  dtmplData?: DtmplData;
34
35
  premisesTitle?: string;
35
36
  layout?: object;
36
- auditData?: { entity: DtmplData, previous?: DtmplData, changeInfo?: { changeFields: string[], arrayChangeInfos: object } }; // 审计对比数据
37
+ auditData?: AuditData;
37
38
  }
38
39
 
39
40
  class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
@@ -77,7 +78,7 @@ class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
77
78
  }
78
79
 
79
80
  loadData = async () => {
80
- const { sourceId, code: propsCode, versionId, serverKey, codeSource, isAudit } = this.props;
81
+ const { sourceId, code: propsCode, versionId, serverKey, codeSource, isAudit, getAuditData } = this.props;
81
82
  let code = propsCode;
82
83
  if (!code && codeSource) {
83
84
  code = await HcserviceV3.queryCode(sourceId, codeSource, serverKey);
@@ -88,6 +89,7 @@ class DtmplView extends React.PureComponent<DtmplViewProps, DtmplViewStat> {
88
89
  if (isAudit) { // 审计查看页面
89
90
  auditData = await HcserviceV3.requestViewDtmplAuditData(serverKey, sourceId, code, versionId);
90
91
  dtmplData = { ...(auditData?.entity || {}), sourceId: auditData?.sourceId };
92
+ getAuditData(auditData);
91
93
  } else { // 普通查看页面
92
94
  dtmplData = await HcserviceV3.requestViewDtmplData(serverKey, sourceId, code, versionId);
93
95
  }
@@ -1,36 +1,36 @@
1
- .asset-bar {
2
- background-color: #f5f5f5;
3
- width: 200px;
4
- min-height: 100%;
5
-
6
- .asset-list {
7
- display: flex;
8
- flex-wrap: wrap;
9
- padding: 4px;
10
- margin: 0;
11
- list-style: none;
12
-
13
- &>li {
14
- width: 20%;
15
- padding-top: 20%;
16
- flex-shrink: 0;
17
- cursor: pointer;
18
- position: relative;
19
- border-radius: 4px;
20
-
21
- &:hover {
22
- background-color: #ddd;
23
- }
24
-
25
- &>img {
26
- position: absolute;
27
- top: 6px;
28
- left: 6px;
29
- object-fit: contain;
30
- width: calc(~"100% - 12px");
31
- height: calc(~"100% - 12px");
32
- pointer-events: none;
33
- }
34
- }
35
- }
1
+ .asset-bar {
2
+ background-color: #f5f5f5;
3
+ width: 200px;
4
+ min-height: 100%;
5
+
6
+ .asset-list {
7
+ display: flex;
8
+ flex-wrap: wrap;
9
+ padding: 4px;
10
+ margin: 0;
11
+ list-style: none;
12
+
13
+ &>li {
14
+ width: 20%;
15
+ padding-top: 20%;
16
+ flex-shrink: 0;
17
+ cursor: pointer;
18
+ position: relative;
19
+ border-radius: 4px;
20
+
21
+ &:hover {
22
+ background-color: #ddd;
23
+ }
24
+
25
+ &>img {
26
+ position: absolute;
27
+ top: 6px;
28
+ left: 6px;
29
+ object-fit: contain;
30
+ width: calc(~"100% - 12px");
31
+ height: calc(~"100% - 12px");
32
+ pointer-events: none;
33
+ }
34
+ }
35
+ }
36
36
  }