openatc-components 0.1.139 → 0.1.142

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 (70) hide show
  1. package/package/kisscomps/components/CommonKanban/CommonKanban.vue +8 -4
  2. package/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +1 -1
  3. package/package/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +1 -1
  4. package/package/kisscomps/components/ExpendConfig/ExpendConfig.vue +1 -1
  5. package/package/kisscomps/components/KanBan/kanban.vue +1 -1
  6. package/package/kisscomps/components/OverLap/OverLap.vue +2 -2
  7. package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +1 -1
  8. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +21 -20
  9. package/package/kisscomps/components/PhaseMarker/phasemarker.vue +1 -1
  10. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +1 -1
  11. package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +54 -13
  12. package/package/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +8 -8
  13. package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +2 -0
  14. package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +1 -1
  15. package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +1 -1
  16. package/package/kisscomps/components/Stages/index.vue +32 -2
  17. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +458 -626
  18. package/package/kisscomps/components/XiaoKanban/DirSelector.vue +356 -0
  19. package/package/kisscomps/components/XiaoKanban/index.vue +102 -0
  20. package/package/kisscomps/components/patternConfig/index.js +2 -0
  21. package/package/kisscomps/components/patternConfig/index.vue +1010 -0
  22. package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +349 -0
  23. package/package/kisscomps/components/patternConfig/pattern/planChart/model/coordinationModel.js +665 -0
  24. package/package/kisscomps/components/patternConfig/planContent.vue +572 -0
  25. package/package/kisscomps/components/patternConfig/planMenu.vue +329 -0
  26. package/package/kisscomps/components/patternConfig/utils.js +152 -0
  27. package/package/kisscomps/index.js +4 -0
  28. package/package/kissui.min.js +1 -1
  29. package/package.json +14 -13
  30. package/src/api/control.js +19 -0
  31. package/src/api/device.js +135 -0
  32. package/src/api/route.js +171 -0
  33. package/src/i18n/language/en.js +149 -0
  34. package/src/i18n/language/zh.js +133 -0
  35. package/src/kisscomps/components/CommonKanban/CommonKanban.vue +8 -4
  36. package/src/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +1 -1
  37. package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +1 -1
  38. package/src/kisscomps/components/ExpendConfig/ExpendConfig.vue +1 -1
  39. package/src/kisscomps/components/KanBan/kanban.vue +1 -1
  40. package/src/kisscomps/components/OverLap/OverLap.vue +2 -2
  41. package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +1 -1
  42. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +21 -20
  43. package/src/kisscomps/components/PhaseMarker/phasemarker.vue +1 -1
  44. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +1 -1
  45. package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +54 -13
  46. package/src/kisscomps/components/SchemeConfig/azimuthlocking/utils.js +8 -8
  47. package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +2 -0
  48. package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +1 -1
  49. package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +1 -1
  50. package/src/kisscomps/components/Stages/index.vue +32 -2
  51. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +458 -626
  52. package/src/kisscomps/components/XiaoKanban/DirSelector.vue +356 -0
  53. package/src/kisscomps/components/XiaoKanban/index.vue +102 -0
  54. package/src/kisscomps/components/patternConfig/index.js +2 -0
  55. package/src/kisscomps/components/patternConfig/index.vue +1010 -0
  56. package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +349 -0
  57. package/src/kisscomps/components/patternConfig/pattern/planChart/model/coordinationModel.js +665 -0
  58. package/src/kisscomps/components/patternConfig/planContent.vue +572 -0
  59. package/src/kisscomps/components/patternConfig/planMenu.vue +329 -0
  60. package/src/kisscomps/components/patternConfig/utils.js +152 -0
  61. package/src/kisscomps/index.js +4 -0
  62. package/src/lib/publicjs/KissApi.js +2 -2
  63. package/src/router/index.js +7 -0
  64. package/src/utils/auth.js +24 -3
  65. package/src/views/intersection.vue +1 -1
  66. package/src/views/patternConfig.vue +1468 -0
  67. package/static/apiconfig.json +85 -0
  68. package/static/styles/common.scss +2 -0
  69. package/static/styles/patternConfig.scss +57 -0
  70. package/static/styles/xiaokanban.scss +51 -0
