openatc-components 0.1.142 → 0.1.144
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/PatternStatus/PatternStatus.vue +2 -1
- package/package/kisscomps/components/patternConfig/index.vue +11 -21
- package/package/kisscomps/components/patternConfig/planContent.vue +3 -2
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +2 -1
- package/src/kisscomps/components/patternConfig/index.vue +11 -21
- package/src/kisscomps/components/patternConfig/planContent.vue +3 -2
- package/src/node_modules/.package_versions.json +1 -0
- package/src/views/patternConfig.vue +4 -2
- package/static/styles/patternConfig.scss +47 -49
package/package.json
CHANGED
|
@@ -948,7 +948,8 @@ export default {
|
|
|
948
948
|
this.fillGap(ringTeams, val)
|
|
949
949
|
}
|
|
950
950
|
let barrier = this.step2(ringTeams, newPattern)
|
|
951
|
-
|
|
951
|
+
let barrierLeft = barrier.map(item => item - 0.3)// 屏障左移显示出人行横道
|
|
952
|
+
this.barrierList = barrierLeft.map(j => {
|
|
952
953
|
return (j / (this.max ? this.max : this.newCycle) * 100) + '%'
|
|
953
954
|
})
|
|
954
955
|
// this.barrierList.unshift(0)
|
|
@@ -12,16 +12,6 @@
|
|
|
12
12
|
<template>
|
|
13
13
|
<div class="patternConfig">
|
|
14
14
|
<el-container>
|
|
15
|
-
<!-- <el-aside width="180px">
|
|
16
|
-
<PlanMenu :planData="planData"
|
|
17
|
-
:zIndexObj="zIndexObj"
|
|
18
|
-
:loading="loading"
|
|
19
|
-
@maskChange="maskChange"
|
|
20
|
-
@chooseRoute="chooseRoute"
|
|
21
|
-
@resetContentComponent="resetContentComponent"
|
|
22
|
-
@editStart="editStart"
|
|
23
|
-
@refresh="refresh"/>
|
|
24
|
-
</el-aside> -->
|
|
25
15
|
<!-- <el-main> -->
|
|
26
16
|
<div class="main-container" style="height: 100%;width: 100%;">
|
|
27
17
|
<el-tabs v-model="editableTabsValue" type="card" @edit="handleTabsEdit" :before-leave="beforeLeave" style="height: 100%;">
|
|
@@ -29,23 +19,23 @@
|
|
|
29
19
|
:closable="true"
|
|
30
20
|
:key="item.tabName"
|
|
31
21
|
v-for="(item) in editableTabs"
|
|
32
|
-
:label="
|
|
22
|
+
:label="item.title"
|
|
33
23
|
:name="item.tabName"
|
|
34
24
|
>
|
|
35
25
|
<div class="panel-content" style="height: 100%;">
|
|
36
|
-
|
|
26
|
+
<div style="height: 6%;">
|
|
37
27
|
<div class="route-filter-container" style="display:flex;">
|
|
38
28
|
<div class="filter">
|
|
39
|
-
<span class="header-span">{{$t('openatccomponents.greenwaveoptimize.
|
|
29
|
+
<span class="header-span">{{$t('openatccomponents.greenwaveoptimize.name')}}:</span>
|
|
40
30
|
<el-input
|
|
41
31
|
clearable
|
|
42
32
|
size="small"
|
|
43
|
-
v-model="item.
|
|
33
|
+
v-model="item.title"
|
|
44
34
|
style="width:70%;"
|
|
45
35
|
@change="onConditionChange"
|
|
46
36
|
/>
|
|
47
37
|
</div>
|
|
48
|
-
<div class="filter">
|
|
38
|
+
<!-- <div class="filter">
|
|
49
39
|
<span class="header-span">{{$t('edge.date.month')}}:</span>
|
|
50
40
|
<el-select multiple
|
|
51
41
|
v-model="item.month"
|
|
@@ -189,10 +179,10 @@
|
|
|
189
179
|
@change="onDownspeedChange"
|
|
190
180
|
v-model="item.downspeed"
|
|
191
181
|
></el-input-number>
|
|
192
|
-
</div>
|
|
182
|
+
</div> -->
|
|
193
183
|
</div>
|
|
194
|
-
</div>
|
|
195
|
-
<div style="height:
|
|
184
|
+
</div>
|
|
185
|
+
<div style="height: 94%;" class="table-container">
|
|
196
186
|
<PatternTable ref="patterntable"
|
|
197
187
|
:opt="item.devs"
|
|
198
188
|
:isAllowedExpand="isAllowedExpand"
|
|
@@ -356,7 +346,7 @@ export default {
|
|
|
356
346
|
},
|
|
357
347
|
currentIndex: 0,
|
|
358
348
|
editableTabs: [{
|
|
359
|
-
title: '
|
|
349
|
+
title: '仿真实例 1',
|
|
360
350
|
tabName: '1',
|
|
361
351
|
content: 'Tab 1 content',
|
|
362
352
|
patternid: 1,
|
|
@@ -783,7 +773,7 @@ export default {
|
|
|
783
773
|
let tabObj = {
|
|
784
774
|
id: this.currentIndex + 1,
|
|
785
775
|
name: '',
|
|
786
|
-
title: this.$t('openatccomponents.greenwaveoptimize.
|
|
776
|
+
title: this.$t('openatccomponents.greenwaveoptimize.scene') + ' ' + newTabName,
|
|
787
777
|
tabName: newTabName,
|
|
788
778
|
content: 'New Tab content',
|
|
789
779
|
patternid: 1,
|
|
@@ -875,7 +865,7 @@ export default {
|
|
|
875
865
|
resetTab () {
|
|
876
866
|
this.editableTabs = [
|
|
877
867
|
{
|
|
878
|
-
title: this.$t('openatccomponents.greenwaveoptimize.
|
|
868
|
+
title: this.$t('openatccomponents.greenwaveoptimize.scene') + ' 1',
|
|
879
869
|
id: 1,
|
|
880
870
|
name: '',
|
|
881
871
|
tabName: '1',
|
|
@@ -372,10 +372,11 @@ export default {
|
|
|
372
372
|
delete pattern.optstrategy
|
|
373
373
|
delete pattern.plan
|
|
374
374
|
delete pattern.upspeed
|
|
375
|
-
|
|
375
|
+
pattern.name = pattern.title
|
|
376
|
+
// delete pattern.name
|
|
377
|
+
// delete pattern.name
|
|
376
378
|
delete pattern.title
|
|
377
379
|
delete pattern.patternid
|
|
378
|
-
delete pattern.name
|
|
379
380
|
pattern.devs.map(inter => {
|
|
380
381
|
delete inter.allPatterns
|
|
381
382
|
delete inter.currPhase
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
<PatternConfig
|
|
6
6
|
:agentids="agentids2"
|
|
7
7
|
:isAllowedExpand="isAllowedExpand"
|
|
8
|
+
:isOnlyOneTab="isOnlyOneTab"
|
|
8
9
|
:opt="opt2"
|
|
9
10
|
ref="patternConfig"
|
|
10
11
|
>
|
|
@@ -20,6 +21,7 @@ export default {
|
|
|
20
21
|
name: 'PatternConfigTest',
|
|
21
22
|
data () {
|
|
22
23
|
return {
|
|
24
|
+
isOnlyOneTab: false,
|
|
23
25
|
isAllowedExpand: false,
|
|
24
26
|
// agentids: ['gjnlgjxl'],
|
|
25
27
|
agentids2: ['gjnlahql', 'gjnlgjxl', 'gjnljml', 'jabh', 'jaja', 'jmlfqbl'],
|
|
@@ -42,7 +44,7 @@ export default {
|
|
|
42
44
|
'optPatternList': [
|
|
43
45
|
{
|
|
44
46
|
'id': 1,
|
|
45
|
-
'name': '',
|
|
47
|
+
'name': 'dsfasdfdsf',
|
|
46
48
|
'tabName': '1',
|
|
47
49
|
'devs': [
|
|
48
50
|
{
|
|
@@ -1439,7 +1441,7 @@ export default {
|
|
|
1439
1441
|
/* height: 600px; */
|
|
1440
1442
|
width: 1020px;
|
|
1441
1443
|
// height: 620px;
|
|
1442
|
-
height:
|
|
1444
|
+
height: 670px;
|
|
1443
1445
|
border: 1PX solid yellow;
|
|
1444
1446
|
position: relative;
|
|
1445
1447
|
}
|
|
@@ -1,57 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
// 路线优化
|
|
2
|
+
.patternConfig {
|
|
3
|
+
// margin-top: 15px;
|
|
4
|
+
height: 100%;
|
|
5
|
+
background-color: $--background-color-base;
|
|
6
|
+
.el-dialog__body {
|
|
7
|
+
padding: 0;
|
|
8
|
+
}
|
|
9
|
+
.main-container {
|
|
10
|
+
border: 0px solid red;
|
|
11
|
+
width: 100%;
|
|
5
12
|
height: 100%;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
height:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
margin-top: 10px;
|
|
14
|
+
margin-bottom: 10px;
|
|
15
|
+
.panel-content {
|
|
16
|
+
border: 0px solid green;
|
|
17
|
+
width: 100%;
|
|
18
|
+
height: 680px;
|
|
19
|
+
display: flex;
|
|
20
|
+
flex-direction: column;
|
|
21
|
+
justify-content: flex-start;
|
|
22
|
+
.route-filter-container {
|
|
23
|
+
display: flex;
|
|
24
|
+
justify-content: flex-start;
|
|
17
25
|
margin-top: 10px;
|
|
18
|
-
margin-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
width:
|
|
22
|
-
|
|
26
|
+
margin-left: 20px;
|
|
27
|
+
flex-wrap: wrap;
|
|
28
|
+
.filter {
|
|
29
|
+
width: 30%;
|
|
30
|
+
border: 0px solid red;
|
|
23
31
|
display: flex;
|
|
24
|
-
|
|
25
|
-
|
|
32
|
+
padding: 0 0 8px 0;
|
|
33
|
+
justify-content: flex-start;
|
|
34
|
+
align-items: center;
|
|
35
|
+
.header-span {
|
|
36
|
+
width: 45px;
|
|
37
|
+
border: 0px solid red;
|
|
26
38
|
display: flex;
|
|
27
|
-
justify-content: end;
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
padding: 0 0 8px 0;
|
|
34
|
-
justify-content: center;
|
|
35
|
-
align-items: center;
|
|
36
|
-
.header-span {
|
|
37
|
-
width: 21%;
|
|
38
|
-
border: 0px solid red;
|
|
39
|
-
display: flex;
|
|
40
|
-
justify-content: flex-end;
|
|
41
|
-
color: $--color-text-secondary;
|
|
42
|
-
font-size: 14PX;
|
|
43
|
-
font-weight: normal;
|
|
44
|
-
font-stretch: normal;
|
|
45
|
-
line-height: 14PX;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
.table-container {
|
|
50
|
-
.app-container {
|
|
51
|
-
background-color: $--color-white;
|
|
52
|
-
}
|
|
39
|
+
justify-content: flex-end;
|
|
40
|
+
color: $--color-text-secondary;
|
|
41
|
+
font-size: 14px;
|
|
42
|
+
font-weight: normal;
|
|
43
|
+
font-stretch: normal;
|
|
44
|
+
line-height: 14px;
|
|
53
45
|
}
|
|
54
46
|
}
|
|
55
47
|
}
|
|
48
|
+
.table-container {
|
|
49
|
+
.app-container {
|
|
50
|
+
background-color: $--color-white;
|
|
51
|
+
}
|
|
52
|
+
}
|
|
56
53
|
}
|
|
57
|
-
}
|
|
54
|
+
}
|
|
55
|
+
}
|