openatc-components 0.5.30 → 0.5.32

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 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://192.168.13.103:10003/openatc"
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
+ }
@@ -102,6 +102,22 @@ export default {
102
102
  dom.style.cursor = 'url(resource/pic/icons/magnifier3.cur) 12 12,default'
103
103
  }
104
104
  }
105
+ // isSeletable: {
106
+ // handler (val) {
107
+ // this.$nextTick(() => {
108
+ // console.log(this.chooseIndex)
109
+ // console.log(this.CrossMapData.index)
110
+ // })
111
+ // }
112
+ // }
113
+ // chooseIndex: {
114
+ // handler (val) {
115
+ // this.$nextTick(() => {
116
+ // console.log(this.chooseIndex)
117
+ // console.log(this.CrossMapData.index)
118
+ // })
119
+ // }
120
+ // }
105
121
  },
106
122
  created () {
107
123
  this.crossmapitem = {
@@ -985,6 +985,11 @@ export default {
985
985
  },
986
986
  handleLockCrossMap () {
987
987
  this.isLockedCrossMap = !this.isLockedCrossMap
988
+ if (!this.isLockedCrossMap) {
989
+ this.curChooseIconIndex = -2
990
+ } else {
991
+ this.curChooseIconIndex = -1
992
+ }
988
993
  },
989
994
  importFromFile () {
990
995
  this.dialogVisible = true
@@ -1054,6 +1059,12 @@ export default {
1054
1059
  svgstr: val.data,
1055
1060
  type: 'vectorgraph'
1056
1061
  }
1062
+ if (!this.isLockedCrossMap) {
1063
+ this.curChooseIconIndex = -1
1064
+ this.$nextTick(() => {
1065
+ this.curChooseIconIndex = -2
1066
+ })
1067
+ }
1057
1068
  })
1058
1069
  }
1059
1070
  },
@@ -0,0 +1,2 @@
1
+ import OptimizeKanban from './OptimizeKanban.vue'
2
+ export default OptimizeKanban