openatc-components 0.1.25 → 0.1.27
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/SchemeConfig/priorityControl/utils.js +22 -22
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +5 -1
- 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/SchemeConfig/priorityControl/utils.js +22 -22
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +5 -1
- package/src/kisscomps/components/Stages/index.vue +37 -1
- package/src/node_modules/.package_versions.json +1 -0
- package/src/views/customchannelization.vue +1 -1
package/config/index.js
CHANGED
|
@@ -15,8 +15,8 @@ module.exports = {
|
|
|
15
15
|
// target: 'http://192.168.13.103:8012/openatc',//'http://172.16.239.139:8080/',//设置你调用的接口域名和端口号
|
|
16
16
|
// target: 'http://192.168.14.2:8012/openatc',//'http://172.16.239.139:8080/',//设置你调用的接口域名和端口号
|
|
17
17
|
// target: 'https://dolphin-test.kedacom.com/openatc',
|
|
18
|
-
target: 'http://192.168.13.105:11003/openatc',
|
|
19
|
-
|
|
18
|
+
// target: 'http://192.168.13.105:11003/openatc',
|
|
19
|
+
target: 'http://192.168.13.103:10003/openatc',
|
|
20
20
|
// target: 'http://192.168.13.103:10003/openatc',
|
|
21
21
|
// target: 'http://192.168.13.103:9999',//'http://172.16.239.139:8080/',//设置你调用的接口域名和端口号
|
|
22
22
|
// target: 'http://192.168.13.103:9999/kissapi',//'http://172.16.239.139:8080/',//设置你调用的接口域名和端口号
|
|
@@ -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)
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
10
10
|
* See the Mulan PSL v2 for more details.
|
|
11
11
|
**/
|
|
12
|
-
import Edgebase from '@openatc/edgebase-front'
|
|
12
|
+
// import Edgebase from '@openatc/edgebase-front'
|
|
13
13
|
let images = [{
|
|
14
14
|
id: 1,
|
|
15
15
|
// name: 'East-Straight',
|
|
@@ -123,26 +123,26 @@ let images = [{
|
|
|
123
123
|
class: 'iconfont icon-icon-test1'
|
|
124
124
|
}]
|
|
125
125
|
|
|
126
|
-
const getImages = () => {
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
}
|
|
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
146
|
|
|
147
147
|
const getDirName = (arr) => {
|
|
148
148
|
let res = ''
|
|
@@ -160,4 +160,4 @@ const getDirName = (arr) => {
|
|
|
160
160
|
return res
|
|
161
161
|
}
|
|
162
162
|
|
|
163
|
-
export {
|
|
163
|
+
export {getDirName}
|
|
@@ -383,7 +383,11 @@ export default {
|
|
|
383
383
|
// rings = JSON.parse(JSON.stringify(rings))
|
|
384
384
|
let mapAdd = rings.map(item => {
|
|
385
385
|
return item.map(val => {
|
|
386
|
-
|
|
386
|
+
if (val.mode !== 7) {
|
|
387
|
+
return val.value + (val.sum ? val.sum : 0)
|
|
388
|
+
} else {
|
|
389
|
+
return 0
|
|
390
|
+
}
|
|
387
391
|
})
|
|
388
392
|
})
|
|
389
393
|
let maxCycle = mapAdd.length > 0 ? mapAdd.map(item => {
|
|
@@ -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
|