openatc-components 0.0.95 → 0.0.98
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/package/kisscomps/components/BoardCard/BoardCard.vue +6 -1
- package/package/kisscomps/components/KanBan/kanban.vue +6 -6
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +152 -37
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +16 -0
- package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +190 -0
- package/package/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -0
- package/package/kisscomps/components/StageStatus/StageStatus.vue +6 -2
- package/package/kisscomps/index.js +2 -0
- package/package/kissui.min.js +1 -1
- package/package.json +13 -12
- package/src/i18n/language/en.js +29 -1
- package/src/i18n/language/zh.js +29 -1
- package/src/kisscomps/components/BoardCard/BoardCard.vue +6 -1
- package/src/kisscomps/components/KanBan/kanban.vue +6 -6
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +152 -37
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +16 -0
- package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +190 -0
- package/src/kisscomps/components/SchemeConfig/priorityControl/utils.js +163 -0
- package/src/kisscomps/components/StageStatus/StageStatus.vue +6 -2
- package/src/kisscomps/index.js +2 -0
- package/static/styles/schemeconfig.scss +52 -0
|
@@ -0,0 +1,163 @@
|
|
|
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
|
+
import Edgebase from '@openatc/edgebase-front'
|
|
13
|
+
let images = [{
|
|
14
|
+
id: 1,
|
|
15
|
+
// name: 'East-Straight',
|
|
16
|
+
name: 'openatccomponents.overview.es',
|
|
17
|
+
// img: require('./images/East-Straight.svg'),
|
|
18
|
+
class: 'iconfont icon-icon-test2'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
id: 2,
|
|
22
|
+
// name: 'East-Left',
|
|
23
|
+
name: 'openatccomponents.overview.el',
|
|
24
|
+
// img: require('./images/East-Left.svg'),
|
|
25
|
+
class: 'iconfont icon-icon-test4'
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
id: 3,
|
|
29
|
+
// name: 'East-Right',
|
|
30
|
+
name: 'openatccomponents.overview.er',
|
|
31
|
+
// img: require('./images/East-Right.svg'),
|
|
32
|
+
class: 'iconfont icon-icon-test3'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
id: 4,
|
|
36
|
+
// name: 'East-Back',
|
|
37
|
+
name: 'openatccomponents.overview.eb',
|
|
38
|
+
// img: require('./images/East-Back.svg'),
|
|
39
|
+
class: 'iconfont icon-icon-test6'
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
id: 5,
|
|
43
|
+
// name: 'West-Straight',
|
|
44
|
+
name: 'openatccomponents.overview.ws',
|
|
45
|
+
// img: require('./images/West-Straight.svg'),
|
|
46
|
+
class: 'iconfont icon-icon-test5'
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
id: 6,
|
|
50
|
+
// name: 'West-Left',
|
|
51
|
+
name: 'openatccomponents.overview.wl',
|
|
52
|
+
// img: require('./images/West-Left.svg'),
|
|
53
|
+
class: 'iconfont icon-icon-test7'
|
|
54
|
+
},
|
|
55
|
+
{
|
|
56
|
+
id: 7,
|
|
57
|
+
// name: 'West-Right',
|
|
58
|
+
name: 'openatccomponents.overview.wr',
|
|
59
|
+
// img: require('./images/West-Right.svg'),
|
|
60
|
+
class: 'iconfont icon-icon-test9'
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
id: 8,
|
|
64
|
+
// name: 'West-Back',
|
|
65
|
+
name: 'openatccomponents.overview.wb',
|
|
66
|
+
// img: require('./images/West-Back.svg'),
|
|
67
|
+
class: 'iconfont icon-icon-test8'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
id: 9,
|
|
71
|
+
// name: 'North-Straight',
|
|
72
|
+
name: 'openatccomponents.overview.ns',
|
|
73
|
+
// img: require('./images/North-Straight.svg'),
|
|
74
|
+
class: 'iconfont icon-icon-test10'
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
id: 10,
|
|
78
|
+
// name: 'North-Left',
|
|
79
|
+
name: 'openatccomponents.overview.nl',
|
|
80
|
+
// img: require('./images/North-Left.svg'),
|
|
81
|
+
class: 'iconfont icon-icon-test12'
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
id: 11,
|
|
85
|
+
// name: 'North-Right',
|
|
86
|
+
name: 'openatccomponents.overview.nr',
|
|
87
|
+
// img: require('./images/North-Right.svg'),
|
|
88
|
+
class: 'iconfont icon-icon-test13'
|
|
89
|
+
},
|
|
90
|
+
{
|
|
91
|
+
id: 12,
|
|
92
|
+
// name: 'North-Back',
|
|
93
|
+
name: 'openatccomponents.overview.nb',
|
|
94
|
+
// img: require('./images/North-Back.svg'),
|
|
95
|
+
class: 'iconfont icon-icon-test11'
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
id: 13,
|
|
99
|
+
// name: 'South-Straight',
|
|
100
|
+
name: 'openatccomponents.overview.ss',
|
|
101
|
+
// img: require('./images/South-Straight.svg'),
|
|
102
|
+
class: 'iconfont icon-icon-test15'
|
|
103
|
+
},
|
|
104
|
+
{
|
|
105
|
+
id: 14,
|
|
106
|
+
// name: 'South-Left',
|
|
107
|
+
name: 'openatccomponents.overview.sl',
|
|
108
|
+
// img: require('./images/South-Left.svg'),
|
|
109
|
+
class: 'iconfont icon-icon-test14'
|
|
110
|
+
},
|
|
111
|
+
{
|
|
112
|
+
id: 15,
|
|
113
|
+
// name: 'South-Right',
|
|
114
|
+
name: 'openatccomponents.overview.sr',
|
|
115
|
+
// img: require('./images/South-Right.svg'),
|
|
116
|
+
class: 'iconfont icon-icon-test'
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
id: 16,
|
|
120
|
+
// name: 'South-Back',
|
|
121
|
+
name: 'openatccomponents.overview.sb',
|
|
122
|
+
// img: require('./images/South-Back.svg'),
|
|
123
|
+
class: 'iconfont icon-icon-test1'
|
|
124
|
+
}]
|
|
125
|
+
|
|
126
|
+
const getImages = () => {
|
|
127
|
+
if (Edgebase.Store.getters.roadDirection === 'left') {
|
|
128
|
+
// 左行下,掉头图标替换
|
|
129
|
+
images.forEach((img) => {
|
|
130
|
+
if (img.id === 4) {
|
|
131
|
+
img.class = 'iconfont icon-dongtiaotou-yinni'
|
|
132
|
+
}
|
|
133
|
+
if (img.id === 8) {
|
|
134
|
+
img.class = 'iconfont icon-xitiaotou-yinni'
|
|
135
|
+
}
|
|
136
|
+
if (img.id === 12) {
|
|
137
|
+
img.class = 'iconfont icon-beitiaotou-yinni'
|
|
138
|
+
}
|
|
139
|
+
if (img.id === 16) {
|
|
140
|
+
img.class = 'iconfont icon-nantiaotou-yinni'
|
|
141
|
+
}
|
|
142
|
+
})
|
|
143
|
+
}
|
|
144
|
+
return images
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
const getDirName = (arr) => {
|
|
148
|
+
let res = ''
|
|
149
|
+
let nameArr = []
|
|
150
|
+
for (let item of arr) {
|
|
151
|
+
let id = item.id
|
|
152
|
+
for (let img of images) {
|
|
153
|
+
if (id === img.id) {
|
|
154
|
+
let name = img.name
|
|
155
|
+
nameArr.push(name)
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
res = nameArr
|
|
160
|
+
return res
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export {getImages, getDirName}
|
|
@@ -57,7 +57,9 @@ export default {
|
|
|
57
57
|
if (this.contrloType === 'stage') {
|
|
58
58
|
this.getStageLine()
|
|
59
59
|
} else {
|
|
60
|
-
|
|
60
|
+
if (this.controlData) {
|
|
61
|
+
this.getPhaseId(this.controlData)
|
|
62
|
+
}
|
|
61
63
|
}
|
|
62
64
|
},
|
|
63
65
|
// 深度观察监听
|
|
@@ -66,7 +68,9 @@ export default {
|
|
|
66
68
|
patternStatusList: {
|
|
67
69
|
handler: function (val, oldVal) {
|
|
68
70
|
// this.handleStages() // 计算屏障高度
|
|
69
|
-
|
|
71
|
+
if (this.patternStatusList) {
|
|
72
|
+
this.getPhaseId(this.patternStatusList)
|
|
73
|
+
}
|
|
70
74
|
},
|
|
71
75
|
// 深度观察监听
|
|
72
76
|
deep: true
|
package/src/kisscomps/index.js
CHANGED
|
@@ -21,6 +21,7 @@ import StageBord from './components/StageBord/index'
|
|
|
21
21
|
import ExpendConfig from './components/ExpendConfig/index'
|
|
22
22
|
import PatternWalkSvg from './components/PatternWalkSvg/index'
|
|
23
23
|
import tentativeplancontrolmodal from './components/SchemeConfig/tentativeplancontrolmodal/index'
|
|
24
|
+
import priorityControl from './components/SchemeConfig/priorityControl/index'
|
|
24
25
|
import { setToken, setHost } from '../utils/auth.js'
|
|
25
26
|
import componentsGlobalParam from '../store/modules/globalParam'
|
|
26
27
|
|
|
@@ -51,6 +52,7 @@ const components = {
|
|
|
51
52
|
StageBord,
|
|
52
53
|
ExpendConfig,
|
|
53
54
|
PatternWalkSvg,
|
|
55
|
+
priorityControl,
|
|
54
56
|
tentativeplancontrolmodal
|
|
55
57
|
}
|
|
56
58
|
|
|
@@ -273,6 +273,58 @@
|
|
|
273
273
|
color: $--color-text-secondary;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
|
+
.priority-control{
|
|
277
|
+
height: 100%;
|
|
278
|
+
padding: 21px 0px 21px 28px;
|
|
279
|
+
min-width: 360px;
|
|
280
|
+
overflow: auto;
|
|
281
|
+
.title {
|
|
282
|
+
margin-bottom: 24px;
|
|
283
|
+
font-size: 20px;
|
|
284
|
+
font-weight: 400;
|
|
285
|
+
line-height: 22px;
|
|
286
|
+
color: $--color-text-primary;
|
|
287
|
+
span {
|
|
288
|
+
font-size: 14px;
|
|
289
|
+
font-weight: 400;
|
|
290
|
+
color: $--color-text-secondary;
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
.footer {
|
|
294
|
+
float: right;
|
|
295
|
+
margin: 38px 24px 40px 0;
|
|
296
|
+
button {
|
|
297
|
+
width: 56px;
|
|
298
|
+
height: 32px;
|
|
299
|
+
padding: 0;
|
|
300
|
+
text-align: center;
|
|
301
|
+
line-height: 30px;
|
|
302
|
+
font-size: 12px;
|
|
303
|
+
font-weight: normal;
|
|
304
|
+
font-stretch: normal;
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
.el-input--mini{
|
|
308
|
+
width: 90%;
|
|
309
|
+
}
|
|
310
|
+
.el-form-item {
|
|
311
|
+
margin-bottom: 0px;
|
|
312
|
+
}
|
|
313
|
+
.el-form-item__label {
|
|
314
|
+
font-size: 14px;
|
|
315
|
+
font-weight: 400;
|
|
316
|
+
color: $--color-text-secondary;
|
|
317
|
+
}
|
|
318
|
+
.el-select {
|
|
319
|
+
width: 90%;
|
|
320
|
+
}
|
|
321
|
+
.el-input-number {
|
|
322
|
+
width: 100%;
|
|
323
|
+
.el-input__inner {
|
|
324
|
+
text-align: left;
|
|
325
|
+
}
|
|
326
|
+
}
|
|
327
|
+
}
|
|
276
328
|
.tentativeplan-control{
|
|
277
329
|
height: 100%;
|
|
278
330
|
padding: 21px 0px 21px 28px;
|