lc-test3 1.1.18 → 1.1.19

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 (2) hide show
  1. package/p.js +52 -174
  2. package/package.json +1 -1
package/p.js CHANGED
@@ -1,174 +1,52 @@
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);
1
+ Error in sandbox:
2
+ index.js:27 TypeError: Class extends value undefined is not a constructor or null
3
+ at __extends (PolylineEdgeModel.js:30:55)
4
+ at eval (PolylineEdgeModel.js:82:3)
5
+ at $csb$eval (PolylineEdgeModel.js:570:3)
6
+ at J (eval.js:31:28)
7
+ at ee.evaluate (transpiled-module.js:800:29)
8
+ at je.evaluateTranspiledModule (manager.js:429:33)
9
+ at c (transpiled-module.js:782:31)
10
+ at $csb$eval (index.js:8:32)
11
+ at J (eval.js:31:28)
12
+ at ee.evaluate (transpiled-module.js:800:29)
13
+ at je.evaluateTranspiledModule (manager.js:429:33)
14
+ at c (transpiled-module.js:782:31)
15
+ at $csb$eval (index.js:5:19)
16
+ at J (eval.js:31:28)
17
+ at ee.evaluate (transpiled-module.js:800:29)
18
+ at je.evaluateTranspiledModule (manager.js:429:33)
19
+ at c (transpiled-module.js:782:31)
20
+ at $csb$eval (LogicFlow.js:18:20)
21
+ at J (eval.js:31:28)
22
+ at ee.evaluate (transpiled-module.js:800:29)
23
+ at je.evaluateTranspiledModule (manager.js:429:33)
24
+ at c (transpiled-module.js:782:31)
25
+ at $csb$eval (index.js:44:24)
26
+ at J (eval.js:31:28)
27
+ at ee.evaluate (transpiled-module.js:800:29)
28
+ at je.evaluateTranspiledModule (manager.js:429:33)
29
+ at c (transpiled-module.js:782:31)
30
+ at $csb$eval (index.js:4:1)
31
+ at J (eval.js:31:28)
32
+ at ee.evaluate (transpiled-module.js:800:29)
33
+ at je.evaluateTranspiledModule (manager.js:429:33)
34
+ at c (transpiled-module.js:782:31)
35
+ at $csb$eval (TraceProcess.js:4:1)
36
+ at J (eval.js:31:28)
37
+ at ee.evaluate (transpiled-module.js:800:29)
38
+ at je.evaluateTranspiledModule (manager.js:429:33)
39
+ at c (transpiled-module.js:782:31)
40
+ at $csb$eval (routes.js:24:1)
41
+ at J (eval.js:31:28)
42
+ at ee.evaluate (transpiled-module.js:800:29)
43
+ at je.evaluateTranspiledModule (manager.js:429:33)
44
+ at c (transpiled-module.js:782:31)
45
+ at $csb$eval (App.js:5:1)
46
+ at J (eval.js:31:28)
47
+ at ee.evaluate (transpiled-module.js:800:29)
48
+ at je.evaluateTranspiledModule (manager.js:429:33)
49
+ at c (transpiled-module.js:782:31)
50
+ at $csb$eval (index.js:2:1)
51
+ at J (eval.js:31:28)
52
+ at ee.evaluate (transpiled-module.js:800:29)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lc-test3",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {