vue2-client 1.2.5 → 1.2.8

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 (44) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +89 -89
  3. package/src/base-client/components/ticket/TicketSubmitSuccessView/TicketSubmitSuccessView.vue +2 -2
  4. package/src/config/CreateQueryConfig.js +40 -0
  5. package/src/config/default/setting.config.js +1 -0
  6. package/src/pages/login/Login.vue +8 -4
  7. package/src/pages/system/ticket/index.vue +427 -0
  8. package/src/pages/system/ticket/submitTicketSuccess.vue +249 -0
  9. package/src/router/async/config.async.js +1 -0
  10. package/src/router/async/router.map.js +2 -2
  11. package/src/services/api/EmployeeDetailsViewApi.js +0 -4
  12. package/src/utils/util.js +34 -4
  13. package/vue.config.js +0 -10
  14. package/src/pages/system/applyInstallView/Core.vue +0 -570
  15. package/src/pages/system/applyInstallView/LFComponents/AddPanel.vue +0 -52
  16. package/src/pages/system/applyInstallView/LFComponents/Control.vue +0 -78
  17. package/src/pages/system/applyInstallView/LFComponents/DataDialog.vue +0 -24
  18. package/src/pages/system/applyInstallView/LFComponents/NodePanel.vue +0 -103
  19. package/src/pages/system/applyInstallView/PropertySetting/Base.vue +0 -124
  20. package/src/pages/system/applyInstallView/PropertySetting/CommonProperty.vue +0 -104
  21. package/src/pages/system/applyInstallView/PropertySetting/PropertyDialog.vue +0 -43
  22. package/src/pages/system/applyInstallView/background/base.png +0 -0
  23. package/src/pages/system/applyInstallView/background/click.png +0 -0
  24. package/src/pages/system/applyInstallView/background/download.png +0 -0
  25. package/src/pages/system/applyInstallView/background/end.png +0 -0
  26. package/src/pages/system/applyInstallView/background/push.png +0 -0
  27. package/src/pages/system/applyInstallView/background/start.png +0 -0
  28. package/src/pages/system/applyInstallView/background/step.png +0 -0
  29. package/src/pages/system/applyInstallView/background/time.png +0 -0
  30. package/src/pages/system/applyInstallView/config.js +0 -22
  31. package/src/pages/system/applyInstallView/data.json +0 -1284
  32. package/src/pages/system/applyInstallView/index.vue +0 -34
  33. package/src/pages/system/applyInstallView/registerNode/Connect.vue +0 -43
  34. package/src/pages/system/applyInstallView/registerNode/index.js +0 -16
  35. package/src/pages/system/applyInstallView/registerNode/registerBackEdge.js +0 -44
  36. package/src/pages/system/applyInstallView/registerNode/registerBase.js +0 -139
  37. package/src/pages/system/applyInstallView/registerNode/registerConnect.js +0 -60
  38. package/src/pages/system/applyInstallView/registerNode/registerDownload.js +0 -92
  39. package/src/pages/system/applyInstallView/registerNode/registerEnd.js +0 -110
  40. package/src/pages/system/applyInstallView/registerNode/registerPolyline.js +0 -14
  41. package/src/pages/system/applyInstallView/registerNode/registerPush.js +0 -127
  42. package/src/pages/system/applyInstallView/registerNode/registerStart.js +0 -105
  43. package/src/pages/system/applyInstallView/registerNode/registerStep.js +0 -209
  44. package/src/pages/system/applyInstallView/registerNode/registerTask.js +0 -29
@@ -1,105 +0,0 @@
1
- export default function registerStart (lf) {
2
- lf.register('start', ({ CircleNode, CircleNodeModel, h }) => {
3
- class StartNode extends CircleNode {
4
- getIconShape () {
5
- const { model } = this.props
6
- const { stroke } = model.getNodeStyle()
7
- const {
8
- x,
9
- y,
10
- width,
11
- height
12
- } = model
13
- return h(
14
- 'svg',
15
- {
16
- x: x - width / 2 + 8,
17
- y: y - height / 2 + 7,
18
- width: 25,
19
- height: 25,
20
- viewBox: '0 0 1024 1024'
21
- },
22
- h(
23
- 'path',
24
- {
25
- fill: stroke,
26
- d: 'M380.677 176.279l390.182 225.272c85.024 49.089 85.024 171.81 0 220.899L380.677 847.721c-85.024 49.089-191.304-12.272-191.304-110.449V286.728c0-98.177 106.28-159.538 191.304-110.449z'
27
- }
28
- )
29
- )
30
- }
31
- getShape () {
32
- const { model } = this.props
33
- const { x, y, r } = model
34
- const { fill, stroke, strokeWidth } = model.getNodeStyle()
35
- return h(
36
- 'g',
37
- {
38
- },
39
- [
40
- h(
41
- 'circle',
42
- {
43
- cx: x,
44
- cy: y,
45
- r,
46
- fill,
47
- stroke,
48
- strokeWidth
49
- }
50
- ),
51
- this.getIconShape()
52
- ]
53
- )
54
- }
55
- }
56
- class StartModel extends CircleNodeModel {
57
- // 自定义节点形状属性
58
- initNodeData (data) {
59
- data.text = {
60
- value: (data.text && data.text.value) || '',
61
- x: data.x,
62
- y: data.y + 35,
63
- dragable: false,
64
- editable: true
65
- }
66
- super.initNodeData(data)
67
- this.r = 20
68
- }
69
- // 自定义节点样式属性
70
- getNodeStyle () {
71
- const style = super.getNodeStyle()
72
- style.stroke = '#FF7B15'
73
- style.strokeWidth = 3
74
- return style
75
- }
76
- // 自定义锚点样式
77
- getAnchorStyle () {
78
- const style = super.getAnchorStyle()
79
- style.hover.r = 8
80
- style.hover.fill = 'rgb(24, 125, 255)'
81
- style.hover.stroke = 'rgb(24, 125, 255)'
82
- return style
83
- }
84
- // 自定义节点outline
85
- getOutlineStyle () {
86
- const style = super.getOutlineStyle()
87
- style.stroke = '#88f'
88
- return style
89
- }
90
- getConnectedTargetRules () {
91
- const rules = super.getConnectedTargetRules()
92
- const notAsTarget = {
93
- message: '起始节点不能作为连线的终点',
94
- validate: () => false
95
- }
96
- rules.push(notAsTarget)
97
- return rules
98
- }
99
- }
100
- return {
101
- view: StartNode,
102
- model: StartModel
103
- }
104
- })
105
- }
@@ -1,209 +0,0 @@
1
- export default function registerStep (lf, clickPlus, mouseDownPlus, showPropView, showSimpleFormView) {
2
- lf.register('step', ({ RectNode, RectNodeModel, h }) => {
3
- class Node extends RectNode {
4
- getIconShape () {
5
- const { model } = this.props
6
- const { stroke } = model.getNodeStyle()
7
- const { x, y } = model
8
- return h(
9
- 'svg',
10
- {
11
- width: 40,
12
- height: 40,
13
- x: x - 20,
14
- y: y - 20,
15
- viewBox: '0 0 1024 1024'
16
- },
17
- h(
18
- 'path',
19
- {
20
- fill: stroke,
21
- d: 'M512 241.777778m-139.377778 0a139.377778 139.377778 0 1 0 278.755556 0 139.377778 139.377778 0 1 0-278.755556 0Z'
22
- }
23
- ),
24
- h(
25
- 'path',
26
- {
27
- fill: stroke,
28
- d: 'M230.4 731.363556m-139.377778 0a139.377778 139.377778 0 1 0 278.755556 0 139.377778 139.377778 0 1 0-278.755556 0Z'
29
- }
30
- ),
31
- h(
32
- 'path',
33
- {
34
- fill: stroke,
35
- d: 'M221.639111 500.622222l-53.816889-12.401778A351.573333 351.573333 0 0 1 512 213.560889v55.296A296.846222 296.846222 0 0 0 221.639111 500.622222zM788.48 787.114667l-43.235556-34.133334A295.822222 295.822222 0 0 0 718.620444 352.711111l38.343112-39.936a350.776889 350.776889 0 0 1 31.516444 474.339556z'
36
- }
37
- ),
38
- h(
39
- 'path',
40
- {
41
- fill: stroke,
42
- d: 'M793.6 730.794667m-139.377778 0a139.377778 139.377778 0 1 0 278.755556 0 139.377778 139.377778 0 1 0-278.755556 0Z'
43
- }
44
- ),
45
- h(
46
- 'path',
47
- {
48
- fill: stroke,
49
- d: 'M520.078222 921.6a353.848889 353.848889 0 0 1-306.289778-176.469333L261.688889 717.596444A297.984 297.984 0 0 0 608.028444 853.333333l16.611556 52.679111A344.974222 344.974222 0 0 1 520.078222 921.6z'
50
- }
51
- )
52
- )
53
- }
54
- getPulsShape () {
55
- const { model } = this.props
56
- // 判断当前节点是否子节点
57
- const graphData = lf.getGraphData()
58
- const edges = graphData.edges
59
- let hasChildNode = false
60
- edges.some(item => {
61
- if (item.sourceNodeId === model.id) {
62
- hasChildNode = true
63
- return true
64
- }
65
- })
66
- if (hasChildNode) {
67
- return
68
- }
69
- return h(
70
- 'svg',
71
- {
72
- x: 70,
73
- y: 20,
74
- width: 30,
75
- height: 30,
76
- viewBox: '0 0 1024 1024',
77
- class: 'time-plus',
78
- onClick: (e) => clickPlus(e, model, [{
79
- type: 'step',
80
- label: '添加步骤'
81
- }]),
82
- onMousedown: (e) => mouseDownPlus(e, model),
83
- onMouseUp: (e) => mouseDownPlus(e, model)
84
- },
85
- h(
86
- 'path',
87
- {
88
- fill: '#f17611',
89
- d: 'M512 512m-448 0a448 448 0 1 0 896 0 448 448 0 1 0-896 0Z'
90
- }
91
- ),
92
- h(
93
- 'path',
94
- {
95
- fill: '#ffffff',
96
- d: 'M448 298.666667h128v426.666666h-128z'
97
- }
98
- ),
99
- h(
100
- 'path',
101
- {
102
- fill: '#ffffff',
103
- d: 'M298.666667 448h426.666666v128H298.666667z'
104
- }
105
- )
106
- )
107
- }
108
- getShape () {
109
- const { model } = this.props
110
- const { width, height, x, y } = model
111
- const { fill, stroke, strokeWidth } = model.getNodeStyle()
112
- return h(
113
- 'g',
114
- {
115
- },
116
- [
117
- h(
118
- 'rect',
119
- {
120
- x: x - (width / 2),
121
- y: y - (height / 2),
122
- width: width,
123
- height: height,
124
- fill,
125
- stroke,
126
- strokeWidth
127
- }
128
- ),
129
- this.getIconShape(),
130
- this.getPulsShape()
131
- ]
132
- )
133
- }
134
- }
135
- class Model extends RectNodeModel {
136
- constructor (data, graphModel) {
137
- data.text = {
138
- value: (data.text && data.text.value) || '',
139
- x: data.x,
140
- y: data.y + 50
141
- }
142
- super(data, graphModel)
143
- // 右键菜单自由配置,也可以通过边的properties或者其他属性条件更换不同菜单
144
- this.menu = [
145
- {
146
- className: 'lf-menu-delete',
147
- text: '删除',
148
- callback (node) {
149
- // const comfirm = window.confirm('你确定要删除吗?')
150
- lf.deleteNode(node.id)
151
- }
152
- },
153
- {
154
- text: '编辑文本',
155
- className: 'lf-menu-item',
156
- callback (node) {
157
- lf.editText(node.id)
158
- }
159
- },
160
- {
161
- text: '编辑属性',
162
- className: 'lf-menu-item',
163
- callback (node) {
164
- showPropView(node)
165
- }
166
- },
167
- {
168
- text: '编辑表单',
169
- className: 'lf-menu-item',
170
- callback (node) {
171
- showSimpleFormView(node)
172
- }
173
- },
174
- {
175
- text: '复制',
176
- className: 'lf-menu-item',
177
- callback (node) {
178
- lf.cloneNode(node.id)
179
- }
180
- }
181
- ]
182
- }
183
- initNodeData (data) {
184
- super.initNodeData(data)
185
- this.width = 70
186
- this.height = 70
187
- }
188
- // 自定义锚点样式
189
- getAnchorStyle () {
190
- const style = super.getAnchorStyle()
191
- style.hover.r = 8
192
- style.hover.fill = 'rgb(24, 125, 255)'
193
- style.hover.stroke = 'rgb(24, 125, 255)'
194
- return style
195
- }
196
- // 自定义节点样式
197
- getNodeStyle () {
198
- const style = super.getNodeStyle()
199
- style.stroke = '#37ADDB'
200
- style.strokeWidth = 3
201
- return style
202
- }
203
- }
204
- return {
205
- view: Node,
206
- model: Model
207
- }
208
- })
209
- }
@@ -1,29 +0,0 @@
1
- export default function registerTask (lf) {
2
- lf.register('task', ({ RectNode, RectNodeModel, h }) => {
3
- class View extends RectNode {
4
- getShape () {
5
- const { model } = this.props
6
- const { width, height, x, y } = model
7
- const position = {
8
- x: x - width / 2,
9
- y: y - height / 2
10
- }
11
- const style = model.getNodeStyle()
12
- return h('rect', {
13
- ...style,
14
- ...position
15
- })
16
- }
17
- }
18
- class Model extends RectNodeModel {
19
- constructor (data, graphModel) {
20
- super(data, graphModel)
21
- this.radius = 20
22
- }
23
- }
24
- return {
25
- view: View,
26
- model: Model
27
- }
28
- })
29
- }