openatc-components 0.3.98 → 0.3.100

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.
Files changed (55) hide show
  1. package/config/index.js +1 -0
  2. package/package/kisscomps/components/BoardCard/BoardCard.vue +0 -11
  3. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +145 -46
  4. package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  5. package/package/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +7 -3
  6. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -0
  7. package/package/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +17 -12
  8. package/package/kisscomps/components/OverviewComponent/index.vue +28 -46
  9. package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +2 -11
  10. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +33 -92
  11. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +31 -13
  12. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +11 -9
  13. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +6 -2
  14. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +19 -6
  15. package/package/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +52 -0
  16. package/package/kisscomps/components/overView/index.vue +0 -23
  17. package/package/kisscomps/components/patternConfig/index.vue +1 -1
  18. package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +33 -13
  19. package/package/kisscomps/components/patternConfig/planContent.vue +3 -3
  20. package/package/kisscomps/components/patternList/patternList.vue +0 -11
  21. package/package/kissui.min.js +1 -1
  22. package/package.json +1 -1
  23. package/src/api/permission.js +33 -0
  24. package/src/i18n/language/en.js +3 -4
  25. package/src/i18n/language/zh.js +3 -4
  26. package/src/kisscomps/components/BoardCard/BoardCard.vue +0 -11
  27. package/src/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +145 -46
  28. package/src/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  29. package/src/kisscomps/components/IntersectionMap/crossDirection/crossDiagram.vue +7 -3
  30. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +5 -0
  31. package/src/kisscomps/components/IntersectionWithInterface/IntersectionWithInterface.vue +17 -12
  32. package/src/kisscomps/components/OverviewComponent/index.vue +28 -46
  33. package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +2 -11
  34. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +33 -92
  35. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +31 -13
  36. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +11 -9
  37. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +6 -2
  38. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +19 -6
  39. package/src/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +52 -0
  40. package/src/kisscomps/components/overView/index.vue +0 -23
  41. package/src/kisscomps/components/patternConfig/index.vue +1 -1
  42. package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +33 -13
  43. package/src/kisscomps/components/patternConfig/planContent.vue +3 -3
  44. package/src/kisscomps/components/patternList/patternList.vue +0 -11
  45. package/src/views/intersection.vue +6 -7
  46. package/src/views/intersection2.vue +2 -2
  47. package/src/views/overView.vue +4 -17
  48. package/src/views/patternConfig.vue +38 -8
  49. package/src/views/schemeconfig.vue +4 -6
  50. package/static/apiconfig.json +10 -0
  51. package/static/styles/common.scss +3 -3
  52. package/static/styles/dark/theme/element-dark.scss +1 -1
  53. package/static/styles/intersection.scss +15 -5
  54. package/static/styles/light/theme/element-light.scss +1 -1
  55. package/static/styles/schemeconfig.scss +3 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.3.98",
3
+ "version": "0.3.100",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -0,0 +1,33 @@
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
+ import Authapi from './authapi'
13
+
14
+ export const GetPermissionById = (id) => {
15
+ let api = new Authapi('getPermission')
16
+
17
+ let paramList = [id, 'permissions']
18
+
19
+ return api.Send({}, {}, paramList)
20
+ }
21
+
22
+ export const GetRoleByName = (roleName) => {
23
+ let api = new Authapi('getRoleByName')
24
+
25
+ let argList = [roleName, 'permissions']
26
+
27
+ return api.Send({}, {}, argList)
28
+ }
29
+
30
+ export default {
31
+ GetPermissionById,
32
+ GetRoleByName
33
+ }
@@ -111,11 +111,9 @@ const en = {
111
111
  'signalID': 'Intersection ID',
112
112
  'flow': 'Average lane flow (h)low',
113
113
  'saturationflow': 'Planned lane saturation Flow(h)',
114
- // 'typeflow-split-opt': 'Flow Split Op',
115
- 'typeflow-split-opt': 'Minimum delay',
116
- 'typecycle-opt': 'Optimal balance',
114
+ 'typeflow-split-opt': 'Flow Split Op',
117
115
  'maxFlow': 'The average lane flow is too large. Is it further optimized?',
118
- // 'typecycle-opt': 'Cycle Opt',
116
+ 'typecycle-opt': 'Cycle Opt',
119
117
  'signalIP': 'Signal IP',
120
118
  'stagecountdown': 'Stage Countdown',
121
119
  'stageduration': 'Stage Duration',
@@ -1113,6 +1111,7 @@ const en = {
1113
1111
  '3024': 'The current user has not been created!',
1114
1112
  '3025': 'Token is not enabled!',
1115
1113
  '3026': 'The role has associated users!',
1114
+ '3027': 'The character does not exist!',
1116
1115
  // 消息通讯错误
1117
1116
  '4001': 'Error Request',
1118
1117
  '4002': 'Error Response',
@@ -107,11 +107,9 @@ const zh = {
107
107
  'crossinfo': '路口信息',
108
108
  'flow': '车道平均流量(h)',
109
109
  'saturationflow': '车道规划饱和流量(h)',
110
- // 'typeflow-split-opt': '饱和绿信比优化',
110
+ 'typeflow-split-opt': '饱和绿信比优化',
111
111
  'maxFlow': '车道平均流量过大,是否继续优化?',
112
- // 'typecycle-opt': '周期优化',
113
- 'typeflow-split-opt': '最小延误',
114
- 'typecycle-opt': '均衡度最优',
112
+ 'typecycle-opt': '周期优化',
115
113
  'crossname': '路口名称',
116
114
  'divicestate': '设备状态',
117
115
  'protocoltype': '协议类型',
@@ -1113,6 +1111,7 @@ const zh = {
1113
1111
  '3024': '当前用户没有被创建!',
1114
1112
  '3025': 'token未启用!',
1115
1113
  '3026': '角色存在关联的用户!',
1114
+ '3027': '角色不存在!',
1116
1115
  // 消息通讯错误
1117
1116
  '4001': '错误请求',
1118
1117
  '4002': '错误应答',
@@ -11,7 +11,6 @@
11
11
  :showBarrier="showBarrier"
12
12
  :controlPhase="controlPhase"
13
13
  :isShowTip="isShowTip"
14
- :isMove="isMove"
15
14
  :localPatternList="localPatternList"
16
15
  :showCondition="showCondition"
17
16
  :contrloType="contrloType"
@@ -25,7 +24,6 @@
25
24
  :cycle="cycle"
26
25
  :syncTime="syncTime"
27
26
  :style="{'margin-top': '25px'}"
28
- @handleSplitMove="handleSplitMove"
29
27
  :patternStatusList="patternStatusList"
30
28
  :patternId="patternId"
31
29
  :cycles="cycles">
@@ -74,10 +72,6 @@ export default {
74
72
  stagesChange: {
75
73
  type: Array
76
74
  },
77
- isMove: {
78
- type: Boolean,
79
- default: true
80
- },
81
75
  isShowTip: {
82
76
  type: Boolean,
83
77
  default: true
@@ -114,11 +108,6 @@ export default {
114
108
  syncTime: {
115
109
  type: Number
116
110
  }
117
- },
118
- methods: {
119
- handleSplitMove (data) {
120
- this.$emit('handleSplitMove', data)
121
- }
122
111
  }
123
112
  }
124
113
  </script>