lc-test3 1.1.2 → 1.1.3
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/p.js +53 -213
- package/package.json +1 -1
package/p.js
CHANGED
|
@@ -1,213 +1,53 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
},
|
|
55
|
-
{
|
|
56
|
-
label: "��ȡ���������Ϣ",
|
|
57
|
-
value: "/los/${appName}.getTaskFormExtInfo"
|
|
58
|
-
},
|
|
59
|
-
{
|
|
60
|
-
label: "��ȡ����ʵ������ӿ�",
|
|
61
|
-
value: "/los/${appName}.taskInstanceDetail"
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
label: "��ȡ����ʵ��",
|
|
65
|
-
value: "/los/${appName}.processInstanceDetail"
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
label: "����",
|
|
69
|
-
value: "/los/${appName}.read"
|
|
70
|
-
},
|
|
71
|
-
{
|
|
72
|
-
label: "��ȡ�����б���Ϣ",
|
|
73
|
-
value: "/los/${appName}.listComments"
|
|
74
|
-
},
|
|
75
|
-
{ label: "�����ٽӿ�", value: "/los/${appName}.traceProcess" }]
|
|
76
|
-
|
|
77
|
-
}}>
|
|
78
|
-
|
|
79
|
-
<QueryPage
|
|
80
|
-
title="��������"
|
|
81
|
-
query={
|
|
82
|
-
<FForm
|
|
83
|
-
layout="horizontal"
|
|
84
|
-
layoutAlign="right"
|
|
85
|
-
maxColumns={8}
|
|
86
|
-
maxWidth={343}
|
|
87
|
-
minWidth={263}
|
|
88
|
-
labelWidth={100}
|
|
89
|
-
tid="fForm689">
|
|
90
|
-
|
|
91
|
-
<FFormItem
|
|
92
|
-
label="��������"
|
|
93
|
-
name="processName"
|
|
94
|
-
component="Input"
|
|
95
|
-
tid="fFormItem144" />
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
<FFormItem
|
|
99
|
-
label="��ˮ��"
|
|
100
|
-
name="seqNo"
|
|
101
|
-
component="Input"
|
|
102
|
-
tid="fFormItem908" />
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
<FFormItem
|
|
106
|
-
label="����ʱ��"
|
|
107
|
-
name="times"
|
|
108
|
-
component="DateRangePicker"
|
|
109
|
-
tid="fFormItem469"
|
|
110
|
-
componentProps={{
|
|
111
|
-
allowClear: true,
|
|
112
|
-
showTime: true
|
|
113
|
-
}} />
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
<FFormFooter
|
|
117
|
-
gutter={10}
|
|
118
|
-
align="right"
|
|
119
|
-
gridSpan={-1}
|
|
120
|
-
tid="fFormFooter242">
|
|
121
|
-
|
|
122
|
-
<FReset
|
|
123
|
-
children="����"
|
|
124
|
-
tid="fReset847"
|
|
125
|
-
onClick={() => {
|
|
126
|
-
$function.circulate?.resetPending();
|
|
127
|
-
}} />
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
<FSubmit
|
|
131
|
-
children="��ѯ"
|
|
132
|
-
tid="fSubmit559"
|
|
133
|
-
onSubmit={(values) => {
|
|
134
|
-
$function.circulate?.fetchPending(values);
|
|
135
|
-
}} />
|
|
136
|
-
|
|
137
|
-
</FFormFooter>
|
|
138
|
-
</FForm>
|
|
139
|
-
}
|
|
140
|
-
tid="queryPagec693">
|
|
141
|
-
|
|
142
|
-
<Table
|
|
143
|
-
columns={[
|
|
144
|
-
{
|
|
145
|
-
key: "processName",
|
|
146
|
-
dataIndex: "processName",
|
|
147
|
-
title: "��������",
|
|
148
|
-
mobileTemplateField: "title"
|
|
149
|
-
},
|
|
150
|
-
{
|
|
151
|
-
key: "seqNo",
|
|
152
|
-
dataIndex: "seqNo",
|
|
153
|
-
title: "���̺�",
|
|
154
|
-
mobileTemplateField: "bottom"
|
|
155
|
-
},
|
|
156
|
-
{
|
|
157
|
-
key: "taskName",
|
|
158
|
-
dataIndex: "taskName",
|
|
159
|
-
title: "��������",
|
|
160
|
-
mobileTemplateField: "mainInfo"
|
|
161
|
-
},
|
|
162
|
-
{
|
|
163
|
-
key: "receiveTime",
|
|
164
|
-
dataIndex: "receiveTime",
|
|
165
|
-
title: "����ʱ��",
|
|
166
|
-
render: (text) => new Date(text).toLocaleString()
|
|
167
|
-
},
|
|
168
|
-
{
|
|
169
|
-
key: "startUserName",
|
|
170
|
-
dataIndex: "startUserName",
|
|
171
|
-
title: "������",
|
|
172
|
-
mobileTemplateField: "mainInfo"
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
key: "startUserDeptName",
|
|
176
|
-
dataIndex: "startUserDeptName",
|
|
177
|
-
title: "������֯"
|
|
178
|
-
}]
|
|
179
|
-
}
|
|
180
|
-
tid="table923"
|
|
181
|
-
scroll={{ x: 1000 }}
|
|
182
|
-
dataSource={$variable.circulate?.pending?.items}
|
|
183
|
-
rowKey="taskInstanceId"
|
|
184
|
-
pagination={{
|
|
185
|
-
pageSize: $variable.circulate?.pending.pagination?.pageSize,
|
|
186
|
-
total: $variable.circulate?.pending.pagination?.total,
|
|
187
|
-
current: $variable.circulate?.pending.pagination?.current
|
|
188
|
-
}}
|
|
189
|
-
onChange={(pagination) => {
|
|
190
|
-
$function.circulate.fetchPending({
|
|
191
|
-
pageNo: pagination.current,
|
|
192
|
-
pageSize: pagination.pageSize
|
|
193
|
-
});
|
|
194
|
-
}}
|
|
195
|
-
loading={$variable.circulate?.loadingPending}
|
|
196
|
-
onRowClick={([record]) => {
|
|
197
|
-
$function.task.toTaskDetail([
|
|
198
|
-
record.taskInstanceId,
|
|
199
|
-
record.pendingTaskId,
|
|
200
|
-
true,
|
|
201
|
-
true]
|
|
202
|
-
);
|
|
203
|
-
}}
|
|
204
|
-
rowPointer={true} />
|
|
205
|
-
|
|
206
|
-
</QueryPage>
|
|
207
|
-
</Page>);
|
|
208
|
-
|
|
209
|
-
}
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
export default definePage(App);
|
|
213
|
-
import React from "react";import { definePage } from "@loview/lowcode-react-boot";import { Page, QueryPage, FForm, FFormItem, FFormFooter, FSubmit, FReset, Table } from "@loview/lowcode-react-antd";class App extends React.Component {render() {}}export default definePage(App);
|
|
1
|
+
Unhandled Rejection (Error): We don't know what to do with this node type. We were previously a Statement but we can't fit in here?
|
|
2
|
+
NodePath.insertBefore
|
|
3
|
+
.../loview-react-lowcode/node_modules/.pnpm/@babel+traverse@7.27.4_supports-color@5.5.0/node_modules/@babel/traverse/lib/path/modification.js:58
|
|
4
|
+
JSXElement
|
|
5
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/traverse.ts:672
|
|
6
|
+
669 | removeSiblingCommentsLable(path); // ��֮ǰ����ע�ͣ���ɾ��
|
|
7
|
+
670 | const commentNode = t.jSXExpressionContainer(t.jSXEmptyExpression());
|
|
8
|
+
671 | t.addComment(commentNode.expression, 'inner', commentContent);
|
|
9
|
+
> 672 | path.insertBefore(commentNode);
|
|
10
|
+
| ^ 673 | }
|
|
11
|
+
674 | }
|
|
12
|
+
675 | } else if (getJSXElementName(path.node) === 'ProTable') {
|
|
13
|
+
View compiled
|
|
14
|
+
? 43 stack frames were collapsed.
|
|
15
|
+
AddCommentsFromPage
|
|
16
|
+
.../loview-react-lowcode/packages/core/src/helpers/ast/traverse.ts:642
|
|
17
|
+
639 | * @returns
|
|
18
|
+
640 | */
|
|
19
|
+
641 | export function AddCommentsFromPage(ast: t.File) {
|
|
20
|
+
> 642 | traverse(ast, {
|
|
21
|
+
643 | JSXElement(path) {
|
|
22
|
+
644 | if (getJSXElementName(path.node) === 'Page' || getJSXElementName(path.node) === 'Button' || getJSXElementName(path.node) === 'FSubmit') {
|
|
23
|
+
645 | // Page��Button(����FSubmit)
|
|
24
|
+
View compiled
|
|
25
|
+
LowCodeLightModule.addAccessAndPageComment
|
|
26
|
+
.../loview-react-lowcode/packages/core/src/models/light-module.ts:208
|
|
27
|
+
205 | * @returns
|
|
28
|
+
206 | */
|
|
29
|
+
207 | addAccessAndPageComment() {
|
|
30
|
+
> 208 | const ast = AddCommentsFromPage(this.ast);
|
|
31
|
+
| ^ 209 | // this.code = ast2code(ast);
|
|
32
|
+
210 | // this.cleanCode = ast2code(ast);
|
|
33
|
+
211 | const newCode = ast2code(ast);
|
|
34
|
+
View compiled
|
|
35
|
+
(anonymous function)
|
|
36
|
+
.../loview-react-lowcode/packages/core/src/models/workspace.ts:3230
|
|
37
|
+
3227 |
|
|
38
|
+
3228 | jsFilePaths.forEach(jsFilePath => {
|
|
39
|
+
3229 | const targetFile = this.files.get(jsFilePath) as LowCodeLightModule;
|
|
40
|
+
> 3230 | targetFile.addAccessAndPageComment();
|
|
41
|
+
| ^ 3231 | });
|
|
42
|
+
3232 | });
|
|
43
|
+
3233 | }
|
|
44
|
+
View compiled
|
|
45
|
+
(anonymous function)
|
|
46
|
+
.../loview-react-lowcode/packages/core/src/models/workspace.ts:3228
|
|
47
|
+
3225 | const jsFilePaths = pageToFileMap.get(viewData.name);
|
|
48
|
+
3226 | if (!jsFilePaths) return;
|
|
49
|
+
3227 |
|
|
50
|
+
> 3228 | jsFilePaths.forEach(jsFilePath => {
|
|
51
|
+
| ^ 3229 | const targetFile = this.files.get(jsFilePath) as LowCodeLightModule;
|
|
52
|
+
3230 | targetFile.addAccessAndPageComment();
|
|
53
|
+
3231 | });
|