openatc-components 0.1.25 → 0.1.26
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/config/index.js +2 -2
- package/package/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +16 -0
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +1 -1
- package/package/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +4 -0
- package/package/kisscomps/components/Stages/index.vue +37 -1
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +2 -1
- package/src/i18n/language/zh.js +2 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/basicCoordInfo.vue +16 -0
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +1 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/laneEditPanel.vue +4 -0
- package/src/kisscomps/components/Stages/index.vue +37 -1
- package/src/views/customchannelization.vue +1 -1
package/package.json
CHANGED
package/src/i18n/language/en.js
CHANGED
|
@@ -1220,7 +1220,8 @@ const en = {
|
|
|
1220
1220
|
'sidewalk': 'Sidewalk',
|
|
1221
1221
|
'angle': 'Angle',
|
|
1222
1222
|
'basicinfo': 'Basic information',
|
|
1223
|
-
'importfilesuccess': 'Import of JSON file succeeded!'
|
|
1223
|
+
'importfilesuccess': 'Import of JSON file succeeded!',
|
|
1224
|
+
'holographiclaneid': 'Holographic Laneid'
|
|
1224
1225
|
}
|
|
1225
1226
|
}
|
|
1226
1227
|
}
|
package/src/i18n/language/zh.js
CHANGED
|
@@ -27,6 +27,9 @@
|
|
|
27
27
|
<el-form-item v-if="showKeyId" label="ID:">
|
|
28
28
|
<el-input v-model="basicCoodInfo.keyid" ref="keyid" @input="handleChangeKeyID" />
|
|
29
29
|
</el-form-item>
|
|
30
|
+
<el-form-item v-if="showLaneId" :label="$t('openatccomponents.channelizationmap.holographiclaneid') + ':'">
|
|
31
|
+
<el-input v-model="basicCoodInfo.laneid" ref="laneid" @input="handleChangeLaneID" />
|
|
32
|
+
</el-form-item>
|
|
30
33
|
</el-form>
|
|
31
34
|
</div>
|
|
32
35
|
</template>
|
|
@@ -38,6 +41,7 @@ export default {
|
|
|
38
41
|
return {
|
|
39
42
|
showAngle: true,
|
|
40
43
|
showKeyId: true,
|
|
44
|
+
showLaneId: true,
|
|
41
45
|
basicCoodInfo: {
|
|
42
46
|
x: 0,
|
|
43
47
|
y: 0,
|
|
@@ -62,6 +66,9 @@ export default {
|
|
|
62
66
|
if (obj.keyid !== undefined) {
|
|
63
67
|
this.basicCoodInfo.keyid = obj.keyid
|
|
64
68
|
}
|
|
69
|
+
if (obj.laneid !== undefined) {
|
|
70
|
+
this.basicCoodInfo.laneid = obj.laneid
|
|
71
|
+
}
|
|
65
72
|
this.isShowAngleSetting()
|
|
66
73
|
this.isShowKeyIdSetting()
|
|
67
74
|
},
|
|
@@ -102,6 +109,10 @@ export default {
|
|
|
102
109
|
this.basicCoodInfo.keyid = value
|
|
103
110
|
this.$emit('handleChangeBasicCoord', this.basicCoodInfo)
|
|
104
111
|
},
|
|
112
|
+
handleChangeLaneID (value) {
|
|
113
|
+
this.basicCoodInfo.laneid = value
|
|
114
|
+
this.$emit('handleChangeBasicCoord', this.basicCoodInfo)
|
|
115
|
+
},
|
|
105
116
|
checkOnlyNum (numString) {
|
|
106
117
|
// eslint-disable-next-line no-new-wrappers
|
|
107
118
|
let num = new Number(numString)
|
|
@@ -134,8 +145,10 @@ export default {
|
|
|
134
145
|
},
|
|
135
146
|
isShowKeyIdSetting () {
|
|
136
147
|
this.showKeyId = false
|
|
148
|
+
this.showLaneId = false
|
|
137
149
|
if (this.drawingObjInfo.icontype === 'vehile') {
|
|
138
150
|
this.showKeyId = true
|
|
151
|
+
this.showLaneId = true
|
|
139
152
|
}
|
|
140
153
|
if (this.drawingObjInfo.icontype === 'ped') {
|
|
141
154
|
this.showKeyId = true
|
|
@@ -153,6 +166,9 @@ export default {
|
|
|
153
166
|
if (this.drawingObjInfo.keyid !== undefined) {
|
|
154
167
|
this.basicCoodInfo.keyid = this.drawingObjInfo.keyid
|
|
155
168
|
}
|
|
169
|
+
if (this.drawingObjInfo.laneid !== undefined) {
|
|
170
|
+
this.basicCoodInfo.laneid = this.drawingObjInfo.laneid
|
|
171
|
+
}
|
|
156
172
|
this.isShowAngleSetting()
|
|
157
173
|
this.isShowKeyIdSetting()
|
|
158
174
|
}
|
|
@@ -395,7 +395,7 @@ export default {
|
|
|
395
395
|
index: this.index,
|
|
396
396
|
id: this.motorid,
|
|
397
397
|
keyid: this.motorid, // 后端需要的id,默认指取索引,可修改
|
|
398
|
-
laneid:
|
|
398
|
+
laneid: undefined, // 全息需要车道id
|
|
399
399
|
icontype: 'vehile',
|
|
400
400
|
icondireid: [1], // 前端区分箭头方向的标识
|
|
401
401
|
icondirename: [this.PhaseDataModel.getPhase(1).name],
|
|
@@ -641,6 +641,10 @@ export default {
|
|
|
641
641
|
this.iconObj.keyid = basicCoord.keyid
|
|
642
642
|
this.$emit('changeIconDataByType', this.iconObj, ['keyid'])
|
|
643
643
|
}
|
|
644
|
+
if (basicCoord.laneid !== undefined) {
|
|
645
|
+
this.iconObj.laneid = basicCoord.laneid
|
|
646
|
+
this.$emit('changeIconDataByType', this.iconObj, ['laneid'])
|
|
647
|
+
}
|
|
644
648
|
},
|
|
645
649
|
handleClone () {
|
|
646
650
|
this.$emit('cloneItem', this.iconObj)
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
</div>
|
|
41
41
|
<i class="iconfont icon-gongjiaoche" style="font-size:11PX;color:#606266;" v-if="item[item.length-1].controltype === 3"></i>
|
|
42
42
|
<i class="iconfont icon-youguidianche" style="font-size:11PX;color:#606266;" v-if="item[item.length-1].controltype === 5"></i>
|
|
43
|
-
<div v-if="
|
|
43
|
+
<div v-if="presetStageIndex === index + 1" style="color:red;width:50px;position:absolute;right:0px;bottom:5px;font-size:11px;">{{presetText}}</div>
|
|
44
44
|
</div>
|
|
45
45
|
</div>
|
|
46
46
|
</div>
|
|
@@ -80,6 +80,10 @@ export default {
|
|
|
80
80
|
type: Number,
|
|
81
81
|
default: -1
|
|
82
82
|
},
|
|
83
|
+
presetPhaseId: {
|
|
84
|
+
type: Number,
|
|
85
|
+
default: -1
|
|
86
|
+
},
|
|
83
87
|
zoom: {
|
|
84
88
|
type: Number,
|
|
85
89
|
default: 1
|
|
@@ -95,6 +99,7 @@ export default {
|
|
|
95
99
|
},
|
|
96
100
|
data () {
|
|
97
101
|
return {
|
|
102
|
+
presetStageIndex: -1,
|
|
98
103
|
side: {key: 'pedphase1653818707546719', phaseid: 1, id: 1, name: '东人行横道'},
|
|
99
104
|
// stagesList: [],
|
|
100
105
|
currentStage: -1,
|
|
@@ -124,7 +129,38 @@ export default {
|
|
|
124
129
|
}
|
|
125
130
|
}
|
|
126
131
|
},
|
|
132
|
+
watch: {
|
|
133
|
+
stagesList: {
|
|
134
|
+
handler: function (val, oldVal) {
|
|
135
|
+
if (this.presetPhaseId > -1) {
|
|
136
|
+
this.presetStageIndex = this.getComputedPresetIndex()
|
|
137
|
+
} else {
|
|
138
|
+
this.presetStageIndex = this.presetIndex
|
|
139
|
+
}
|
|
140
|
+
},
|
|
141
|
+
// 深度观察监听
|
|
142
|
+
deep: true
|
|
143
|
+
}
|
|
144
|
+
},
|
|
127
145
|
methods: {
|
|
146
|
+
getComputedPresetIndex() {
|
|
147
|
+
let res = -1
|
|
148
|
+
for (let i = 0; i < this.stagesList.length; i++) {
|
|
149
|
+
let stage = this.stagesList[i]
|
|
150
|
+
for (let phase of stage) {
|
|
151
|
+
let phaseId = phase.id
|
|
152
|
+
if (phaseId === this.presetPhaseId) {
|
|
153
|
+
res = i
|
|
154
|
+
break
|
|
155
|
+
}
|
|
156
|
+
}
|
|
157
|
+
if (res > -1) {
|
|
158
|
+
res = res + 1
|
|
159
|
+
break
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
return res
|
|
163
|
+
},
|
|
128
164
|
selectStages (value) {
|
|
129
165
|
if (this.isShowCurrentStage) {
|
|
130
166
|
return false
|