openatc-components 0.4.91 → 0.4.92
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 +1 -1
- package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +52 -17
- package/package/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +2 -2
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/i18n/language/en.js +3 -1
- package/src/i18n/language/zh.js +4 -2
- package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +52 -17
- package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +2 -2
- package/src/views/customchannelization.vue +3 -2
- package/src/views/intersection.vue +145 -14
package/config/index.js
CHANGED
|
@@ -15,7 +15,7 @@
|
|
|
15
15
|
const fs = require('fs');
|
|
16
16
|
const path = require('path')
|
|
17
17
|
let VUE_APP_PROXY_API_TARGET = "http://127.0.0.1:8080"
|
|
18
|
-
let VUE_APP_PROXY_MAIN_TARGET = "http://192.168.
|
|
18
|
+
let VUE_APP_PROXY_MAIN_TARGET = "http://192.168.14.122:10003/openatc"
|
|
19
19
|
let VUE_APP_PROXY_SOCKET_TARGET = "http://127.0.0.1:8080"
|
|
20
20
|
const localFile = path.resolve(__dirname, 'dev.local.js');
|
|
21
21
|
if (fs.existsSync(localFile)) {
|
|
@@ -19,7 +19,17 @@
|
|
|
19
19
|
<!-- 绘制功能 -->
|
|
20
20
|
<div class="draw-function">
|
|
21
21
|
<div class="again-import">
|
|
22
|
-
<
|
|
22
|
+
<el-dropdown @command="handleChangeCrossShapes">
|
|
23
|
+
<el-button type="primary" class="cross-shapes-btn">
|
|
24
|
+
{{$t('openatccomponents.channelizationmap.importcrosspicture')}}<i class="el-icon-arrow-down el-icon--right"></i>
|
|
25
|
+
</el-button>
|
|
26
|
+
<el-dropdown-menu slot="dropdown">
|
|
27
|
+
<el-dropdown-item command="101">{{$t('openatccomponents.importTemp.crossShapes.crossroads')}}</el-dropdown-item>
|
|
28
|
+
<el-dropdown-item command="100">{{$t('openatccomponents.importTemp.crossShapes.tjunction')}}</el-dropdown-item>
|
|
29
|
+
<el-dropdown-item command="103">{{$t('openatccomponents.importTemp.crossShapes.rampintersection2')}}</el-dropdown-item>
|
|
30
|
+
<el-dropdown-item command="104">{{$t('openatccomponents.importTemp.crossShapes.pedestriancrossing2')}}</el-dropdown-item>
|
|
31
|
+
</el-dropdown-menu>
|
|
32
|
+
</el-dropdown>
|
|
23
33
|
<el-button
|
|
24
34
|
class="again-import-btn"
|
|
25
35
|
type="primary"
|
|
@@ -782,21 +792,7 @@ export default {
|
|
|
782
792
|
// }
|
|
783
793
|
this.index = 0
|
|
784
794
|
this.curChooseIcon = {}
|
|
785
|
-
|
|
786
|
-
if (!val.data || val.data === '') return
|
|
787
|
-
this.CrossMapData = {
|
|
788
|
-
index: -2,
|
|
789
|
-
icontype: 'crossmap',
|
|
790
|
-
x: 435,
|
|
791
|
-
y: 325,
|
|
792
|
-
w: 870,
|
|
793
|
-
h: 650,
|
|
794
|
-
angle: 0,
|
|
795
|
-
imgfilesrc: '',
|
|
796
|
-
svgstr: val.data,
|
|
797
|
-
type: 'vectorgraph'
|
|
798
|
-
}
|
|
799
|
-
})
|
|
795
|
+
this.reloadDefaultCrossMap('CrossRoad.svg')
|
|
800
796
|
},
|
|
801
797
|
// 取消
|
|
802
798
|
cancledraw () {
|
|
@@ -1010,6 +1006,39 @@ export default {
|
|
|
1010
1006
|
el.click()
|
|
1011
1007
|
// 移除链接释放资源
|
|
1012
1008
|
urlObject.revokeObjectURL(url)
|
|
1009
|
+
},
|
|
1010
|
+
handleChangeCrossShapes (shape) {
|
|
1011
|
+
switch (shape) {
|
|
1012
|
+
case '100':
|
|
1013
|
+
this.reloadDefaultCrossMap('TCrossRoad.svg')
|
|
1014
|
+
break
|
|
1015
|
+
case '101':
|
|
1016
|
+
this.reloadDefaultCrossMap('CrossRoad.svg')
|
|
1017
|
+
break
|
|
1018
|
+
case '103':
|
|
1019
|
+
this.reloadDefaultCrossMap('RampRoad.svg')
|
|
1020
|
+
break
|
|
1021
|
+
case '104':
|
|
1022
|
+
this.reloadDefaultCrossMap('PedCrossingRoad.svg')
|
|
1023
|
+
break
|
|
1024
|
+
}
|
|
1025
|
+
},
|
|
1026
|
+
reloadDefaultCrossMap (imgname) {
|
|
1027
|
+
axios.get(`./img/${imgname}`).then((val) => {
|
|
1028
|
+
if (!val.data || val.data === '') return
|
|
1029
|
+
this.CrossMapData = {
|
|
1030
|
+
index: -2,
|
|
1031
|
+
icontype: 'crossmap',
|
|
1032
|
+
x: 435,
|
|
1033
|
+
y: 325,
|
|
1034
|
+
w: 870,
|
|
1035
|
+
h: 650,
|
|
1036
|
+
angle: 0,
|
|
1037
|
+
imgfilesrc: '',
|
|
1038
|
+
svgstr: val.data,
|
|
1039
|
+
type: 'vectorgraph'
|
|
1040
|
+
}
|
|
1041
|
+
})
|
|
1013
1042
|
}
|
|
1014
1043
|
},
|
|
1015
1044
|
mounted () {
|
|
@@ -1018,5 +1047,11 @@ export default {
|
|
|
1018
1047
|
}
|
|
1019
1048
|
</script>
|
|
1020
1049
|
|
|
1021
|
-
<style lang="css" rel="stylesheet/scss">
|
|
1050
|
+
<style lang="css" rel="stylesheet/scss" scoped>
|
|
1051
|
+
.cross-shapes-btn {
|
|
1052
|
+
height: 32PX;
|
|
1053
|
+
width: 90PX;
|
|
1054
|
+
line-height: 32PX;
|
|
1055
|
+
padding: 0;
|
|
1056
|
+
}
|
|
1022
1057
|
</style>
|
package/package/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue
CHANGED
|
@@ -112,7 +112,7 @@ export default {
|
|
|
112
112
|
return data.direction.map(dir => {
|
|
113
113
|
return {
|
|
114
114
|
id: dir,
|
|
115
|
-
peddirection: this.getshowped(data.peddirection),
|
|
115
|
+
peddirection: data.peddirection ? this.getshowped(data.peddirection) : [],
|
|
116
116
|
color: '#1E1E1E'
|
|
117
117
|
}
|
|
118
118
|
})
|
|
@@ -120,7 +120,7 @@ export default {
|
|
|
120
120
|
return [
|
|
121
121
|
{
|
|
122
122
|
id: '',
|
|
123
|
-
peddirection: this.getshowped(data.peddirection),
|
|
123
|
+
peddirection: data.peddirection ? this.getshowped(data.peddirection) : [],
|
|
124
124
|
color: '#1E1E1E'
|
|
125
125
|
}
|
|
126
126
|
]
|