openatc-components 0.3.110 → 0.3.112

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 (54) hide show
  1. package/package/kisscomps/components/BoardCard/BoardCard.vue +4 -11
  2. package/package/kisscomps/components/Channelization/Channelization.vue +1 -1
  3. package/package/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +1 -1
  4. package/package/kisscomps/components/DrawChannelization/drawsvg/iconSvg/motorwayIconSvg.vue +145 -46
  5. package/package/kisscomps/components/DrawChannelization/drawsvg/index.draw.vue +4 -4
  6. package/package/kisscomps/components/DrawChannelization/drawsvg/index.vue +1 -1
  7. package/package/kisscomps/components/IntersectionMap/intersectionmap.vue +1 -1
  8. package/package/kisscomps/components/OptimizeKanban/index.js +2 -0
  9. package/package/kisscomps/components/OptimizeKanban/index.vue +369 -0
  10. package/package/kisscomps/components/OverviewComponent/index.vue +17 -11
  11. package/package/kisscomps/components/PatternOptimize/PatternOptimize.vue +2 -11
  12. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +89 -84
  13. package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +5 -34
  14. package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +11 -9
  15. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +4 -6
  16. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/icon.vue +0 -32
  17. package/package/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +12 -19
  18. package/package/kisscomps/components/overView/index.vue +24 -1
  19. package/package/kisscomps/components/patternList/patternList.vue +4 -11
  20. package/package/kissui.min.js +1 -1
  21. package/package.json +1 -1
  22. package/src/i18n/language/en.js +3 -6
  23. package/src/i18n/language/zh.js +3 -6
  24. package/src/kisscomps/components/BoardCard/BoardCard.vue +4 -11
  25. package/src/kisscomps/components/Channelization/Channelization.vue +1 -1
  26. package/src/kisscomps/components/ChannelizationFlowStatistic/ChannelizationFlowStatistic.vue +1 -1
  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/DrawChannelization/drawsvg/index.vue +1 -1
  30. package/src/kisscomps/components/IntersectionMap/intersectionmap.vue +1 -1
  31. package/src/kisscomps/components/OverviewComponent/index.vue +17 -11
  32. package/src/kisscomps/components/PatternOptimize/PatternOptimize.vue +2 -11
  33. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +89 -84
  34. package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +5 -34
  35. package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +11 -9
  36. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +4 -6
  37. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/icon.vue +0 -32
  38. package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +12 -19
  39. package/src/kisscomps/components/overView/index.vue +24 -1
  40. package/src/kisscomps/components/patternList/patternList.vue +4 -11
  41. package/src/node_modules/.package_versions.json +1 -0
  42. package/src/utils/ControlFormat.js +1 -1
  43. package/src/views/intersection.vue +6 -7
  44. package/src/views/intersection2.vue +4 -4
  45. package/src/views/overView.vue +5 -27
  46. package/static/apiconfig.json +0 -10
  47. package/static/styles/common.scss +3 -3
  48. package/static/styles/dark/theme/element-dark.scss +1 -1
  49. package/static/styles/intersection.scss +15 -5
  50. package/static/styles/light/theme/element-light.scss +1 -1
  51. package/static/styles/schemeconfig.scss +3 -6
  52. package/package/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +0 -95
  53. package/src/api/permission.js +0 -33
  54. package/src/kisscomps/components/SchemeConfig/utils/thirdPartypermission.js +0 -95
@@ -11,12 +11,36 @@
11
11
  **/
12
12
  <template>
13
13
  <div class="main-patternstatus">
14
+ <!-- rcp模式 -->
15
+ <div v-if="patternType === 'rcp'">
16
+ <div class="ring-first" v-for="(list, index1) in patternRcp" :key="index1">
17
+ <div style="position: relative" :style="{height: '34px',paddingRight: '1px',float: 'left',width:
18
+ ((item.split + (item.sum ? item.sum : 0)) /(item.cycle > cycles ? item.cycle : cycles)) *100 +'%',}"
19
+ v-for="(item, index2) in list" :key="index2">
20
+ <div class="first-1" :style="{ width:
21
+ (Number(item.greenWidth.replace('%', '')) /
22
+ Number((((item.split + (item.sum ? item.sum : 0)) /
23
+ (item.cycle > cycles ? item.cycle : cycles)) * 100 + '%').replace('%', ''))) * 100 + '%', height: '34px',background: '#7ccc66'}">
24
+ </div>
25
+ <el-tooltip placement="top-start" effect="light">
26
+ <div v-if="item.id" slot="content">P{{ item.id }}:{{ item.split }}</div>
27
+ <div v-if="item.id" style="cursor: pointer">
28
+ <div
29
+ class="box"
30
+ style="position: absolute; width:40px; left: 0; top: 5px"
31
+ >
32
+ <div class="ring-nums">P{{ item.id }}:{{ item.split }}</div>
33
+ </div>
34
+ </div>
35
+ </el-tooltip>
36
+ </div>
37
+ </div>
38
+ </div>
14
39
  <!-- 环模式true -->
