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
@@ -72,14 +72,14 @@ export default {
72
72
  // },
73
73
  data () {
74
74
  return {
75
- tableColums: ['agentid', 'period', 'offset', 'cycle', 'pattern'], // greenWave, period
75
+ tableColums: ['agentid', 'name', 'period', 'pattern'], // greenWave, period
76
76
  // tableColums: ['no', 'id', 'period', 'name', 'isUsed', 'patternId', 'offset', 'cycle', 'pattern'], // greenWave, period
77
- isShowSingle: true,
77
+ isShowSingle: false,
78
78
  isOnlyOneTab: false,
79
- isSingleCrossMode: true,
79
+ isSingleCrossMode: false,
80
80
  isShowTableHeader: true,
81
- // isAllowedExpand: false,
82
- isAllowedExpand: true,
81
+ isAllowedExpand: false,
82
+ // isAllowedExpand: true,
83
83
  // agentids: ['gjnlgjxl'],
84
84
  agentids4: [
85
85
  'tjblxyl',
@@ -165,6 +165,7 @@ export default {
165
165
  agentId: '12008_835',
166
166
  // agentId: '0351-01',
167
167
  reqUrl: 'http://192.168.13.103:10003/openatc',
168
+ Token135: 'eyJraWQiOiIxNzIzMDgzMDcxMzIxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTk4NTQ0MzIwMCwiaWF0IjoxNzIyNDM4MDAwfQ.i-RVHcxmtgvD9boQECpBCz7T1fJ0TAjzO5BWin3VdoY',
168
169
  Token: 'eyJraWQiOiIxNzAwMjAwNDQ4MTA0IiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc2NzExMDQwMCwiaWF0IjoxNjk5Mjg2NDAwfQ.AyVJCGmVQVafdWBDQ7TMhVQ5Dvjy13NeuQ8rimTPgtc',
169
170
  // reqUrl: 'http://192.168.13.113:10003/openatc',
170
171
  // Token: 'eyJraWQiOiIxNjkxMzcxMTc5ODcxIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTcxNDE0NzIwMCwiaWF0IjoxNjkwODE5MjAwfQ.AhUj9taw4_IpP77AmP5bvCE87dDQ4-ZdsEJzrlWXKF8',
@@ -197,8 +198,36 @@ export default {
197
198
  ]
198
199
  },
199
200
  agentids6: ['tjblsxl-ticp6'],
200
- agentids5: ['cllytl'],
201
- opt5: {},
201
+ agentids5: ['tjllybj', 'tjlzsdj', 'tjlhaj', 'tjlyhddj'],
202
+ opt5: {
203
+ 'optPatternList': [
204
+ {
205
+ 'name': '仿真实例 1',
206
+ 'devs': [
207
+ {
208
+ 'agentid': 'tjllybj',
209
+ 'patternid': 1,
210
+ 'isused': true
211
+ },
212
+ {
213
+ 'agentid': 'tjlzsdj',
214
+ 'patternid': 1,
215
+ 'isused': true
216
+ },
217
+ {
218
+ 'agentid': 'tjlhaj',
219
+ 'patternid': 1,
220
+ 'isused': true
221
+ },
222
+ {
223
+ 'agentid': 'tjlyhddj',
224
+ 'patternid': 1,
225
+ 'isused': true
226
+ }
227
+ ]
228
+ }
229
+ ]
230
+ },
202
231
  agentids: ['gjnlgjxl'],
203
232
  opt: {
204
233
  'optPatternList': [
@@ -14709,7 +14738,8 @@ export default {
14709
14738
  // // _this.agentId = 'scats1'
14710
14739
  // _this.agentids = ['gjnlahql', 'gjnlgjxl']
14711
14740
  // }, 5 * 1000)
14712
- this.setPropsToken(this.Token)
14741
+ this.setPropsToken(this.Token135)
14742
+ // this.setPropsToken(this.Token)
14713
14743
  window.onresize = () => {
14714
14744
  return (() => {
14715
14745
  // this.setDialogWidth()
@@ -61,9 +61,9 @@ export default {
61
61
  showWalk: [ 1, 2 ],
62
62
  sidewalkPhaseData: [{key: 'pedphase1653873194007699', phaseid: 1, id: 1, name: '东人行横道', isshow: false}],
63
63
  lockPhaseBtnName: this.$t('openatccomponents.overview.comfirm'),
64
- agentId: '1511_207',
64
+ agentId: '32050101041121000001',
65
65
  Token: 'eyJraWQiOiIxNzAxODMyOTQ3MTUwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJxeXl0aCIsImV4cCI6MTc2OTc4ODgwMCwiaWF0IjoxNzAxMzYwMDAwfQ.RIQpNEkJibL-RYllirDeNLi8G9-t8PecM_m7KlZNQXg',
66
- Token103: 'eyJraWQiOiIxNjcwMzc0ODA4MTcyIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJhZG1pbiIsImV4cCI6MTc1Njc3NDgwOCwiaWF0IjoxNjcwMzc0ODA4fQ.xsRoye_tk_Xf60w5Mpigm8vrPgQJCLN-W_IW4U7dafA',
66
+ Token103: 'eyJraWQiOiIxNzAxODMyOTQ3MTUwIiwidHlwIjoiSldUIiwiYWxnIjoiSFMyNTYifQ.eyJzdWIiOiJxeXl0aCIsImV4cCI6MTc2OTc4ODgwMCwiaWF0IjoxNzAxMzYwMDAwfQ.RIQpNEkJibL-RYllirDeNLi8G9-t8PecM_m7KlZNQXg',
67
67
  boxVisible: false,
68
68
  dialogWidth: '80%',
69
69
  crossStatusData: {} // 路口状态数据
@@ -138,11 +138,8 @@ export default {
138
138
  }
139
139
  return
140
140
  }
141
- console.log(data.data.data)
142
141
  this.crossStatusData = JSON.parse(JSON.stringify(data.data.data.data))
143
- // debugger
144
- console.log(this.crossStatusData)
145
- // debugger
142
+ console.log('this.crossStatusData:', this.crossStatusData)
146
143
  }).catch(error => {
147
144
  console.log(error)
148
145
  })
@@ -151,6 +148,7 @@ export default {
151
148
  // 获取路口信息
152
149
  getIntersectionInfo(agentid).then(res => {
153
150
  this.phaseList = res.data.data.param.phaseList
151
+ console.log('this.phaseList:', this.phaseList)
154
152
  })
155
153
  },
156
154
  setPropsToken (token) {
@@ -447,5 +447,15 @@
447
447
  "key": "getDetectorStatus",
448
448
  "url": "/devs/detectorstatus",
449
449
  "method": "get"
450
+ },
451
+ {
452
+ "key": "getRoleByName",
453
+ "url": "/auth/role/rolename",
454
+ "method": "get"
455
+ },
456
+ {
457
+ "key": "getPermission",
458
+ "url": "/auth/role/",
459
+ "method": "get"
450
460
  }
451
461
  ]
@@ -11,12 +11,12 @@
11
11
 
12
12
  // 全局滚动条样式
13
13
  ::-webkit-scrollbar {
14
- width: 6PX;
15
- height: 6PX;
14
+ width: 12PX;
15
+ height: 12PX;
16
16
  }
17
17
  ::-webkit-scrollbar-thumb {
18
18
  // 滚动条的滑块
19
- border-radius: 3PX;
19
+ border-radius: 4px;
20
20
  background: rgba(144, 147, 153, 0.3);
21
21
  }
22
22
  ::-webkit-scrollbar-corner{
@@ -34,7 +34,7 @@ $--button-danger-font-color: #FFFFFF;
34
34
  $--button-success-font-color: #FFFFFF;
35
35
  $--radio-button-checked-font-color: #FFFFFF;
36
36
  $--radio-font-color: $--color-text-secondary;
37
- $--tag-info-color: #FFFFFF;
37
+ $--tag-info-color: $--color-text-placeholder;
38
38
  $--tooltip-color: $--color-white;
39
39
  $--checkbox-font-color: $--color-text-secondary;
40
40
 
@@ -38,6 +38,9 @@
38
38
  zoom: 0.9;
39
39
 
40
40
  }
41
+ .centerText .text {
42
+ font-size: 14px;
43
+ }
41
44
  }
42
45
  /*当屏幕小于等于1440px的屏幕样式*/
43
46
  @media only screen and (max-width: 1440px){
@@ -46,6 +49,9 @@
46
49
  zoom: 0.8;
47
50
 
48
51
  }
52
+ .centerText .text {
53
+ font-size: 18px;
54
+ }
49
55
  }
50
56
  /*当屏幕小于等于1280px的屏幕样式*/
51
57
  @media only screen and (max-width: 1280px){
@@ -53,6 +59,9 @@
53
59
  // transform: scale(0.65);
54
60
  zoom: 0.65;
55
61
  }
62
+ .centerText .text {
63
+ font-size: 20px;
64
+ }
56
65
  }
57
66
  /*当屏幕小于等于960px的屏幕样式*/
58
67
  @media only screen and (max-width: 960px){
@@ -60,6 +69,9 @@
60
69
  // transform: scale(0.5);
61
70
  zoom: 0.5;
62
71
  }
72
+ .centerText .text {
73
+ font-size: 14px;
74
+ }
63
75
  }
64
76
  /*当屏幕小于等于720px的屏幕样式*/
65
77
  @media only screen and (max-width: 720px){
@@ -67,6 +79,9 @@
67
79
  // transform: scale(0.45);
68
80
  zoom: 0.45;
69
81
  }
82
+ .centerText .text {
83
+ font-size: 14px;
84
+ }
70
85
  }
71
86
  // 小屏幕打开首页适配样式
72
87
  .minifont {
@@ -173,9 +188,4 @@
173
188
  color: $--color-text-primary;
174
189
  font-size:30PX;
175
190
  }
176
- .centerText {
177
- .text {
178
- font-size: 18PX;
179
- }
180
- }
181
191
  }
@@ -34,7 +34,7 @@ $--card-background-selected: #c1e0ff;
34
34
  // $--button-success-font-color: #FFFFFF;
35
35
  // $--radio-button-checked-font-color: #FFFFFF;
36
36
  // $--radio-font-color: $--color-text-secondary;
37
- $--tag-info-color: #303133;
37
+ // $--tag-info-color: $--color-text-placeholder;
38
38
  // $--tooltip-color: $--color-white;
39
39
  // $--checkbox-font-color: $--color-text-secondary;
40
40
 
@@ -226,7 +226,7 @@
226
226
  overflow-y: auto;
227
227
  }
228
228
  .manual-common-content::-webkit-scrollbar {
229
- width: 6PX;
229
+ width: 8PX;
230
230
  }
231
231
  }
232
232
  // 手动控制弹框
@@ -498,12 +498,12 @@
498
498
  width: 85% !important;
499
499
  }
500
500
  .el-input.is-disabled .el-input__inner {
501
- text-align: left;
501
+ text-align: center;
502
502
  }
503
503
  .el-input-number {
504
504
  width: 100%;
505
505
  .el-input__inner {
506
- text-align: left;
506
+ text-align: center;
507
507
  }
508
508
  }
509
509
  .el-select {
@@ -540,9 +540,6 @@
540
540
  }
541
541
  .el-input-number {
542
542
  width: 100%;
543
- .el-input__inner {
544
- text-align: left;
545
- }
546
543
  }
547
544
  .el-input-number--mini{
548
545
  width: 100%;