@@ -0,0 +1,356 @@
1
+ /**
2
+ * Copyright (c) 2020 kedacom
3
+ * OpenATC is licensed under Mulan PSL v2.
4
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
5
+ * You may obtain a copy of Mulan PSL v2 at:
6
+ * http://license.coscl.org.cn/MulanPSL2
7
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
+ * See the Mulan PSL v2 for more details.
11
+ **/
12
+ <template>
13
+ <svg t="1545378648902" class="icon"
14
+ style=""
15
+ viewBox="0 0 1024 1024"
16
+ version="1.1"
17
+ xmlns="http://www.w3.org/2000/svg"
18
+ p-id="2200"
19
+ xmlns:xlink="http://www.w3.org/1999/xlink"
20
+ :width="Width" :height="Height">
21
+ <!-- <mask id="shade"> -->
22
+ <path d="M893.44 158.72
23
+ H130.56C99.84 158.72 76.8 181.76 76.8 212.48v599.04c0 30.72 23.04 53.76 53.76 53.76
24
+ h762.88c30.72 0 53.76-23.04 53.76-53.76V212.48c0-30.72-23.04-53.76-53.76-53.76z
25
+ M130.56 194.56
26
+ h762.88c10.24 0 17.92 7.68 17.92 17.92
27
+ v537.6l-209.92-189.44-171.52 143.36-245.76-209.92-171.52 186.88
28
+ V212.48c0-10.24 7.68-17.92 17.92-17.92z
29
+ m-17.92 616.96v-76.8l174.08-189.44 332.8 284.16
30
+ H130.56c-10.24 0-17.92-7.68-17.92-17.92z
31
+ m780.8 17.92
32
+ h-217.6l-120.32-102.4 143.36-120.32 209.92 189.44v12.8c2.56 12.8-5.12 20.48-15.36 20.48z"
33
+ :fill="MaskColor" p-id="2761"
34
+ :class="maskmark ? '' : 'invisible'"></path>
35
+ <path d="M668.16 463.36c56.32 0 104.96-46.08 104.96-104.96 0-56.32-46.08-104.96-104.96-104.96S563.2 302.08 563.2 358.4c0 56.32 46.08 104.96 104.96 104.96z m0-174.08c38.4 0 69.12 30.72 69.12 69.12 0 38.4-30.72 69.12-69.12 69.12-38.4 0-69.12-30.72-69.12-69.12 0-38.4 30.72-69.12 69.12-69.12z"
36
+ :fill="MaskColor" p-id="2762"
37
+ :class="maskmark ? '' : 'invisible'"></path>
38
+ <!-- </mask> -->
39
+ <!-- ====================================[1 East-Straight 东向直行] ============================================= -->
40
+ <path d="M999.936 316.928h-410.624l23.04-39.936-121.856 50.176 121.856 49.664-23.04-39.424h410.624z"
41
+ p-id="2201"
42
+ :stroke-width="PathWidth"
43
+ :fill="status[0].color"
44
+ :class="status[0].isshow ? '' : 'invisible'"
45
+ ></path>
46
+ <!-- ====================================[2 East-Left 东向左转]============================================= -->
47
+ <path d="M825.856 336.896l-5.12-19.968c-2.048 0.512-207.36 55.808-254.464 261.12l-37.376-26.624 38.4 126.464 60.928-117.248-40.96 18.944c45.056-190.464 236.544-242.176 238.592-242.688z"
48
+ p-id="2202"
49
+ :stroke-width="PathWidth"
50
+ :fill="status[1].color"
51
+ :class="status[1].isshow ? '' : 'invisible'"
52
+ ></path>
53
+ <!-- ====================================[3 East-Right 东向右转]============================================= -->
54
+ <path d="M617.984 143.872l39.424 22.528-50.176-122.368-49.664 122.368 39.424-23.04c15.872 84.992 77.824 182.784 275.456 193.536l1.024-20.48c-180.736-9.728-239.616-96.256-255.488-172.544z"
55
+ p-id="2203"
56
+ :stroke-width="PathWidth"
57
+ :fill="status[2].color"
58
+ :class="status[2].isshow ? '' : 'invisible'"
59
+ ></path>
60
+ <!-- ====================================[4 East-Back 东向掉头]============================================= -->
61
+ <path d="M854.528 337.408h145.408v-20.48h-145.408c-33.28 0-60.416 27.136-60.416 60.416 0 32.768 26.624 59.904 59.392 60.416l-14.848 35.328 108.032-45.568-108.032-45.568 14.848 35.328c-21.504-0.512-38.912-18.432-38.912-39.936 0-22.016 17.92-39.936 39.936-39.936z"
62
+ p-id="2204"
63
+ :stroke-width="PathWidth"
64
+ :fill="status[3].color"
65
+ :class="status[3].isshow ? '' : 'invisible'"
66
+ ></path>
67
+ <!-- ====================================[5 West-Straight 西向直行]============================================= -->
68
+ <path d="M533.504 696.832l-121.856-49.664 23.04 39.424H24.064v20.48h410.624l-23.04 39.936z"
69
+ p-id="2205"
70
+ :stroke-width="PathWidth"
71
+ :fill="status[4].color"
72
+ :class="status[4].isshow ? '' : 'invisible'"
73
+ ></path>
74
+ <!-- ====================================[6 West-Left 西向左转]============================================= -->
75
+ <path d="M495.616 472.576l-38.4-126.464-61.44 117.248 40.96-18.944c-45.568 190.464-236.544 242.176-238.592 242.688l5.12 19.968c2.048-0.512 207.36-55.808 254.464-261.12l37.888 26.624z"
76
+ p-id="2206"
77
+ :stroke-width="PathWidth"
78
+ :fill="status[5].color"
79
+ :class="status[5].isshow ? '' : 'invisible'"
80
+ ></path>
81
+ <!-- ====================================[7 West-Right 西向右转]============================================= -->
82
+ <path d="M427.008 880.128c-15.872-84.992-77.824-182.784-275.456-193.536l-1.024 20.48c181.248 10.24 239.616 96.768 255.488 173.056l-39.424-22.528 50.176 122.368 49.664-122.368-39.424 22.528z"
83
+ p-id="2207"
84
+ :stroke-width="PathWidth"
85
+ :fill="status[6].color"
86
+ :class="status[6].isshow ? '' : 'invisible'"
87
+ ></path>
88
+ <!-- ====================================[8 West-Back 西向掉头]============================================= -->
89
+ <path d="M170.496 586.752l14.848-35.328-108.032 45.568 108.032 45.568-14.848-35.328c21.504 0.512 38.912 18.432 38.912 39.936 0 22.016-17.92 39.936-39.936 39.936H24.064v20.48h145.408c33.28 0 60.416-27.136 60.416-60.416 0-33.28-26.624-59.904-59.392-60.416z"
90
+ p-id="2205"
91
+ :stroke-width="PathWidth"
92
+ :fill="status[7].color"
93
+ :class="status[7].isshow ? '' : 'invisible'"
94
+ ></path>
95
+ <!-- ====================================[9 North-Straight北向直行]============================================= -->
96
+ <path d="M337.408 434.688V24.064h-20.48v410.624l-39.936-23.04 50.176 121.856 49.664-121.856z"
97
+ p-id="2209"
98
+ :stroke-width="PathWidth"
99
+ :fill="status[8].color"
100
+ :class="status[8].isshow ? '' : 'invisible'"
101
+ ></path>
102
+ <!-- ====================================[10 North-Left 北向左转]============================================= -->
103
+ <path d="M677.888 457.216l-117.248-60.928 18.944 40.96C389.12 391.68 337.408 200.192 336.896 198.144l-19.968 5.12c0.512 2.048 55.808 207.36 261.12 254.464l-26.624 37.376 126.464-37.888z"
104
+ p-id="2210"
105
+ :stroke-width="PathWidth"
106
+ :fill="status[9].color"
107
+ :class="status[9].isshow ? '' : 'invisible'"
108
+ ></path>
109
+ <!-- ====================================[11 North-Right 北向右转]============================================ -->
110
+ <path d="M337.408 151.552l-20.48-1.024c-10.24 181.248-96.768 239.616-173.056 255.488l22.528-39.424-121.856 50.176 122.368 49.664-23.04-39.424c84.48-15.872 182.272-77.824 193.536-275.456z"
111
+ p-id="2211"
112
+ :stroke-width="PathWidth"
113
+ :fill="status[10].color"
114
+ :class="status[10].isshow ? '' : 'invisible'"
115
+ ></path>
116
+ <!-- ====================================[12 North-Back 北向掉头]============================================= -->
117
+ <path d="M472.576 185.344l-45.568-108.032-45.568 108.032 35.328-14.848c-0.512 21.504-18.432 38.912-39.936 38.912-22.016 0-39.936-17.92-39.936-39.936V24.064h-20.48v145.408c0 33.28 27.136 60.416 60.416 60.416 32.768 0 59.904-26.624 60.416-59.392l35.328 14.848z"
118
+ p-id="2212"
119
+ :stroke-width="PathWidth"
120
+ :fill="status[11].color"
121
+ :class="status[11].isshow ? '' : 'invisible'"
122
+ ></path>
123
+ <!-- ====================================[13 South-Straight 南向直行]============================================= -->
124
+ <path d="M747.008 612.352l-50.176-121.856-49.664 121.856 39.424-23.04v410.624h20.48v-410.624z"
125
+ p-id="2213"
126
+ :stroke-width="PathWidth"
127
+ :fill="status[12].color"
128
+ :class="status[12].isshow ? '' : 'invisible'"
129
+ ></path>
130
+ <!-- ====================================[14 South-Letf 南向左转]============================================= -->
131
+ <path d="M445.44 566.272l26.624-37.376-126.464 38.4 117.248 60.928-18.944-40.96c190.464 45.568 242.176 236.544 242.688 238.592l19.968-5.12c0-2.56-55.296-207.36-261.12-254.464z"
132
+ p-id="2214"
133
+ :stroke-width="PathWidth"
134
+ :fill="status[13].color"
135
+ :class="status[13].isshow ? '' : 'invisible'"
136
+ ></path>
137
+ <!-- ====================================[15 South-Right 南向右转]============================================= -->
138
+ <path d="M979.456 607.232l-122.368-49.664 23.04 39.424c-84.992 15.872-182.784 77.824-193.536 275.456l20.48 1.024c10.24-181.248 96.768-239.616 173.056-255.488l-22.528 39.424 121.856-50.176z"
139
+ p-id="2215"
140
+ :stroke-width="PathWidth"
141
+ :fill="status[14].color"
142
+ :class="status[14].isshow ? '' : 'invisible'"
143
+ ></path>
144
+ <!-- ====================================[16 South-Back 南向掉头]============================================ -->
145
+ <path d="M646.656 794.112c-32.768 0-59.904 26.624-60.416 59.392l-35.328-14.848 45.568 108.032 45.568-108.032-35.328 14.848c0.512-21.504 18.432-38.912 39.936-38.912 22.016 0 39.936 17.92 39.936 39.936v145.408h20.48v-145.408c0-33.28-27.136-60.416-60.416-60.416z"
146
+ p-id="2216"
147
+ :stroke-width="PathWidth"
148
+ :fill="status[15].color"
149
+ :class="status[15].isshow ? '' : 'invisible'"
150
+ ></path>
151
+ </svg>
152
+ </template>
153
+ <script>
154
+ export default {
155
+ name: 'DirSelector',
156
+ props: {
157
+ showlist: {
158
+ type: Array,
159
+ default: function () {
160
+ return [
161
+ {
162
+ id: 1,
163
+ color: 'red'
164
+ },
165
+ {
166
+ id: 2,
167
+ color: 'yellow'
168
+ }
169
+ ]
170
+ }
171
+ },
172
+ Width: {
173
+ type: String,
174
+ default: '200px'
175
+ },
176
+ Height: {
177
+ type: String,
178
+ default: '200px'
179
+ },
180
+ PathWidth: {
181
+ type: Number,
182
+ default: 18
183
+ },
184
+ ISActiveMask: {
185
+ type: Boolean,
186
+ default: false
187
+ },
188
+ MaskColor: {
189
+ type: String,
190
+ default: '#0096ba'
191
+ }
192
+ },
193
+ data () {
194
+ return {
195
+ maskmark: false,
196
+ status: [
197
+ {
198
+ id: 1,
199
+ name: 'East-Straight',
200
+ isshow: false,
201
+ color: '#0096ba'
202
+ },
203
+ {
204
+ id: 2,
205
+ name: 'East-Left',
206
+ isshow: false,
207
+ color: '#0096ba'
208
+ },
209
+ {
210
+ id: 3,
211
+ name: 'East-Right',
212
+ isshow: false,
213
+ color: '#0096ba'
214
+ },
215
+ {
216
+ id: 4,
217
+ name: 'East-Back ',
218
+ isshow: false,
219
+ color: '#0096ba'
220
+ },
221
+ {
222
+ id: 5,
223
+ name: 'West-Straight',
224
+ isshow: false,
225
+ color: '#0096ba'
226
+ },
227
+ {
228
+ id: 6,
229
+ name: 'West-Left',
230
+ isshow: false,
231
+ color: '#0096ba'
232
+ },
233
+ {
234
+ id: 7,
235
+ name: 'West-Right',
236
+ isshow: false,
237
+ color: '#0096ba'
238
+ },
239
+ {
240
+ id: 8,
241
+ name: 'West-Back',
242
+ isshow: false,
243
+ color: '#0096ba'
244
+ },
245
+ {
246
+ id: 9,
247
+ name: 'North-Straight',
248
+ isshow: false,
249
+ color: '#0096ba'
250
+ },
251
+ {
252
+ id: 10,
253
+ name: 'North-Left',
254
+ isshow: false,
255
+ color: '#0096ba'
256
+ },
257
+ {
258
+ id: 11,
259
+ name: 'North-Right',
260
+ isshow: false,
261
+ color: '#0096ba'
262
+ },
263
+ {
264
+ id: 12,
265
+ name: 'North-Back',
266
+ isshow: false,
267
+ color: '#0096ba'
268
+ },
269
+ {
270
+ id: 13,
271
+ name: 'South-Straight',
272
+ isshow: false,
273
+ color: '#0096ba'
274
+ },
275
+ {
276
+ id: 14,
277
+ name: 'South-Left',
278
+ isshow: false,
279
+ color: '#0096ba'
280
+ },
281
+ {
282
+ id: 15,
283
+ name: 'South-Right',
284
+ isshow: false,
285
+ color: '#0096ba'
286
+ },
287
+ {
288
+ id: 16,
289
+ name: 'South-Back',
290
+ isshow: false,
291
+ color: '#0096ba'
292
+ }
293
+ ]
294
+ }
295
+ },
296
+ methods: {
297
+ randShow () {
298
+ let num1 = parseInt(Math.random() * (15 - 0 + 1) + 0)
299
+ let num2 = parseInt(Math.random() * (15 - 0 + 1) + 0)
300
+ for (let i = 0; i < 16; i++) {
301
+ if (this.status[i].isshow) {
302
+ this.status[i].isshow = false
303
+ }
304
+ if (i === num1 || i === num2) {
305
+ this.status[i].isshow = true
306
+ }
307
+ }
308
+ },
309
+ refreshShow (showList) {
310
+ if (showList.length > 16) {
311
+ console.log('list can not be bigger than 16!')
312
+ }
313
+ this.maskmark = false
314
+ if (showList.length <= 0) {
315
+ if (this.ISActiveMask) {
316
+ this.maskmark = true
317
+ }
318
+ }
319
+
320
+ for (let i = 0; i < 16; i++) {
321
+ if (this.status[i].isshow) {
322
+ this.status[i].isshow = false
323
+ }
324
+ }
325
+ for (let i = 0; i < 16; i++) {
326
+ if (i < showList.length) {
327
+ let id = showList[i].id
328
+ if (id > 16 || id <= 0) {
329
+ console.log('Id is invalied!')
330
+ continue
331
+ }
332
+ this.status[id - 1].isshow = true
333
+ this.status[id - 1].color = showList[i].color
334
+ }
335
+ }
336
+ }
337
+ },
338
+ created () {
339
+ this.refreshShow(this.showlist)
340
+ },
341
+ watch: {
342
+ showlist: {
343
+ handler: function (newList) {
344
+ this.refreshShow(newList)
345
+ },
346
+ deep: true // 深度监听
347
+ }
348
+ }
349
+ }
350
+ </script>
351
+
352
+ <style scoped>
353
+ .invisible {
354
+ visibility: hidden;
355
+ }
356
+ </style>
@@ -0,0 +1,102 @@
1
+ /**
2
+ * Copyright (c) 2020 kedacom
3
+ * OpenATC is licensed under Mulan PSL v2.
4
+ * You can use this software according to the terms and conditions of the Mulan PSL v2.
5
+ * You may obtain a copy of Mulan PSL v2 at:
6
+ * http://license.coscl.org.cn/MulanPSL2
7
+ * THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND,
8
+ * EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT,
9
+ * MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
10
+ * See the Mulan PSL v2 for more details.
11
+ **/
12
+ <template>
13
+ <div class="xiaokanban">
14
+ <div class="board-column-header">
15
+ {{headerText}}
16
+ </div>
17
+ <draggable
18
+ class="board-column-content"
19
+ :list="list"
20
+ :options="options">
21
+ <div class="board-item" v-for="element in list" :key="element.id">
22
+ <el-row :gutter="25">
23
+ <el-col :span="4">
24
+ <el-tooltip class="item" effect="dark" placement="left">
25
+ <div slot="content">{{$t('openatccomponents.pattern.phase') + ' ' + element.id}}</div>
26
+ <div class="phase-description">
27
+ <DirSelector Width="40px" Height="40px" :showlist="element.desc" :ISActiveMask="ISActiveMask" :MaskColor="MaskColor"></DirSelector>
28
+ </div>
29
+ </el-tooltip>
30
+ </el-col>
31
+ <el-col :span="19">
32
+ <el-input-number controls-position="right" :min="0" :max="255" :step="1" v-model.number="element.value" ref="type"></el-input-number>
33
+ </el-col>
34
+ </el-row>
35
+ </div>
36
+ </draggable>
37
+ </div>
38
+ </template>
39
+ <script>
40
+ import draggable from 'vuedraggable'
41
+ import DirSelector from './DirSelector'
42
+
43
+ export default {
44
+ name: 'xiao-kan-ban',
45
+ components: {
46
+ draggable,
47
+ DirSelector
48
+ },
49
+ props: {
50
+ headerText: {
51
+ type: String,
52
+ default: 'Header'
53
+ },
54
+ options: {
55
+ type: Object,
56
+ default () {
57
+ return {}
58
+ }
59
+ },
60
+ list: {
61
+ type: Array,
62
+ default () {
63
+ return []
64
+ }
65
+ },
66
+ index: {
67
+ type: Number
68
+ },
69
+ ISActiveMask: {
70
+ type: Boolean,
71
+ default: true
72
+ },
73
+ // 当phase的描述为空时,显示的图形颜色。
74
+ MaskColor: {
75
+ type: String,
76
+ default: '#000000'
77
+ }
78
+ },
79
+ created () {
80
+ console.log('list', this.list)
81
+ },
82
+ watch: {
83
+ list: {
84
+ handler: function () {
85
+ let list = this.$refs.type
86
+ let cycle = 0
87
+ let n = this.index
88
+ for (let i = 0; i < list.length; i++) {
89
+ cycle = cycle + Number(list[i].currentValue)
90
+ }
91
+ let obj = {}
92
+ obj.index = n
93
+ obj.cycle = cycle
94
+ this.$emit('fatherMethod', obj)
95
+ },
96
+ deep: true
97
+ }
98
+ }
99
+ }
100
+ </script>
101
+ <style lang="scss">
102
+ </style>
@@ -0,0 +1,2 @@
1
+ import PatternConfig from './index.vue'
2
+ export default PatternConfig