openatc-components 0.4.95 → 0.4.97
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 +137 -137
- package/package/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +9 -3
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue +9 -3
- package/src/views/intersection.vue +1 -1
package/config/index.js
CHANGED
|
@@ -1,137 +1,137 @@
|
|
|
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
|
-
'use strict'
|
|
13
|
-
// Template version: 1.2.6
|
|
14
|
-
// see http://vuejs-templates.github.io/webpack for documentation.
|
|
15
|
-
const fs = require('fs');
|
|
16
|
-
const path = require('path')
|
|
17
|
-
let VUE_APP_PROXY_API_TARGET = "http://127.0.0.1:8080"
|
|
18
|
-
let VUE_APP_PROXY_MAIN_TARGET = "http://
|
|
19
|
-
let VUE_APP_PROXY_SOCKET_TARGET = "http://127.0.0.1:8080"
|
|
20
|
-
const localFile = path.resolve(__dirname, 'dev.local.js');
|
|
21
|
-
if (fs.existsSync(localFile)) {
|
|
22
|
-
let local = require(localFile)
|
|
23
|
-
if (local) {
|
|
24
|
-
VUE_APP_PROXY_API_TARGET = local.VUE_APP_PROXY_API_TARGET
|
|
25
|
-
VUE_APP_PROXY_MAIN_TARGET = local.VUE_APP_PROXY_MAIN_TARGET
|
|
26
|
-
VUE_APP_PROXY_SOCKET_TARGET = local.VUE_APP_PROXY_SOCKET_TARGET
|
|
27
|
-
}
|
|
28
|
-
}
|
|
29
|
-
module.exports = {
|
|
30
|
-
dev: {
|
|
31
|
-
// Paths
|
|
32
|
-
assetsSubDirectory: 'static',
|
|
33
|
-
assetsPublicPath: '/',
|
|
34
|
-
proxyTable: {
|
|
35
|
-
'/api': {
|
|
36
|
-
target: VUE_APP_PROXY_API_TARGET,
|
|
37
|
-
changeOrigin: true,
|
|
38
|
-
ws: true,
|
|
39
|
-
secure: false,
|
|
40
|
-
pathRewrite: {
|
|
41
|
-
'^/api': '/api'
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
'/socket': {
|
|
45
|
-
target: VUE_APP_PROXY_SOCKET_TARGET,
|
|
46
|
-
changeOrigin: true,
|
|
47
|
-
ws: true,
|
|
48
|
-
secure: false,
|
|
49
|
-
pathRewrite: {
|
|
50
|
-
'^/socket': '/'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
'/': {
|
|
54
|
-
target: VUE_APP_PROXY_MAIN_TARGET,
|
|
55
|
-
changeOrigin: true, //跨域
|
|
56
|
-
pathRewrite: {
|
|
57
|
-
'^/': '/'//这里理解成用‘/api’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://10.1.5.11:8080/xxx/duty?time=2017-07-07 14:57:22',直接写‘/api/xxx/duty?time=2017-07-07 14:57:22’即可
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
},
|
|
61
|
-
|
|
62
|
-
// Various Dev Server settings
|
|
63
|
-
// host: '0.0.0.0',
|
|
64
|
-
host: 'localhost', // can be overwritten by process.env.HOST
|
|
65
|
-
port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
|
66
|
-
autoOpenBrowser: true,
|
|
67
|
-
errorOverlay: true,
|
|
68
|
-
notifyOnErrors: false,
|
|
69
|
-
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
|
|
70
|
-
|
|
71
|
-
// Use Eslint Loader?
|
|
72
|
-
// If true, your code will be linted during bundling and
|
|
73
|
-
// linting errors and warnings will be shown in the console.
|
|
74
|
-
useEslint: true,
|
|
75
|
-
// If true, eslint errors and warnings will also be shown in the error overlay
|
|
76
|
-
// in the browser.
|
|
77
|
-
showEslintErrorsInOverlay: true,
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Source Maps
|
|
81
|
-
*/
|
|
82
|
-
|
|
83
|
-
// https://webpack.js.org/configuration/devtool/#development
|
|
84
|
-
devtool: 'source-map',
|
|
85
|
-
|
|
86
|
-
// If you have problems debugging vue-files in devtools,
|
|
87
|
-
// set this to false - it *may* help
|
|
88
|
-
// https://vue-loader.vuejs.org/en/options.html#cachebusting
|
|
89
|
-
cacheBusting: false,
|
|
90
|
-
|
|
91
|
-
// CSS Sourcemaps off by default because relative paths are "buggy"
|
|
92
|
-
// with this option, according to the CSS-Loader README
|
|
93
|
-
// (https://github.com/webpack/css-loader#sourcemaps)
|
|
94
|
-
// In our experience, they generally work as expected,
|
|
95
|
-
// just be aware of this issue when enabling this option.
|
|
96
|
-
cssSourceMap: false,
|
|
97
|
-
},
|
|
98
|
-
|
|
99
|
-
build: {
|
|
100
|
-
// Template for index.html
|
|
101
|
-
index: path.resolve(__dirname, '../dist/index.html'),
|
|
102
|
-
|
|
103
|
-
// Paths
|
|
104
|
-
assetsRoot: path.resolve(__dirname, '../dist'),
|
|
105
|
-
assetsSubDirectory: './',
|
|
106
|
-
|
|
107
|
-
/**
|
|
108
|
-
* You can set by youself according to actual condition
|
|
109
|
-
* You will need to set this if you plan to deploy your site under a sub path,
|
|
110
|
-
* for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
|
|
111
|
-
* then assetsPublicPath should be set to "/bar/".
|
|
112
|
-
* In most cases please use '/' !!!
|
|
113
|
-
*/
|
|
114
|
-
assetsPublicPath: './', // If you are deployed on the root path, please use '/'
|
|
115
|
-
|
|
116
|
-
/**
|
|
117
|
-
* Source Maps
|
|
118
|
-
*/
|
|
119
|
-
|
|
120
|
-
productionSourceMap: false,
|
|
121
|
-
// https://webpack.js.org/configuration/devtool/#production
|
|
122
|
-
devtool: '#source-map',
|
|
123
|
-
|
|
124
|
-
// Gzip off by default as many popular static hosts such as
|
|
125
|
-
// Surge or Netlify already gzip all static assets for you.
|
|
126
|
-
// Before setting to `true`, make sure to:
|
|
127
|
-
// npm install --save-dev compression-webpack-plugin
|
|
128
|
-
productionGzip: false,
|
|
129
|
-
productionGzipExtensions: ['js', 'css'],
|
|
130
|
-
|
|
131
|
-
// Run the build command with an extra argument to
|
|
132
|
-
// View the bundle analyzer report after build finishes:
|
|
133
|
-
// `npm run build --report`
|
|
134
|
-
// Set to `true` or `false` to always turn it on or off
|
|
135
|
-
bundleAnalyzerReport: process.env.npm_config_report
|
|
136
|
-
}
|
|
137
|
-
}
|
|
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
|
+
'use strict'
|
|
13
|
+
// Template version: 1.2.6
|
|
14
|
+
// see http://vuejs-templates.github.io/webpack for documentation.
|
|
15
|
+
const fs = require('fs');
|
|
16
|
+
const path = require('path')
|
|
17
|
+
let VUE_APP_PROXY_API_TARGET = "http://127.0.0.1:8080"
|
|
18
|
+
let VUE_APP_PROXY_MAIN_TARGET = "http://127.0.0.1:8080"
|
|
19
|
+
let VUE_APP_PROXY_SOCKET_TARGET = "http://127.0.0.1:8080"
|
|
20
|
+
const localFile = path.resolve(__dirname, 'dev.local.js');
|
|
21
|
+
if (fs.existsSync(localFile)) {
|
|
22
|
+
let local = require(localFile)
|
|
23
|
+
if (local) {
|
|
24
|
+
VUE_APP_PROXY_API_TARGET = local.VUE_APP_PROXY_API_TARGET
|
|
25
|
+
VUE_APP_PROXY_MAIN_TARGET = local.VUE_APP_PROXY_MAIN_TARGET
|
|
26
|
+
VUE_APP_PROXY_SOCKET_TARGET = local.VUE_APP_PROXY_SOCKET_TARGET
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
module.exports = {
|
|
30
|
+
dev: {
|
|
31
|
+
// Paths
|
|
32
|
+
assetsSubDirectory: 'static',
|
|
33
|
+
assetsPublicPath: '/',
|
|
34
|
+
proxyTable: {
|
|
35
|
+
'/api': {
|
|
36
|
+
target: VUE_APP_PROXY_API_TARGET,
|
|
37
|
+
changeOrigin: true,
|
|
38
|
+
ws: true,
|
|
39
|
+
secure: false,
|
|
40
|
+
pathRewrite: {
|
|
41
|
+
'^/api': '/api'
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
'/socket': {
|
|
45
|
+
target: VUE_APP_PROXY_SOCKET_TARGET,
|
|
46
|
+
changeOrigin: true,
|
|
47
|
+
ws: true,
|
|
48
|
+
secure: false,
|
|
49
|
+
pathRewrite: {
|
|
50
|
+
'^/socket': '/'
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
'/': {
|
|
54
|
+
target: VUE_APP_PROXY_MAIN_TARGET,
|
|
55
|
+
changeOrigin: true, //跨域
|
|
56
|
+
pathRewrite: {
|
|
57
|
+
'^/': '/'//这里理解成用‘/api’代替target里面的地址,后面组件中我们掉接口时直接用api代替 比如我要调用'http://10.1.5.11:8080/xxx/duty?time=2017-07-07 14:57:22',直接写‘/api/xxx/duty?time=2017-07-07 14:57:22’即可
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
},
|
|
61
|
+
|
|
62
|
+
// Various Dev Server settings
|
|
63
|
+
// host: '0.0.0.0',
|
|
64
|
+
host: 'localhost', // can be overwritten by process.env.HOST
|
|
65
|
+
port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
|
|
66
|
+
autoOpenBrowser: true,
|
|
67
|
+
errorOverlay: true,
|
|
68
|
+
notifyOnErrors: false,
|
|
69
|
+
poll: false, // https://webpack.js.org/configuration/dev-server/#devserver-watchoptions-
|
|
70
|
+
|
|
71
|
+
// Use Eslint Loader?
|
|
72
|
+
// If true, your code will be linted during bundling and
|
|
73
|
+
// linting errors and warnings will be shown in the console.
|
|
74
|
+
useEslint: true,
|
|
75
|
+
// If true, eslint errors and warnings will also be shown in the error overlay
|
|
76
|
+
// in the browser.
|
|
77
|
+
showEslintErrorsInOverlay: true,
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Source Maps
|
|
81
|
+
*/
|
|
82
|
+
|
|
83
|
+
// https://webpack.js.org/configuration/devtool/#development
|
|
84
|
+
devtool: 'source-map',
|
|
85
|
+
|
|
86
|
+
// If you have problems debugging vue-files in devtools,
|
|
87
|
+
// set this to false - it *may* help
|
|
88
|
+
// https://vue-loader.vuejs.org/en/options.html#cachebusting
|
|
89
|
+
cacheBusting: false,
|
|
90
|
+
|
|
91
|
+
// CSS Sourcemaps off by default because relative paths are "buggy"
|
|
92
|
+
// with this option, according to the CSS-Loader README
|
|
93
|
+
// (https://github.com/webpack/css-loader#sourcemaps)
|
|
94
|
+
// In our experience, they generally work as expected,
|
|
95
|
+
// just be aware of this issue when enabling this option.
|
|
96
|
+
cssSourceMap: false,
|
|
97
|
+
},
|
|
98
|
+
|
|
99
|
+
build: {
|
|
100
|
+
// Template for index.html
|
|
101
|
+
index: path.resolve(__dirname, '../dist/index.html'),
|
|
102
|
+
|
|
103
|
+
// Paths
|
|
104
|
+
assetsRoot: path.resolve(__dirname, '../dist'),
|
|
105
|
+
assetsSubDirectory: './',
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* You can set by youself according to actual condition
|
|
109
|
+
* You will need to set this if you plan to deploy your site under a sub path,
|
|
110
|
+
* for example GitHub pages. If you plan to deploy your site to https://foo.github.io/bar/,
|
|
111
|
+
* then assetsPublicPath should be set to "/bar/".
|
|
112
|
+
* In most cases please use '/' !!!
|
|
113
|
+
*/
|
|
114
|
+
assetsPublicPath: './', // If you are deployed on the root path, please use '/'
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Source Maps
|
|
118
|
+
*/
|
|
119
|
+
|
|
120
|
+
productionSourceMap: false,
|
|
121
|
+
// https://webpack.js.org/configuration/devtool/#production
|
|
122
|
+
devtool: '#source-map',
|
|
123
|
+
|
|
124
|
+
// Gzip off by default as many popular static hosts such as
|
|
125
|
+
// Surge or Netlify already gzip all static assets for you.
|
|
126
|
+
// Before setting to `true`, make sure to:
|
|
127
|
+
// npm install --save-dev compression-webpack-plugin
|
|
128
|
+
productionGzip: false,
|
|
129
|
+
productionGzipExtensions: ['js', 'css'],
|
|
130
|
+
|
|
131
|
+
// Run the build command with an extra argument to
|
|
132
|
+
// View the bundle analyzer report after build finishes:
|
|
133
|
+
// `npm run build --report`
|
|
134
|
+
// Set to `true` or `false` to always turn it on or off
|
|
135
|
+
bundleAnalyzerReport: process.env.npm_config_report
|
|
136
|
+
}
|
|
137
|
+
}
|
package/package/kisscomps/components/ChannelRealtimeIntersection/ChannelRealtimeIntersection.vue
CHANGED
|
@@ -9,14 +9,16 @@
|
|
|
9
9
|
* MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE.
|
|
10
10
|
* See the Mulan PSL v2 for more details.
|
|
11
11
|
**/
|
|
12
|
-
|
|
12
|
+
<!--实时状态路口图-->
|
|
13
13
|
<template>
|
|
14
14
|
<div class="channel-realtime-intersection">
|
|
15
|
+
<!--渠化显示开,渠化相位图显示-->
|
|
15
16
|
<channelization
|
|
16
17
|
v-if="isDefaultShowQuhua && reset"
|
|
17
18
|
ref="channelization"
|
|
18
|
-
:AgentId="
|
|
19
|
-
:crossStatusData="
|
|
19
|
+
:AgentId="agentId"
|
|
20
|
+
:crossStatusData="crossStatusData" />
|
|
21
|
+
<!--渠化显示关,原逻辑,第三方显示路口相位状态,非第三方显示通道实时状态-->
|
|
20
22
|
<IntersectionMap
|
|
21
23
|
v-if="!isDefaultShowQuhua && reset"
|
|
22
24
|
ref="intersectionMap"
|
|
@@ -130,6 +132,7 @@ export default {
|
|
|
130
132
|
// this.crossStatusData = JSON.parse(JSON.stringify(this.channelRealtimeStatusData))
|
|
131
133
|
// }, 3000)
|
|
132
134
|
this.getPlatform()
|
|
135
|
+
this.getChannelizatonChart()
|
|
133
136
|
this.crossStatusData = JSON.parse(JSON.stringify(this.channelRealtimeStatusData))
|
|
134
137
|
},
|
|
135
138
|
destroyed () {
|
|
@@ -138,4 +141,7 @@ export default {
|
|
|
138
141
|
</script>
|
|
139
142
|
|
|
140
143
|
<style lang="css" rel="stylesheet/scss">
|
|
144
|
+
.channel-realtime-intersection {
|
|
145
|
+
width: 100%;
|
|
146
|
+
}
|
|
141
147
|
</style>
|