lc-test3 1.1.16 → 1.1.18
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 +174 -28
- package/package.json +1 -1
package/p.js
CHANGED
|
@@ -1,28 +1,174 @@
|
|
|
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
|
-
|
|
1
|
+
webapp/src/pages/Home.js
|
|
2
|
+
|
|
3
|
+
Դ�ļ�
|
|
4
|
+
import React from "react";
|
|
5
|
+
import { definePage } from "@loview/lowcode-react-boot";
|
|
6
|
+
import {
|
|
7
|
+
Page,
|
|
8
|
+
QueryPage,
|
|
9
|
+
Button,
|
|
10
|
+
Space,
|
|
11
|
+
Table, Section, Row, Col } 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}.startProcess
|
|
21
|
+
* RESOURCESTREE-END
|
|
22
|
+
*/
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
return (
|
|
26
|
+
<Page
|
|
27
|
+
title="��������"
|
|
28
|
+
onMount={() => {
|
|
29
|
+
$function.process?.fetch();
|
|
30
|
+
}}
|
|
31
|
+
access={{
|
|
32
|
+
relatedInterfaces: [
|
|
33
|
+
{
|
|
34
|
+
label: "��ѯ�ɷ�������",
|
|
35
|
+
value: "/los/${appName}.listCanStartProcess"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
label: "��ѯ�����ڵ��Ƿ����˽ڵ� ",
|
|
39
|
+
value: "/los/${appName}.getFirstNodeForStarter"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
label: "�������� ",
|
|
43
|
+
value: "/los/${appName}.startProcess"
|
|
44
|
+
}]
|
|
45
|
+
|
|
46
|
+
}}>
|
|
47
|
+
|
|
48
|
+
<QueryPage
|
|
49
|
+
title="��������"
|
|
50
|
+
toolbar={
|
|
51
|
+
<Space tid="space232">
|
|
52
|
+
<Button
|
|
53
|
+
children="ˢ��"
|
|
54
|
+
tid="button702"
|
|
55
|
+
type="primary"
|
|
56
|
+
icon={{ icon: "SyncOutlined" }}
|
|
57
|
+
onClick={() => {
|
|
58
|
+
$function.process?.fetch();
|
|
59
|
+
}} />
|
|
60
|
+
|
|
61
|
+
</Space>
|
|
62
|
+
}
|
|
63
|
+
tid="queryPageb20c">
|
|
64
|
+
|
|
65
|
+
<Table
|
|
66
|
+
columns={[
|
|
67
|
+
{
|
|
68
|
+
key: "name",
|
|
69
|
+
dataIndex: "name",
|
|
70
|
+
title: "��������",
|
|
71
|
+
mobileTemplateField: "title"
|
|
72
|
+
},
|
|
73
|
+
{ key: "key", dataIndex: "key", title: "����key", width: 400 },
|
|
74
|
+
{
|
|
75
|
+
key: "deployTime",
|
|
76
|
+
dataIndex: "deployTime",
|
|
77
|
+
title: "����ʱ��",
|
|
78
|
+
width: 180,
|
|
79
|
+
render: (text) => text && new Date(text).toLocaleString()
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
key: "version",
|
|
83
|
+
dataIndex: "version",
|
|
84
|
+
title: "�汾��",
|
|
85
|
+
width: 80
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
key: "option",
|
|
89
|
+
title: "����",
|
|
90
|
+
width: 80,
|
|
91
|
+
mobileTemplateField: "action",
|
|
92
|
+
render: (_, record) => {
|
|
93
|
+
if (record.activeStatus === "active") {
|
|
94
|
+
return (
|
|
95
|
+
<a onClick={() => $function.process.startProcess(record)}>
|
|
96
|
+
����
|
|
97
|
+
</a>);
|
|
98
|
+
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
}]
|
|
102
|
+
}
|
|
103
|
+
tid="table582"
|
|
104
|
+
scroll={{ x: 600 }}
|
|
105
|
+
dataSource={$variable.process?.items}
|
|
106
|
+
rowKey="id"
|
|
107
|
+
pagination={false}
|
|
108
|
+
loading={$variable.process?.loading} />
|
|
109
|
+
|
|
110
|
+
</QueryPage>
|
|
111
|
+
</Page>);
|
|
112
|
+
|
|
113
|
+
}
|
|
114
|
+
}
|
|
115
|
+
export default definePage(App);
|
|
116
|
+
|
|
117
|
+
|
|
118
|
+
������ļ�
|
|
119
|
+
import React from "react";import { definePage } from "@loview/lowcode-react-boot";import { Page, QueryPage, Button, Space, Table, Section, Row, Col } from "@loview/lowcode-react-antd";class App extends React.Component {render() {return (/**
|
|
120
|
+
* RESOURCESTREE-START
|
|
121
|
+
* interfaces:
|
|
122
|
+
* -
|
|
123
|
+
* interfaceName: ��������
|
|
124
|
+
* interface: /los/${appName}.startProcess
|
|
125
|
+
* RESOURCESTREE-END
|
|
126
|
+
*/<Page data-dnd="%2Fsrc%2Fpages%2FHome.js:Page:page2bb0" title="��������" onMount={() => {$function.process?.fetch?.();}} access={{ relatedInterfaces: [{ label: "��ѯ�ɷ�������", value: "/los/${appName}.listCanStartProcess" }, { label: "��ѯ�����ڵ��Ƿ����˽ڵ�\t", value: "/los/${appName}.getFirstNodeForStarter" }, { label: "��������\t", value: "/los/${appName}.startProcess" }] }}>
|
|
127
|
+
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
<QueryPage data-dnd="%2Fsrc%2Fpages%2FHome.js:QueryPage:queryPageb20c" title="��������" toolbar={<Space data-dnd="%2Fsrc%2Fpages%2FHome.js:Space:space232" tid="space232">
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
<Button data-dnd="%2Fsrc%2Fpages%2FHome.js:Button:button702" children="ˢ��" tid="button702" type="primary" icon={{ icon: "SyncOutlined" }} onClick={() => {$function.process?.fetch?.();}} />
|
|
139
|
+
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
|
|
143
|
+
|
|
144
|
+
|
|
145
|
+
|
|
146
|
+
</Space>} tid="queryPageb20c">
|
|
147
|
+
|
|
148
|
+
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
|
|
154
|
+
<Table data-dnd="%2Fsrc%2Fpages%2FHome.js:Table:table582" columns={[{ key: "name", dataIndex: "name", title: "��������", mobileTemplateField: "title" }, { key: "key", dataIndex: "key", title: "����key", width: 400 }, { key: "deployTime", dataIndex: "deployTime", title: "����ʱ��", width: 180, render: (text) => text && new Date(text).toLocaleString() }, { key: "version", dataIndex: "version", title: "�汾��", width: 80 }, { key: "option", title: "����", width: 80, mobileTemplateField: "action", render: (_, record) => {if (record.activeStatus === "active") {return (<a onClick={() => $function.process.startProcess(record)}>
|
|
155
|
+
|
|
156
|
+
|
|
157
|
+
|
|
158
|
+
����
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
</a>);}} }]} tid="table582" scroll={{ x: 600 }} dataSource={$variable.process?.items} rowKey="id" pagination={false} loading={$variable.process?.loading} />
|
|
163
|
+
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
</QueryPage>
|
|
171
|
+
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
</Page>);}}export default definePage(App);
|