openatc-components 0.1.127 → 0.1.129
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/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +1 -1
- package/package/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +1 -1
- package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +48 -11
- package/package/kissui.min.js +1 -1
- package/package.json +1 -1
- package/src/api/control.js +4 -0
- package/src/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue +1 -1
- package/src/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue +1 -1
- package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +48 -11
- package/static/apiconfig.json +5 -0
package/package/kisscomps/components/DrawChannelization/drawsvg/overlapAssociatedComponent.vue
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
20
|
<div class="phase-icon" v-if="item.direction">
|
|
21
|
-
<xdr-dir-selector Width="
|
|
21
|
+
<xdr-dir-selector Width="60px" Height="60px" Widths="50px" Heights="50px" :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>
|
package/package/kisscomps/components/DrawChannelization/drawsvg/phaseAssociatedComponent.vue
CHANGED
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
</div>
|
|
19
19
|
|
|
20
20
|
<div class="phase-icon" v-if="item.direction">
|
|
21
|
-
<xdr-dir-selector Width="
|
|
21
|
+
<xdr-dir-selector Width="50px" Height="50px" Widths="60px" Heights="60px" :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>
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
<div style="margin-top:20px" class="model-label-title">{{currentName}}{{$t('openatccomponents.overview.currentphase')}}:</div>
|
|
60
60
|
<div class="control-model" v-for="(item, index) in sidewalkPhaseData" :key="index">
|
|
61
61
|
<div style="position:relative;" class="single-model">
|
|
62
|
-
<xdr-dir-selector Width="
|
|
62
|
+
<xdr-dir-selector Width="50PX" Height="50PX" Widths="50PX" Heights="50PX" :Data="showStyle" :showlist="item"></xdr-dir-selector>
|
|
63
63
|
<div style="height:65px;display:flex;flex-direction:row;justify-content:center;align-items:end;">
|
|
64
64
|
<div class="current-stage-num" style="width:20%;">{{index + 1}}</div>
|
|
65
65
|
<div style="width:70%;">
|
|
@@ -102,7 +102,7 @@
|
|
|
102
102
|
<script>
|
|
103
103
|
import { getPhase } from './utils'
|
|
104
104
|
import { getIframdevid } from '../../../../utils/auth'
|
|
105
|
-
import { getlockPhase, lockPhase } from '../../../../api/control'
|
|
105
|
+
import { getlockPhase, lockPhase, getAllDerection } from '../../../../api/control'
|
|
106
106
|
import Stages from '../../Stages/index'
|
|
107
107
|
import RingDataModel from '../../../../utils/RingDataModel.js'
|
|
108
108
|
import { getMessageByCode } from '../../../../utils/responseMessage'
|
|
@@ -142,7 +142,9 @@ export default {
|
|
|
142
142
|
obj.name = this.$t(obj.name)
|
|
143
143
|
arrays.push(obj)
|
|
144
144
|
})
|
|
145
|
-
|
|
145
|
+
let arr1Ids = this.allDirection.map(item => item.id)
|
|
146
|
+
const result = arrays.filter(item => arr1Ids.includes(item.id))
|
|
147
|
+
return result
|
|
146
148
|
}
|
|
147
149
|
},
|
|
148
150
|
data () {
|
|
@@ -154,6 +156,7 @@ export default {
|
|
|
154
156
|
sidewalkPhaseData: [],
|
|
155
157
|
currentName: '',
|
|
156
158
|
lockList: [],
|
|
159
|
+
allDirection: [],
|
|
157
160
|
patternCycleEqual: true,
|
|
158
161
|
spanIndex: [],
|
|
159
162
|
directions: [],
|
|
@@ -167,25 +170,59 @@ export default {
|
|
|
167
170
|
}
|
|
168
171
|
},
|
|
169
172
|
created () {
|
|
173
|
+
this.getAllDerection()
|
|
170
174
|
},
|
|
171
175
|
methods: {
|
|
172
176
|
checkId (val) {
|
|
173
177
|
if (val.id === 1) {
|
|
174
|
-
return 2
|
|
175
|
-
} else if (val.id === 5) {
|
|
176
178
|
return 1
|
|
179
|
+
} else if (val.id === 5) {
|
|
180
|
+
return 2
|
|
177
181
|
} else if (val.id === 13) {
|
|
178
|
-
return 4
|
|
179
|
-
} else if (val.id === 9) {
|
|
180
182
|
return 3
|
|
183
|
+
} else if (val.id === 9) {
|
|
184
|
+
return 4
|
|
181
185
|
} else if (val.id === 17) {
|
|
182
|
-
return
|
|
186
|
+
return 6
|
|
183
187
|
} else if (val.id === 21) {
|
|
184
|
-
return 5
|
|
185
|
-
} else if (val.id === 25) {
|
|
186
188
|
return 7
|
|
189
|
+
} else if (val.id === 25) {
|
|
190
|
+
return 5
|
|
187
191
|
} else if (val.id === 29) {
|
|
188
|
-
return
|
|
192
|
+
return 8
|
|
193
|
+
}
|
|
194
|
+
},
|
|
195
|
+
getAllDerection () {
|
|
196
|
+
let iframdevid = getIframdevid()
|
|
197
|
+
getAllDerection(iframdevid).then((res) => {
|
|
198
|
+
if (res.data.success !== true) {
|
|
199
|
+
this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
200
|
+
return
|
|
201
|
+
}
|
|
202
|
+
this.allDirection = res.data.data.map(item => {
|
|
203
|
+
return {
|
|
204
|
+
id: this.checkDirection(item.direction)
|
|
205
|
+
}
|
|
206
|
+
})
|
|
207
|
+
})
|
|
208
|
+
},
|
|
209
|
+
checkDirection (id) {
|
|
210
|
+
if (id === 1) {
|
|
211
|
+
return 1
|
|
212
|
+
} else if (id === 2) {
|
|
213
|
+
return 5
|
|
214
|
+
} else if (id === 3) {
|
|
215
|
+
return 13
|
|
216
|
+
} else if (id === 4) {
|
|
217
|
+
return 9
|
|
218
|
+
} else if (id === 5) {
|
|
219
|
+
return 25
|
|
220
|
+
} else if (id === 6) {
|
|
221
|
+
return 17
|
|
222
|
+
} else if (id === 7) {
|
|
223
|
+
return 21
|
|
224
|
+
} else if (id === 8) {
|
|
225
|
+
return 29
|
|
189
226
|
}
|
|
190
227
|
},
|
|
191
228
|
getLockPhase (val) {
|