lc-test3 1.0.9 → 1.1.2

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 ADDED
@@ -0,0 +1,213 @@
1
+ import React from "react";
2
+ import { definePage } from "@loview/lowcode-react-boot";
3
+ import {
4
+ Page,
5
+ QueryPage,
6
+ FForm,
7
+ FFormItem,
8
+ FFormFooter,
9
+ FSubmit,
10
+ FReset,
11
+ Table } from
12
+ "@loview/lowcode-react-antd";
13
+
14
+ class App extends React.Component {
15
+ render() {/**
16
+ * RESOURCESTREE-START
17
+ * interfaces:
18
+ * -
19
+ * interfaceName: ��ѯ��������
20
+ * interface: /los/${appName}.pagePendingCirculateTask
21
+ * -
22
+ * interfaceName: ��ȡ���������Ϣ
23
+ * interface: /los/${appName}.getTaskFormExtInfo
24
+ * -
25
+ * interfaceName: ��ȡ����ʵ������ӿ�
26
+ * interface: /los/${appName}.taskInstanceDetail
27
+ * -
28
+ * interfaceName: ��ȡ����ʵ��
29
+ * interface: /los/${appName}.processInstanceDetail
30
+ * -
31
+ * interfaceName: ����
32
+ * interface: /los/${appName}.read
33
+ * -
34
+ * interfaceName: ��ȡ�����б���Ϣ
35
+ * interface: /los/${appName}.listComments
36
+ * -
37
+ * interfaceName: ����׷�ٽӿ�
38
+ * interface: /los/${appName}.traceProcess
39
+ * RESOURCESTREE-END
40
+ */
41
+
42
+
43
+ return (
44
+ <Page
45
+ onMount={() => {
46
+ $function.circulate?.fetchPending();
47
+ }}
48
+ title="��������"
49
+ access={{
50
+ relatedInterfaces: [
51
+ {
52
+ label: "��ѯ��������",
53
+ value: "/los/${appName}.pagePendingCirculateTask"
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);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lc-test3",
3
- "version": "1.0.9",
3
+ "version": "1.1.2",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {