openatc-components 0.1.33 → 0.1.34

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 (26) hide show
  1. package/package/kisscomps/components/CommonKanban/CommonKanban.vue +5 -4
  2. package/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +20 -9
  3. package/package/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +20 -9
  4. package/package/kisscomps/components/KanBan/kanban.vue +1 -1
  5. package/package/kisscomps/components/OverLap/OverLap.vue +15 -8
  6. package/package/kisscomps/components/PatternStatus/PatternStatus.vue +255 -87
  7. package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +23 -1
  8. package/package/kisscomps/components/Stages/index.vue +9 -5
  9. package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +672 -293
  10. package/package/kissui.min.js +1 -1
  11. package/package.json +1 -1
  12. package/src/kisscomps/components/CommonKanban/CommonKanban.vue +5 -4
  13. package/src/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +20 -9
  14. package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +20 -9
  15. package/src/kisscomps/components/KanBan/kanban.vue +1 -1
  16. package/src/kisscomps/components/OverLap/OverLap.vue +15 -8
  17. package/src/kisscomps/components/PatternStatus/PatternStatus.vue +255 -87
  18. package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +23 -1
  19. package/src/kisscomps/components/Stages/index.vue +9 -5
  20. package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +672 -293
  21. package/src/node_modules/.package_versions.json +1 -0
  22. package/src/utils/RingDataModel.js +18 -2
  23. package/src/views/intersection.vue +1 -1
  24. package/src/views/overView.vue +3 -3
  25. package/src/views/schemeconfig.vue +3 -3
  26. package/static/styles/schemeconfig.scss +136 -136
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "openatc-components",
3
- "version": "0.1.33",
3
+ "version": "0.1.34",
4
4
  "description": "A Vue.js project",
5
5
  "author": "openatc developer",
6
6
  "private": false,
@@ -44,11 +44,12 @@
44
44
  <!-- 关闭拖拽调整顺序 -->
45
45
  <div v-if="!Draggable" class="common-board-column-content">
46
46
  <div class="common-board-item" v-for="element in list" :key="element.id">
47
+ <!-- {{element}} -->
47
48
  <div class="common-contentcolumn phase">
48
49
  <el-tooltip class="item" effect="dark" placement="left">
49
50
  <div slot="content">{{element.name}}</div>
50
51
  <div class="common-phase-description">
51
- <patternwalksvg :sidewalkPhaseData="sidewalkPhaseData" :showWalk="element.peddirection" Width="38" Height="40"></patternwalksvg>
52
+ <!-- <patternwalksvg :sidewalkPhaseData="sidewalkPhaseData" :showWalk="element.peddirection" Width="38" Height="40"></patternwalksvg> -->
52
53
  <xdrdirselector Width="40px"
53
54
  Height="40px"
54
55
  :showlist="element.desc"
@@ -69,14 +70,14 @@
69
70
  import xdrdirselector from '../XRDDirSelector/XRDDirSelector'
70
71
  import draggable from 'vuedraggable'
71
72
  // import PatternWalkSvg from '../IntersectionMap/crossDirection/baseImg/PatternWalkSvg'
72
- import patternwalksvg from '../PatternWalkSvg/PatternWalkSvg'
73
+ // import patternwalksvg from '../PatternWalkSvg/PatternWalkSvg'
73
74
 
74
75
  export default {
75
76
  name: 'common-kanban',
76
77
  components: {
77
78
  draggable,
78
- xdrdirselector,
79
- patternwalksvg
79
+ xdrdirselector
80
+ // patternwalksvg
80
81
  },
81
82
  props: {
82
83
  headerText: {
@@ -14,11 +14,11 @@
14
14
  <div class="phase-box" v-for="(item, index) in overlaplList" :key="index">
15
15
  <div class="single-phase" @click="selectPhase(index, item)" :class="preselectPhase == item.id ? 'single-phase-select' : ''">
16
16
  <div class="ped-icon">
17
- <PatternWalkSvg v-if="item.peddirection && item.peddirection.length" :showWalk="getshowped(item.peddirection)" Width="42" Height="44" />
17
+ <!-- <PatternWalkSvg v-if="item.peddirection && item.peddirection.length" :showWalk="getshowped(item.peddirection)" Width="42" Height="44" /> -->
18
18
  </div>
19
19
 
20
20
  <div class="phase-icon" v-if="item.direction">
21
- <xdr-dir-selector Width="44px" Height="44px" :showlist="getShowlist(item.direction)" :roadDirection="roadDirection"></xdr-dir-selector>
21
+ <xdr-dir-selector Width="44px" Height="44px" :showlist="getShowlist(item)" :roadDirection="roadDirection"></xdr-dir-selector>
22
22
  </div>
23
23
  </div>
24
24
  <div class="single-phase-name">{{$t('openatccomponents.channelizationmap.phase') + item.id}}</div>
@@ -103,13 +103,24 @@ export default {
103
103
  })
104
104
  return phaseDireacitonArr
105
105
  },
106
- getShowlist (direction) {
107
- return direction.map(dir => {
108
- return {
109
- id: dir,
110
- color: '#606266'
111
- }
112
- })
106
+ getShowlist (data) {
107
+ if (data.direction && data.direction.length > 0) {
108
+ return data.direction.map(dir => {
109
+ return {
110
+ id: dir,
111
+ peddirection: this.getshowped(data.peddirection),
112
+ color: '#606266'
113
+ }
114
+ })
115
+ } else {
116
+ return [
117
+ {
118
+ id: '',
119
+ peddirection: this.getshowped(data.peddirection),
120
+ color: '#606266'
121
+ }
122
+ ]
123
+ }
113
124
  },
114
125
  getshowped (peddirection) {
115
126
  let peddirarr = peddirection.map(peddir => ({
@@ -14,11 +14,11 @@
14
14
  <div class="phase-box" v-for="(item, index) in phaseList" :key="index">
15
15
  <div class="single-phase" @click="selectPhase(index, item)" :class="preselectPhase == item.id ? 'single-phase-select' : ''">
16
16
  <div class="ped-icon">
17
- <PatternWalkSvg v-if="item.peddirection && item.peddirection.length" :showWalk="getshowped(item.peddirection)" Width="42" Height="44" />
17
+ <!-- <PatternWalkSvg v-if="item.peddirection && item.peddirection.length" :showWalk="getshowped(item.peddirection)" Width="42" Height="44" /> -->
18
18
  </div>
19
19
 
20
20
  <div class="phase-icon" v-if="item.direction">
21
- <xdr-dir-selector Width="44px" Height="44px" :showlist="getShowlist(item.direction)" :roadDirection="roadDirection"></xdr-dir-selector>
21
+ <xdr-dir-selector Width="44px" Height="44px" :showlist="getShowlist(item)" :roadDirection="roadDirection"></xdr-dir-selector>
22
22
  </div>
23
23
  </div>
24
24
  <div class="single-phase-name">{{$t('openatccomponents.channelizationmap.phase') + item.id}}</div>
@@ -103,13 +103,24 @@ export default {
103
103
  })
104
104
  return phaseDireacitonArr
105
105
  },
106
- getShowlist (direction) {
107
- return direction.map(dir => {
108
- return {
109
- id: dir,
110
- color: '#606266'
111
- }
112
- })
106
+ getShowlist (data) {
107
+ if (data.direction && data.direction.length > 0) {
108
+ return data.direction.map(dir => {
109
+ return {
110
+ id: dir,
111
+ peddirection: this.getshowped(data.peddirection),
112
+ color: '#606266'
113
+ }
114
+ })
115
+ } else {
116
+ return [
117
+ {
118
+ id: '',
119
+ peddirection: this.getshowped(data.peddirection),
120
+ color: '#606266'
121
+ }
122
+ ]
123
+ }
113
124
  },
114
125
  getshowped (peddirection) {
115
126
  let peddirarr = peddirection.map(peddir => ({
@@ -28,7 +28,7 @@
28
28
  </el-tooltip>
29
29
  </el-col>
30
30
  <el-col :span="9">
31
- <el-input-number :controls="false" class="col-content" size="small" :min="element.minSplit" :max="255" :step="1" v-model.number="element.value" ref="type" :disabled="element.mode === 7"></el-input-number>
31
+ <el-input-number :controls="false" class="col-content" size="small" :min="element.minSplit" :max="255" :step="1" v-model.number="element.value" ref="type"></el-input-number>
32
32
  </el-col>
33
33
  <el-col :span="9">
34
34
  <el-select v-model="element.mode" class="col-content" size="small" @change="doChange(element)" :placeholder="$t('openatccomponents.common.select')">
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <div class="overLap" v-if="checked" :style="{'margin':this.controlData ? '20px 0 0 0' :tentative ? '0' : '0 40px 0 417px'}">
2
+ <div class="overLap" v-if="checked" :style="{'margin':this.controlData ? '20px 0 0 0' :tentative ? '0' : '0 87px 0 468px'}">
3
3
  <div class="ring-first" v-for="(list, index1) in this.overlapDatas" :key="index1">
4
4
  <div v-for="(item,index2) in list.stageLists" :key="index2" >
5
5
  <!-- {{list.peddirection}} -->
@@ -13,7 +13,7 @@
13
13
  </div>
14
14
  <div style="cursor:pointer;">
15
15
  <div class="ring-phase">
16
- <patternwalksvg :showWalk="list.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg>
16
+ <!-- <patternwalksvg :showWalk="list.peddirection" :Width="'32'" :Height="'34'"></patternwalksvg> -->
17
17
  <xdrdirselector Width="36px" Height="34px" :showlist="item.direction"></xdrdirselector>
18
18
  </div>
19
19
  <div class="box">
@@ -38,11 +38,11 @@
38
38
  import PhaseDataModel from '../IntersectionMap/crossDirection/utils.js'
39
39
  import CrossDiagramMgr from '../../../EdgeMgr/controller/crossDiagramMgr.js'
40
40
  import xdrdirselector from '../XRDDirSelector/XRDDirSelector'
41
- import patternwalksvg from '../PatternWalkSvg/PatternWalkSvg'
41
+ // import patternwalksvg from '../PatternWalkSvg/PatternWalkSvg'
42
42
  export default {
43
43
  name: 'over-lap',
44
44
  components: {
45
- patternwalksvg,
45
+ // patternwalksvg,
46
46
  xdrdirselector
47
47
  },
48
48
  data () {
@@ -98,13 +98,19 @@ export default {
98
98
  methods: {
99
99
  getRoad (i) {
100
100
  let direction = []
101
- if (i) {
102
- i.map(item => {
101
+ if (i.direction && i.direction.length > 0) {
102
+ i.direction.map(item => {
103
103
  direction.push({
104
104
  id: item,
105
+ peddirection: this.getPedPhasePos(i.peddirection),
105
106
  color: '#454545'
106
107
  })
107
108
  })
109
+ } else {
110
+ direction.push({
111
+ id: '',
112
+ peddirection: this.getPedPhasePos(i.peddirection)
113
+ })
108
114
  }
109
115
  return direction
110
116
  },
@@ -142,8 +148,8 @@ export default {
142
148
  const find = findIndexs.includes(sta.key)
143
149
  return {
144
150
  ...sta,
145
- direction: this.getRoad(item.direction),
146
- peddirection: this.getPedPhasePos(item.peddirection),
151
+ direction: this.getRoad(item),
152
+ // peddirection: this.getPedPhasePos(item.peddirection),
147
153
  greenWidth: find ? (sta.split / this.cycle * 100).toFixed(3) + '%' : '0%',
148
154
  redWidth: !find ? (sta.split / this.cycle * 100).toFixed(3) + '%' : '0%'
149
155
  }
@@ -188,6 +194,7 @@ export default {
188
194
  float: left;
189
195
  // margin-left: 5px;
190
196
  height: 34px;
197
+ width: 36px;
191
198
  z-index: 999;
192
199
  background: rgba(30, 96, 12, 0.07);
193
200
  // margin-top:1px;