15
- <div v-if="this.contrloType === 'ring' || !this.contrloType">
40
+ <div v-if="(this.contrloType === 'ring' || !this.contrloType) && patternType !== 'rcp'">
16
41
  <div class="ring-first" v-for="(list, index1) in patternInfo" :key="index1">
17
- <draggable :move="move" @end="endDrag(index1)" :disabled="isMove" :list="list">
18
- <div style="position: relative;" :style="{'height': '34px','float':'left','width':((item.split+(item.sum?item.sum:0)) / (max?max:item.cycle) * 100) + '%'}" v-for="(item,index2) in list" :key="index2" :class="item.mode===7?'direction': ''">
19
- <div class="first-1" :class="item.mode === 8 ? 'mask' : item.mode === 9 ? 'yellowClass' : ''" :style="{'width':Number(item.greenWidth.replace('%', ''))/Number((((item.split+(item.sum?item.sum:0)) / (max?max:item.cycle) * 100) + '%').replace('%', ''))*100+'%','height':'34px','background':'#7ccc66'}">
42
+ <div style="position: relative;" :style="{'height': '34px','float':'left','width':((item.split+(item.sum?item.sum:0)) / (max?max:item.cycle) * 100) + '%'}" v-for="(item,index2) in list" :key="index2" :class="item.mode===7?'direction': ''">
43
+ <div class="first-1" :class="item.mode === 8 ? 'mask' : item.mode === 9 ? 'yellowClass' : ''" :style="{'width':Number(item.greenWidth.replace('%', ''))/Number((((item.split+(item.sum?item.sum:0)) / (max?max:item.cycle) * 100) + '%').replace('%', ''))*100+'%','height':'34px','background':'#7ccc66'}">
20
44
  <el-tooltip placement="top-start" effect="light">
21
45
  <div slot="content">{{$t('openatccomponents.phase.phase')}}{{item.id}}:{{item.split}}</div>
22
46
  <div style="cursor:pointer;">
@@ -26,18 +50,7 @@
26
50
  </div>
27
51
  <div v-if="isShowTip" class="box" style="position: absolute; left:40px; width:40px; top: -1px;">
28
52
  <div class="ring-nums">{{$t('openatccomponents.phase.phase')}}{{item.id}}</div>
29
- <div v-if="isMove" class="ring-nums">{{item.split}}</div>
30
- <el-input-number
31
- v-if="!isMove"
32
- class="ring-nums"
33
- size="small"
34
- :controls="false"
35
- :min="0"
36
- :step="1"
37
- v-model.number="item.split"
38
- @change="handleEdit(item)"
39
- style="width: 24px"
40
- ></el-input-number>
53
+ <div class="ring-nums">{{item.split}}</div>
41
54
  </div>
42
55
  </div>
43
56
  </el-tooltip>
@@ -53,8 +66,7 @@
53
66
  <div class="first-1" :class="item.mode === 8 ? 'mask' : item.mode === 9 ? 'yellowClass' : ''" :style="{'width':Number(item.flashgreen.replace('%', ''))/Number((((item.split+(item.sum?item.sum:0)) / (max?max:item.cycle) * 100).toFixed(3) + '%').replace('%', ''))*100+'%','height':'34px','float':'left','background': 'linear-gradient(to right, #ffffff 50%, #7ccc66 0)','background-size': '4px 100%'}"></div>
54
67
  <div class="first-1" :class="item.mode === 8 ? 'mask' : item.mode === 9 ? 'yellowClass' : ''" :style="{'width':Number(item.yellowWidth.replace('%', ''))/Number((((item.split+(item.sum?item.sum:0)) / (max?max:item.cycle) * 100) + '%').replace('%', ''))*100+'%','height':'34px','background':'#f9dc6a'}"></div>
55
68
  <div class="first-1" :class="item.mode === 8 ? 'mask' : item.mode === 9 ? 'yellowClass' : ''" :style="{'width':Number(item.redWidth.replace('%', ''))/Number((((item.split+(item.sum?item.sum:0)) / (max?max:item.cycle) * 100).toFixed(3) + '%').replace('%', ''))*100+'%','height':'34px','background':'#f27979'}"></div>
56
- </div>
57
- </draggable>
69
+ </div>
58
70
  </div>
59
71
  <div v-if="showBarrier">
60
72
  <div v-for="(item, index) in barrierList" :key="index + '1'">
@@ -113,7 +125,6 @@
113
125
  <script>
114
126
  // import patternwalksvg from '../PatternWalkSvg/PatternWalkSvg'
115
127
  import xdrdirselector from '../XRDDirSelector/XRDDirSelector'
116
- import draggable from 'vuedraggable'
117
128
  // import PatternWalkSvg from '../IntersectionMap/crossDirection/baseImg/PatternWalkSvg'
118
129
  import PhaseDataModel from '../IntersectionMap/crossDirection/utils.js'
119
130
  import CrossDiagramMgr from '../../../EdgeMgr/controller/crossDiagramMgr.js'
@@ -121,7 +132,6 @@ export default {
121
132
  name: 'pattern-list',
122
133
  components: {
123
134
  // patternwalksvg,
124
- draggable,
125
135
  xdrdirselector
126
136
  },
127
137
  data () {
@@ -129,10 +139,10 @@ export default {
129
139
  barrierHeight: '',
130
140
  stageCycle: '',
131
141
  barrierList: [],
132
- barrierArr: [],
133
142
  newCycle: this.cycles,
134
143
  patternIds: this.patternId,
135
144
  newPatterns: [],
145
+ patternRcp: [],
136
146
  newList: [],
137
147
  isControl: true,
138
148
  contrloCycle: 0,
@@ -158,13 +168,12 @@ export default {
158
168
  stagesChange: {
159
169
  type: Array
160
170
  },
161
- isMove: {
162
- type: Boolean,
163
- default: true
164
- },
165
171
  controlPhase: {
166
172
  type: Object
167
173
  },
174
+ patternType: {
175
+ type: String
176
+ },
168
177
  contrloType: {
169
178
  type: String
170
179
  },
@@ -337,6 +346,9 @@ export default {
337
346
  cycles: {
338
347
  handler: function (val, oldVal) {
339
348
  this.newCycle = this.cycles
349
+ if (this.patternType === 'rcp') {
350
+ this.handleRcp(this.patternStatusList)
351
+ }
340
352
  },
341
353
  // 深度观察监听
342
354
  deep: true
@@ -361,13 +373,16 @@ export default {
361
373
  },
362
374
  patternStatusList: {
363
375
  handler: function (val, oldVal) {
376
+ if (this.patternType === 'rcp') {
377
+ this.handleRcp(this.patternStatusList)
378
+ }
364
379
  this.handleBarrierHeight() // 计算屏障高度
365
380
  if (this.patternStatusList && this.newCycle) {
366
- // setTimeout(() => {
367
- this.handleCurrentChange(this.patternStatusList)
381
+ setTimeout(() => {
382
+ this.handleCurrentChange(this.patternStatusList)
383
+ this.handleBarrierHeight()
384
+ }, 10)
368
385
  this.handleBarrierHeight()
369
- // }, 10)
370
- // this.handleBarrierHeight()
371
386
  }
372
387
  },
373
388
  // 深度观察监听
@@ -393,62 +408,11 @@ export default {
393
408
  if (this.contrloType === 'stage') {
394
409
  this.getStage()
395
410
  }
411
+ if (this.patternType === 'rcp') {
412
+ this.handleRcp(this.patternStatusList)
413
+ }
396
414
  },
397
415
  methods: {
398
- move (e) {
399
- // 这里的e表示即将停靠的元素。
400
- let result = this.barrierArr.filter(item => item.includes(e.relatedContext.element.id))[0]
401
- if (!result.includes(e.draggedContext.element.id)) {
402
- return false
403
- }
404
- },
405
- endDrag (index) {
406
- // 拖动后对原数据排序
407
- const idIndexMap = {}
408
- this.patternInfo.forEach((subArray, subArrayIndex) => {
409
- subArray.forEach((item, index) => {
410
- idIndexMap[item.id] = { subArrayIndex, index }
411
- })
412
- })
413
- this.patternStatusList.forEach((subArray, subArrayIndex) => {
414
- if (subArray.length > 0) {
415
- subArray.sort((aItem, bItem) => {
416
- const aIndex = idIndexMap[aItem.id] ? idIndexMap[aItem.id].index : Infinity
417
- const bIndex = idIndexMap[bItem.id] ? idIndexMap[bItem.id].index : Infinity
418
- return aIndex - bIndex
419
- })
420
- }
421
- })
422
- },
423
- handleEdit (val) {
424
- this.patternStatusList.map(d => {
425
- d.map(r => {
426
- if (r.id === val.id) {
427
- r.value = val.split
428
- }
429
- })
430
- })
431
- // this.handleCurrentChange(this.patternStatusList)
432
- this.$emit('handleSplitMove', this.patternId)
433
- },
434
- getMaxCycle (pattern) {
435
- // let rings = pattern.rings
436
- let maxCycle = 0
437
- for (let ring of pattern) {
438
- if (ring.length === 0) continue
439
- let cycle = 0
440
- for (let r of ring) {
441
- if (r.mode === 7) { // 忽略相位不计周期
442
- continue
443
- }
444
- cycle = cycle + r.value
445
- }
446
- if (cycle > maxCycle) {
447
- maxCycle = cycle
448
- }
449
- }
450
- return maxCycle
451
- },
452
416
  getPed (data) {
453
417
  let ped = []
454
418
  for (let stg of data) {
@@ -475,6 +439,48 @@ export default {
475
439
  }
476
440
  return ped
477
441
  },
442
+ handleRcp (val) {
443
+ this.patternRcp = []
444
+ let valSplit = val.map(item => {
445
+ return item.map(val => {
446
+ return val.splitchain
447
+ })
448
+ })
449
+ let splitCycle = valSplit.length > 0 ? valSplit.map(item => {
450
+ return item.length > 0 ? item.reduce((a, b) => {
451
+ return a + b
452
+ }) : 0
453
+ }) : 0
454
+ let cycle = Math.max(...splitCycle)// 每个环的周期最大值
455
+ for (let rings of val) {
456
+ if (rings.length === 0) continue
457
+ let list = []
458
+ for (let ring of rings) {
459
+ if (ring.splitchain === 0) continue
460
+ let obj = {}
461
+ let split = ring.splitchain
462
+ obj.split = split
463
+ obj.cycle = cycle
464
+ obj.id = ring.phases
465
+ // if (ring.sum) {
466
+ // obj.sum = ring.sum
467
+ // obj.redWidth = ((currPhase.redclear + ring.sum) / (this.fixCycle ? this.fixCycle : this.max ? this.max : this.newCycle) * 100) + '%'
468
+ // } else {
469
+ // obj.redWidth = (currPhase.redclear / (this.fixCycle ? this.fixCycle : this.max ? this.max : this.newCycle) * 100) + '%'
470
+ // }
471
+ // obj.mode = ring.mode
472
+ obj.greenWidth = (split / (cycle > this.cycles ? cycle : this.cycles)) * 100 + '%'
473
+ // obj.flashgreen = (currPhase.flashgreen / (this.fixCycle ? this.fixCycle : this.max ? this.max : this.newCycle) * 100) + '%'
474
+ // obj.yellowWidth = (currPhase.yellow / (this.fixCycle ? this.fixCycle : this.max ? this.max : this.newCycle) * 100) + '%'
475
+ // 忽略相位不显示
476
+ // let mode = ring.mode
477
+ // if (mode !== 7) { // 忽略相位不显示
478
+ list.push(obj)
479
+ // }
480
+ }
481
+ this.patternRcp.push(list)
482
+ }
483
+ },
478
484
  handleStageData (data) {
479
485
  if (!data) return
480
486
  let peddirections = this.getPed(data)
@@ -1253,7 +1259,6 @@ export default {
1253
1259
  }
1254
1260
  }
1255
1261
  let resArr = ringArr.map(item => item.data)
1256
- this.barrierArr = resArr
1257
1262
  let ringTeam = this.step1(this.phaseList, resArr)
1258
1263
  let ringTeams = ringTeam.filter(item => item.length !== 0)
1259
1264
  if (this.patternList) {
@@ -40,8 +40,6 @@
40
40
  :patternSelect="patternSelect"
41
41
  :allPatternList="allPatternList"
42
42
  :funcSort="funcSort"
43
- :thirdPartyControlMenu="thirdPartyControlMenu"
44
- :thirdPartyControl="thirdPartyControl"
45
43
  :isShowBack="isShowBack"
46
44
  :isShowRecovery="isShowRecovery"
47
45
  :isShowImplement="isShowImplement"
@@ -106,8 +104,6 @@
106
104
  :patternSelect="patternSelect"
107
105
  :allPatternList="allPatternList"
108
106
  :funcSort="funcSort"
109
- :thirdPartyControlMenu="thirdPartyControlMenu"
110
- :thirdPartyControl="thirdPartyControl"
111
107
  :isShowBack="isShowBack"
112
108
  :isShowRecovery="isShowRecovery"
113
109
  :isShowImplement="isShowImplement"
@@ -142,8 +138,6 @@ import CrossDiagramMgr from '../../../EdgeMgr/controller/crossDiagramMgr.js'
142
138
  import { setToken, setHost, getTheme } from '../../../utils/auth.js'
143
139
  import RingDataModel from '../../../utils/RingDataModel.js'
144
140
  import { getIntersectionInfo } from '../../../api/template'
145
- import { GetRoleByName } from '../../../api/permission.js'
146
- import { getPermissionMenu, getPermissionControl } from './utils/thirdPartypermission.js'
147
141
 
148
142
  export default {
149
143
  name: 'scheme-config',
@@ -206,6 +200,10 @@ export default {
206
200
  type: String,
207
201
  default: ''
208
202
  },
203
+ funcSort: {
204
+ type: String,
205
+ default: 'allFunc'
206
+ },
209
207
  roadDirection: {
210
208
  type: String,
211
209
  default: 'right'
@@ -421,13 +419,6 @@ export default {
421
419
  permission: 'configer:manual:base',
422
420
  iconName: this.$t('openatccomponents.overview.modelList19'),
423
421
  bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
424
- }, {
425
- type: '感应式自适应',
426
- id: 18,
427
- iconClass: 'ganyingshizishiying',
428
- permission: 'configer:manual:base',
429
- iconName: this.$t('openatccomponents.overview.modelList18'),
430
- bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
431
422
  }
432
423
  ],
433
424
  othersControlList: [
@@ -474,10 +465,7 @@ export default {
474
465
  patternSelect: [], // 所有方案id
475
466
  specialPage: '', // 哪一个特殊控制页面
476
467
  nextcycleefficcontrol: [5, 6, 9, 10, 12, 19], // 下周期生效的控制方式
477
- resetcomponent: false,
478
- funcSort: 'allFunc',
479
- thirdPartyControlMenu: [],
480
- thirdPartyControl: []
468
+ resetcomponent: false
481
469
  }
482
470
  },
483
471
  watch: {
@@ -625,25 +613,8 @@ export default {
625
613
  changeStatus () {
626
614
  this.toPage = 1
627
615
  this.isOperation = true
628
- if (this.platform !== undefined && this.platform !== 'OpenATC') {
629
- this.queryThirdParty()
630
- }
631
616
  this.$refs.ManualControlModalNew.init()
632
617
  },
633
- queryThirdParty () {
634
- this.funcSort = 'allFunc'
635
- GetRoleByName(`thirdparty--${this.platform}`).then(res => {
636
- if (!res.data.success) {
637
- let msg = getMessageByCode(res.data.code, this.$i18n.locale)
638
- this.$message.error(msg)
639
- return
640
- }
641
- this.funcSort = 'thirdPartyFunc'
642
- this.thirdPartyControl = getPermissionControl(res.data.data)
643
- this.thirdPartyControlMenu = getPermissionMenu(this.thirdPartyControl)
644
- this.$refs.ManualControlModalNew.activeName = this.thirdPartyControlMenu[0]
645
- })
646
- },
647
618
  handleGetData (data) {
648
619
  let that = this
649
620
  if (data.name === '') {
@@ -20,10 +20,10 @@
20
20
  :model="manualInfo"
21
21
  label-width="90px">
22
22
  <el-form-item
23
- :label="$t('openatccomponents.overview.duration')"
24
- prop="count">
25
- <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="small"></el-input-number>
26
- </el-form-item>
23
+ :label="$t('openatccomponents.overview.greenclear')"
24
+ prop="intersection">
25
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempGreenflash" size="small"></el-input-number>
26
+ </el-form-item>
27
27
 
28
28
  <el-form-item
29
29
  :label="$t('openatccomponents.overview.yellowflash')"
@@ -44,11 +44,13 @@
44
44
  label-position="left"
45
45
  :model="manualInfo"
46
46
  label-width="90px">
47
- <el-form-item
48
- :label="$t('openatccomponents.overview.greenclear')"
49
- prop="intersection">
50
- <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempGreenflash" size="small"></el-input-number>
51
- </el-form-item>
47
+
48
+ <el-form-item
49
+ :label="$t('openatccomponents.overview.duration')"
50
+ prop="count">
51
+ <el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="small"></el-input-number>
52
+ </el-form-item>
53
+
52
54
  <el-form-item
53
55
  :label="$t('openatccomponents.overview.allred')"
54
56
  prop="intersection">
@@ -18,7 +18,7 @@
18
18
  <div class="single-model-new"
19
19
  :style="{'backgroundColor': item.bgcolor}"
20
20
  @click="selectModel(item)"
21
- v-if="isHasPermission(item.permission) && (funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControl.indexOf(item.id) !== -1))">
21
+ v-if="isHasPermission(item.permission)">
22
22
  <div class="closephase-icon">
23
23
  <OthersIconSvg :type="item.type" />
24
24
  </div>
@@ -31,7 +31,7 @@
31
31
  :style="{'backgroundColor': item.bgcolor}"
32
32
  @click="selectModel(item)"
33
33
  :class="preselecttype == item.type? 'single-model-select' : ''"
34
- v-if="isHasPermission(item.permission) && (funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControl.indexOf(item.id) !== -1))">
34
+ v-if="isHasPermission(item.permission) && (funcSort === 'allFunc' || (funcSort === 'basicFunc'&& basicFuncControlId.indexOf(item.id) !== -1))">
35
35
  <!-- <svg-icon :icon-class="item.iconClass" className="model-icon"></svg-icon> -->
36
36
  <div class="model-icon">
37
37
  <IconSvg :type="item.type" />
@@ -70,16 +70,14 @@ export default {
70
70
  othersControl: {
71
71
  type: Boolean,
72
72
  default: false
73
- },
74
- thirdPartyControl: {
75
- type: Array
76
73
  }
77
74
  },
78
75
  data () {
79
76
  return {
80
77
  preselecttype: '',
81
78
  controllist: [],
82
- specialControl: [23, 24, 100]
79
+ specialControl: [23, 22, 100, 24, 25],
80
+ basicFuncControlId: [0, 1, 4, 5] // 基础功能包含的控制方式: 自主控制(手动下)、黄闪、步进、定周期
83
81
  }
84
82
  },
85
83
  computed: {
@@ -399,38 +399,6 @@ PURPOSE. * See the Mulan PSL v2 for more details. **/
399
399
  p-id="6532"
400
400
  ></path>
401
401
  </svg>
402
-
403
- <svg
404
- v-if="type === '感应式自适应'"
405
- t="1734600340213"
406
- class="icon"
407
- viewBox="0 0 1252 1024"
408
- version="1.1"
409
- xmlns="http://www.w3.org/2000/svg"
410
- p-id="12292"
411
- xmlns:xlink="http://www.w3.org/1999/xlink"
412
- :width="iconWidth"
413
- :height="iconHeight"
414
- >
415
- <path
416
- :class="themeColor"
417
- d="M48.597631 254.131387c22.423358 0 44.846715-18.686131 44.846715-44.846715V85.956204h130.80292c18.686131 0 41.109489-18.686131 41.109489-41.109489C265.356755 18.686131 242.933398 0 220.51004 0H48.597631C22.437047 0 3.750916 18.686131 3.750916 44.846715v168.175183c0 22.423358 18.686131 41.109489 44.846715 41.109489zM1203.400551 0h-168.175183c-22.423358 0-44.846715 18.686131-44.846715 44.846715 0 22.423358 18.686131 44.846715 44.846715 44.846716h123.328467v130.802919c0 22.423358 18.686131 44.846715 44.846716 44.846716 22.423358 0 44.846715-18.686131 44.846715-44.846716V44.846715C1244.51004 18.686131 1225.823908 0 1203.400551 0zM1203.400551 766.131387c-22.423358 0-44.846715 18.686131-44.846716 44.846715V934.306569h-130.802919c-22.423358 3.737226-41.109489 22.423358-41.109489 48.583942 3.737226 22.423358 18.686131 37.372263 41.109489 41.109489H1199.663325c22.423358 0 44.846715-18.686131 44.846715-44.846715v-168.175183c0-26.160584-18.686131-44.846715-41.109489-44.846715zM213.035587 930.569343H89.70712v-130.80292c0-22.423358-18.686131-44.846715-44.846715-44.846715-22.423358 0-44.846715 18.686131-44.846716 44.846715V971.678832c0 22.423358 18.686131 44.846715 44.846716 44.846715h168.175182c22.423358-3.737226 41.109489-22.423358 41.109489-48.583941-3.737226-18.686131-18.686131-33.635036-41.109489-37.372263zM556.860405 186.861314H328.889602C284.042887 186.861314 250.40785 224.233577 250.40785 269.080292v485.839416c0 44.846715 33.635036 78.481752 78.481752 78.481752h227.970803c44.846715 0 78.481752-33.635036 78.481752-78.481752v-485.839416C635.342157 224.233577 601.70712 186.861314 556.860405 186.861314z m18.686131 568.058394c0 11.211679-7.474453 18.686131-18.686131 18.686131H328.889602c-11.211679 0-18.686131-7.474453-18.686132-18.686131v-485.839416c0-11.211679 7.474453-18.686131 18.686132-18.686131h227.970803c7.474453 0 14.948905 7.474453 18.686131 18.686131v485.839416zM881.999091 235.445255l-7.474453-7.474452c-11.211679-11.211679-29.89781-11.211679-41.109489 0-11.211679 11.211679-11.211679 29.89781 0 41.109489 130.80292 130.80292 134.540146 343.824818 3.737227 474.627737l-3.737227 3.737226c-11.211679 11.211679-11.211679 29.89781 0 41.10949 7.474453 3.737226 14.948905 7.474453 22.423358 7.474452 7.474453 0 14.948905-3.737226 22.423358-7.474452 153.226277-145.751825 156.963504-396.145985 3.737226-553.10949z"
418
- fill="#606266"
419
- p-id="12293"
420
- ></path>
421
- <path
422
- :class="themeColor"
423
- d="M784.831208 336.350365c-7.474453-14.948905-26.160584-18.686131-41.109489-7.474453-14.948905 11.211679-14.948905 29.89781-7.474453 41.109489 0 3.737226 3.737226 3.737226 7.474453 7.474453 37.372263 33.635036 56.058394 82.218978 56.058394 130.80292s-18.686131 97.167883-56.058394 130.802919c-11.211679 11.211679-11.211679 29.89781 0 41.109489 7.474453 3.737226 14.948905 7.474453 22.423357 7.474453s14.948905-3.737226 22.423358-7.474453c44.846715-44.846715 71.007299-108.379562 71.007299-171.912408s-26.160584-123.328467-74.744525-171.912409z"
424
- fill="#606266"
425
- p-id="12294"
426
- ></path>
427
- <path
428
- :class="themeColor"
429
- d="M702.61223 467.153285c-18.686131 0-29.89781 11.211679-29.897811 26.160584v29.89781c0 14.948905 11.211679 26.160584 26.160584 26.160584h3.737227c14.948905 0 26.160584-11.211679 26.160584-26.160584v-33.635037c3.737226-11.211679-11.211679-22.423358-26.160584-22.423357z"
430
- fill="#606266"
431
- p-id="12295"
432
- ></path>
433
- </svg>
434
402
  </span>
435
403
  </template>
436
404
 
@@ -12,15 +12,13 @@
12
12
  <template>
13
13
  <div class="manual-control-modal-new">
14
14
  <el-tabs v-model="activeName" type="card" @tab-click="handleClick">
15
- <el-tab-pane :label="$t('openatccomponents.overview.residentcontrol')" name="residentcontrol"
16
- v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('residentcontrol') !== -1))">
15
+ <el-tab-pane :label="$t('openatccomponents.overview.residentcontrol')" name="residentcontrol">
17
16
  <ControlModelGroup
18
17
  v-if="activeName === 'residentcontrol'"
19
18
  ref="ControlModelGroup"
20
19
  className="residentcontrol"
21
20
  :controlList="residentControlList"
22
21
  :funcSort="funcSort"
23
- :thirdPartyControl="thirdPartyControl"
24
22
  @selectModel="selectModel"
25
23
  />
26
24
 
@@ -82,15 +80,13 @@
82
80
  <el-button v-if="!isShowImplement" type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.comfirm')}}</el-button>
83
81
  </div>
84
82
  </el-tab-pane>
85
- <el-tab-pane :label="$t('openatccomponents.overview.specialcontrol')" name="specialcontrol"
86
- v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('specialcontrol') !== -1))">
83
+ <el-tab-pane :label="$t('openatccomponents.overview.specialcontrol')" name="specialcontrol">
87
84
  <ControlModelGroup
88
85
  v-if="activeName === 'specialcontrol'"
89
86
  ref="ControlModelGroup"
90
87
  className="specialcontrol"
91
88
  :controlList="specialControlList"
92
89
  :funcSort="funcSort"
93
- :thirdPartyControl="thirdPartyControl"
94
90
  @selectModel="selectModel"
95
91
  />
96
92
 
@@ -116,15 +112,13 @@
116
112
  </div>
117
113
 
118
114
  </el-tab-pane>
119
- <el-tab-pane :label="$t('openatccomponents.overview.schemeselection')" name="schemeselection"
120
- v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('schemeselection') !== -1))">
115
+ <el-tab-pane :label="$t('openatccomponents.overview.schemeselection')" name="schemeselection">
121
116
  <ControlModelGroup
122
117
  v-if="activeName === 'schemeselection'"
123
118
  ref="ControlModelGroup"
124
119
  className="otherscontrol"
125
120
  :controlList="patternChooseControlList"
126
121
  :funcSort="funcSort"
127
- :thirdPartyControl="thirdPartyControl"
128
122
  @selectModel="selectModel"
129
123
  @selectSpecialModel="selectSpecialModel" />
130
124
 
@@ -183,16 +177,14 @@
183
177
  <el-button v-if="!isShowImplement" type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.comfirm')}}</el-button>
184
178
  </div>
185
179
  </el-tab-pane>
186
- <el-tab-pane :label="$t('openatccomponents.overview.others')" name="others"
187
- v-if="(funcSort === 'allFunc' || (funcSort === 'thirdPartyFunc'&& thirdPartyControlMenu.indexOf('others') !== -1))">
180
+ <el-tab-pane :label="$t('openatccomponents.overview.others')" name="others">
188
181
  <ControlModelGroup
189
- v-if="activeName === 'others'"
182
+ v-if="activeName === 'others' && funcSort === 'allFunc'"
190
183
  ref="ControlModelGroup"
191
184
  className="otherscontrol"
192
185
  othersControl
193
186
  :controlList="othersControlList"
194
187
  :funcSort="funcSort"
195
- :thirdPartyControl="thirdPartyControl"
196
188
  @selectModel="selectModel"
197
189
  @selectSpecialModel="selectSpecialModel"
198
190
  />
@@ -356,15 +348,15 @@ export default {
356
348
  isShowImplement: {
357
349
  type: Boolean,
358
350
  default: true
359
- },
360
- thirdPartyControlMenu: {
361
- type: Array
362
- },
363
- thirdPartyControl: {
364
- type: Array
365
351
  }
366
352
  },
367
353
  watch: {
354
+ activeName: {
355
+ handler: function (val) {
356
+ },
357
+ // 深度观察监听
358
+ deep: true
359
+ },
368
360
  patternSelect: {
369
361
  handler: function (val) {
370
362
  this.manualInfo.tempPatternid = this.crossStatusData.patternid
@@ -383,6 +375,7 @@ export default {
383
375
  },
384
376
  data () {
385
377
  return {
378
+ basicFuncControlId: [0, 1, 4, 5], // 基础功能包含的控制方式: 自主控制(手动下)、黄闪、步进、定周期
386
379
  visible: this.Visible,
387
380
  manuals: false,
388
381
  realtimeStage: {},
@@ -74,6 +74,7 @@
74
74
  :agentId="agentId"
75
75
  :ip="ip"
76
76
  :platform="platform"
77
+ :funcSort="FuncSort"
77
78
  :roadDirection="roadDirection" />
78
79
  </div>
79
80
  </div>
@@ -139,6 +140,7 @@ export default {
139
140
  stateName: this.$t('openatccomponents.overview.offline'),
140
141
  curBodyWidth: 1920,
141
142
  graphicMode: false,
143
+ FuncSort: 'allFunc',
142
144
  controlData: {},
143
145
  checked: false,
144
146
  overlap: [],
@@ -153,7 +155,7 @@ export default {
153
155
  volumeControlTimer: null, // 流量定时器
154
156
  ParamsMode: new Map([[0, '自主控制'], [1, '本地手动'], [2, '平台控制'], [3, '配置软件控制'], [4, '遥控器控制'], [5, '黄闪器控制'], [6, '降级控制'], [7, '脚本控制'], [8, '算法控制']]),
155
157
  ParamsModeEn: new Map([[0, 'Autonomous Control'], [1, 'Local Manual'], [2, 'Platform Control'], [3, 'Configuration Software Control'], [4, 'Remote Control'], [5, 'Yellow Flasher Control'], [6, 'Degradation Control'], [7, 'Script Control'], [8, 'Algorithm Control']]),
156
- ParamsControl: new Map([[0, '多时段'], [1, '黄闪'], [2, '全红'], [3, '关灯'], [4, '步进'], [5, '定周期控制'], [6, '单点感应控制'], [7, '协调感应控制'], [8, '方案选择控制'], [9, '自适应控制'], [10, '无电缆控制'], [11, '有电缆控制'], [12, '行人过街控制'], [13, '方案恢复过渡'], [14, '相位驻留'], [15, '通道检测'], [16, '方向锁定'], [17, '韦伯斯特单点控制'], [18, '感应式自适应'], [19, '感应式行人过街'], [20, '方案干预'], [100, '方案干预'], [21, '预留21'], [22, '相位锁定'], [23, '相位放行控制'], [24, '紧急控制'], [99, '设备维护']]),
158
+ ParamsControl: new Map([[0, '多时段'], [1, '黄闪'], [2, '全红'], [3, '关灯'], [4, '步进'], [5, '定周期控制'], [6, '单点感应控制'], [7, '协调感应控制'], [8, '方案选择控制'], [9, '自适应控制'], [10, '无电缆控制'], [11, '有电缆控制'], [12, '行人过街控制'], [13, '方案恢复过渡'], [14, '相位驻留'], [15, '通道检测'], [16, '方向锁定'], [17, '韦伯斯特单点控制'], [18, '预留18'], [19, '感应式行人过街'], [20, '方案干预'], [100, '方案干预'], [21, '预留21'], [22, '相位锁定'], [23, '相位放行控制'], [24, '紧急控制'], [99, '设备维护']]),
157
159
  ParamsControlEn: new Map([[0, 'Multi Period'], [1, 'Yellow Flash Control'], [2, 'Red Control'], [3, 'Dark Control'], [4, 'Step'], [5, 'Fixed_Cycle Control'], [6, 'Free Control'], [7, 'Coordinated Induction Control'], [8, 'Pattern Selection Control'], [9, 'Adaptive Control'], [10, 'Wireless Control'], [11, 'Cable Control'], [12, 'Pedestrian Crossing Control'], [13, 'Pattern recovery'], [14, 'Phase dwell'], [15, 'Channel Detection'], [16, 'Direction lock'], [17, 'Webster Single Point Coordination'], [18, 'Reserving18'], [19, 'Inductive Pedestrian Crossing Control'], [20, 'Program Intervention'], [100, 'Program Intervention'], [21, 'Reserving21'], [22, 'Priority Control'], [23, 'Close Phase'], [24, 'Emergency Control'], [99, 'Device Mantenance']]),
158
160
  phaseType: new Map([[1, '红'], [2, '黄'], [3, '绿']]), // phaseType表示红,黄,绿
159
161
  phaseTypeEn: new Map([[1, 'Red'], [2, 'Yellow'], [3, 'Green']]), // phaseType表示红,黄,绿
@@ -182,6 +184,7 @@ export default {
182
184
  ...mapState({
183
185
  // curBodyWidth: state => state.globalParam.curBodyWidth,
184
186
  curBodyHeight: state => state.globalParam.curBodyHeight,
187
+ // FuncSort: state => state.globalParam.FuncSort,
185
188
  hideMenu: state => state.globalParam.hideMenu
186
189
  // graphicMode: state => state.globalParam.graphicMode
187
190
  // isShowGui: state => state.globalParam.isShowGui,
@@ -610,6 +613,12 @@ export default {
610
613
  this.agentName = res.data.data.name
611
614
  }
612
615
  this.platform = res.data.data.platform
616
+ if (this.platform === 'OpenATC') {
617
+ this.FuncSort = 'allFunc'
618
+ }
619
+ if (this.platform === 'SCATS' || this.platform === 'HUATONG') {
620
+ this.FuncSort = 'basicFunc'
621
+ }
613
622
  this.$refs.intersectionMap.resetCrossDiagram()
614
623
  this.registerMessage() // 注册消息
615
624
  this.initData()
@@ -654,6 +663,20 @@ export default {
654
663
  } else {
655
664
  this.stateName = this.$t('openatccomponents.overview.offline')
656
665
  }
666
+ // let func = 'allFunc'
667
+ // if (this.platform === 'OpenATC') {
668
+ // func = 'allFunc'
669
+ // }
670
+ // if (this.platform === 'SCATS' || this.platform === 'HUATONG') {
671
+ // func = 'basicFunc'
672
+ // }
673
+ // this.$store.dispatch('SaveFunctionLevel', func)
674
+ if (this.platform === 'OpenATC') {
675
+ this.FuncSort = 'allFunc'
676
+ }
677
+ if (this.platform === 'SCATS' || this.platform === 'HUATONG') {
678
+ this.FuncSort = 'basicFunc'
679
+ }
657
680
  })
658
681
  },
659
682
  isJsonString (str) {