openatc-components 0.2.36 → 0.2.37
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/DirectionListConfiguration/DirectionListConfiguration.vue +49 -49
- package/package/kisscomps/components/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +39 -8
- package/package/kisscomps/components/PatternStatus/PatternStatus.vue +5 -8
- package/package/kisscomps/components/SchemeConfig/SchemeConfig.vue +25 -178
- package/package/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +29 -72
- package/package/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +3 -14
- package/package/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +7 -17
- package/package/kisscomps/components/SchemeConfig/manualControlModal/index.vue +1 -1
- package/package/kisscomps/components/SchemeConfig/priorityControl/index.vue +9 -18
- package/package/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -1
- package/package/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +36 -38
- package/package/kisscomps/components/Stages/index.vue +11 -52
- package/package/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +29 -30
- package/package/kisscomps/components/patternConfig/pattern/patternTable.vue +73 -13
- package/package/kisscomps/components/patternConfig/planContent.vue +3 -0
- package/package/kissui.min.js +1 -1
- package/package.json +2 -2
- package/src/i18n/language/en.js +2 -6
- package/src/i18n/language/zh.js +3 -7
- package/src/kisscomps/components/DirectionListConfiguration/DirectionListConfiguration.vue +49 -49
- package/src/kisscomps/components/IntersectionDirectionSelection/IntersectionDirectionSelection.vue +39 -8
- package/src/kisscomps/components/PatternStatus/PatternStatus.vue +5 -8
- package/src/kisscomps/components/SchemeConfig/SchemeConfig.vue +25 -178
- package/src/kisscomps/components/SchemeConfig/azimuthlocking/index.vue +29 -72
- package/src/kisscomps/components/SchemeConfig/closePhaselControlModal/index.vue +3 -14
- package/src/kisscomps/components/SchemeConfig/lockingPhaselControlModal/index.vue +7 -17
- package/src/kisscomps/components/SchemeConfig/manualControlModal/index.vue +1 -1
- package/src/kisscomps/components/SchemeConfig/priorityControl/index.vue +9 -18
- package/src/kisscomps/components/SchemeConfig/realtimeStatusModal/index.vue +1 -1
- package/src/kisscomps/components/SchemeConfig/tentativeplancontrolmodal/index.vue +36 -38
- package/src/kisscomps/components/Stages/index.vue +11 -52
- package/src/kisscomps/components/XRDDirSelector/XRDDirSelector.vue +29 -30
- package/src/kisscomps/components/patternConfig/pattern/patternTable.vue +73 -13
- package/src/kisscomps/components/patternConfig/planContent.vue +3 -0
- package/src/views/intersection.vue +11 -5
- package/src/views/patternConfig.vue +7 -970
- package/src/views/schemeconfig.vue +50 -19
- package/static/styles/schemeconfig.scss +58 -70
- package/static/styles/stages.scss +8 -1
- package/src/icons/svg/fangxiangsuoding.svg +0 -1
- package/src/icons/svg/jieduansuoding.svg +0 -1
- package/src/icons/svg/xiangweisuoding.svg +0 -1
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/controlModelGroup.vue +0 -128
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/icon.vue +0 -426
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/index.vue +0 -820
- package/src/kisscomps/components/SchemeConfig/manualControlModalNew/othersIcon.vue +0 -194
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="tentativeplan-control">
|
|
3
|
-
|
|
3
|
+
<div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.azimuthlocking')}}</div>
|
|
4
4
|
<el-row>
|
|
5
5
|
<el-col :span="12">
|
|
6
6
|
<el-form
|
|
@@ -11,17 +11,17 @@
|
|
|
11
11
|
<el-form-item
|
|
12
12
|
:label="$t('openatccomponents.overview.duration') + ':'"
|
|
13
13
|
prop="count">
|
|
14
|
-
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.duration" size="
|
|
14
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.duration" size="mini"></el-input-number>
|
|
15
15
|
</el-form-item>
|
|
16
16
|
<el-form-item
|
|
17
17
|
:label="$t('openatccomponents.overview.yellowflash') + ':'"
|
|
18
18
|
prop="intersection">
|
|
19
|
-
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.yellowflash" size="
|
|
19
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.yellowflash" size="mini"></el-input-number>
|
|
20
20
|
</el-form-item>
|
|
21
21
|
<el-form-item
|
|
22
22
|
:label="$t('openatccomponents.overview.mingreen') + ':'"
|
|
23
23
|
prop="intersection">
|
|
24
|
-
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.mingreen" size="
|
|
24
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.mingreen" size="mini"></el-input-number>
|
|
25
25
|
</el-form-item>
|
|
26
26
|
</el-form>
|
|
27
27
|
</el-col>
|
|
@@ -34,12 +34,12 @@
|
|
|
34
34
|
<el-form-item
|
|
35
35
|
:label="$t('openatccomponents.overview.greenclear') + ':'"
|
|
36
36
|
prop="count">
|
|
37
|
-
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.greenclear" size="
|
|
37
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.greenclear" size="mini"></el-input-number>
|
|
38
38
|
</el-form-item>
|
|
39
39
|
<el-form-item
|
|
40
40
|
:label="$t('openatccomponents.overview.allred') + ':'"
|
|
41
41
|
prop="intersection">
|
|
42
|
-
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.allred" size="
|
|
42
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.allred" size="mini"></el-input-number>
|
|
43
43
|
</el-form-item>
|
|
44
44
|
</el-form>
|
|
45
45
|
</el-col>
|
|
@@ -50,27 +50,27 @@
|
|
|
50
50
|
</el-col>
|
|
51
51
|
<el-col :span="19">
|
|
52
52
|
<div class="control-model" v-for="(item, index) in imgs" :key="index">
|
|
53
|
-
<div :
|
|
54
|
-
<div v-if="item.class" :
|
|
55
|
-
<div class="single-model-name"
|
|
53
|
+
<div :class="{'single-model-select':spanIndex.indexOf(index)>-1}" class="single-model" @click="boxShow(index,item)">
|
|
54
|
+
<div v-if="item.class" :class="item.class" style="border:0px"></div>
|
|
55
|
+
<div class="single-model-name">{{item.name}}</div>
|
|
56
56
|
</div>
|
|
57
57
|
</div>
|
|
58
58
|
<div v-if="currentName !==''" style="width: 100%; height: auto;overflow: hidden;">
|
|
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
|
-
<div style="position:relative;" class="single-model"
|
|
62
|
-
<xdr-dir-selector Width="75PX" Height="75PX" Widths="65PX" Heights="65PX" :Data="showStyle" :Datas="showStyles" :showlist="
|
|
63
|
-
<div style="height:
|
|
64
|
-
<div class="current-stage-num"
|
|
61
|
+
<div style="position:relative;" class="single-model">
|
|
62
|
+
<xdr-dir-selector Width="75PX" Height="75PX" Widths="65PX" Heights="65PX" :Data="showStyle" :Datas="showStyles" :showlist="item"></xdr-dir-selector>
|
|
63
|
+
<div style="height:65px;display:flex;flex-direction:row;justify-content:center;align-items:end;">
|
|
64
|
+
<div class="current-stage-num" style="width:20%;">{{index + 1}}</div>
|
|
65
65
|
<div style="width:70%;">
|
|
66
|
-
<i class="iconfont icon-feijidongche"
|
|
67
|
-
<i class="iconfont icon-lukouzhilu"
|
|
68
|
-
<i class="iconfont icon-BRT"
|
|
66
|
+
<i class="iconfont icon-feijidongche" style="font-size:11PX;color:#606266;margin-left:10PX" v-if="item[item.length-1].controltype === 6"></i>
|
|
67
|
+
<i class="iconfont icon-lukouzhilu" style="font-size:16PX;color:#454545;margin-left:10PX" v-if="item[item.length-1].controltype === 1"></i>
|
|
68
|
+
<i class="iconfont icon-BRT" style="font-size:11PX;color:#454545;margin-left:10PX" v-if="item[item.length-1].controltype === 4"></i>
|
|
69
69
|
<div style="transform:scale(0.65);margin-left:10PX">
|
|
70
|
-
<i class="iconfont icon-xuxiangwei-xin"
|
|
70
|
+
<i class="iconfont icon-xuxiangwei-xin" style="font-size:5PX;color:#454545;" v-if="item[item.length-1].controltype === 99"></i>
|
|
71
71
|
</div>
|
|
72
|
-
<i class="iconfont icon-gongjiaoche"
|
|
73
|
-
<i class="iconfont icon-youguidianche"
|
|
72
|
+
<i class="iconfont icon-gongjiaoche" style="font-size:11PX;color:#606266;margin-left:10PX" v-if="item[item.length-1].controltype === 3"></i>
|
|
73
|
+
<i class="iconfont icon-youguidianche" style="font-size:11PX;color:#606266;margin-left:10PX" v-if="item[item.length-1].controltype === 5"></i>
|
|
74
74
|
</div>
|
|
75
75
|
</div>
|
|
76
76
|
</div>
|
|
@@ -90,12 +90,10 @@
|
|
|
90
90
|
</div> -->
|
|
91
91
|
<div class="footer" v-if="realtimeStatusModalvisible">
|
|
92
92
|
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
93
|
-
<el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
|
|
94
93
|
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.implement')}}</el-button>
|
|
95
94
|
</div>
|
|
96
95
|
<div class="footer" v-if="!realtimeStatusModalvisible">
|
|
97
96
|
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
98
|
-
<el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
|
|
99
97
|
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.comfirm')}}</el-button>
|
|
100
98
|
</div>
|
|
101
99
|
</div>
|
|
@@ -103,7 +101,7 @@
|
|
|
103
101
|
|
|
104
102
|
<script>
|
|
105
103
|
import { getPhase } from './utils'
|
|
106
|
-
import { getIframdevid
|
|
104
|
+
import { getIframdevid } from '../../../../utils/auth'
|
|
107
105
|
import { getlockPhase, lockPhase, getAllDerection } from '../../../../api/control'
|
|
108
106
|
import Stages from '../../Stages/index'
|
|
109
107
|
import RingDataModel from '../../../../utils/RingDataModel.js'
|
|
@@ -142,7 +140,6 @@ export default {
|
|
|
142
140
|
images.forEach(v => {
|
|
143
141
|
let obj = Object.assign({}, v)
|
|
144
142
|
obj.name = this.$t(obj.name)
|
|
145
|
-
obj.bgcolor = getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
146
143
|
arrays.push(obj)
|
|
147
144
|
})
|
|
148
145
|
let arr1Ids = this.allDirection.map(item => item.id)
|
|
@@ -173,9 +170,7 @@ export default {
|
|
|
173
170
|
mingreen: 15,
|
|
174
171
|
duration: 600,
|
|
175
172
|
yellowflash: 3
|
|
176
|
-
}
|
|
177
|
-
themeColor: getTheme() === 'light' ? '#606266' : '#fff',
|
|
178
|
-
themeColor2: getTheme() === 'light' ? '#454545' : '#fff'
|
|
173
|
+
}
|
|
179
174
|
}
|
|
180
175
|
},
|
|
181
176
|
created () {
|
|
@@ -248,12 +243,7 @@ export default {
|
|
|
248
243
|
}
|
|
249
244
|
this.lockList = res.data.data
|
|
250
245
|
let ringDataModel = new RingDataModel({}, res.data.data)
|
|
251
|
-
this.sidewalkPhaseData = ringDataModel.getlockData()
|
|
252
|
-
return ele.map(item => ({
|
|
253
|
-
...item,
|
|
254
|
-
bgcolor: getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
255
|
-
}))
|
|
256
|
-
})
|
|
246
|
+
this.sidewalkPhaseData = ringDataModel.getlockData()
|
|
257
247
|
})
|
|
258
248
|
},
|
|
259
249
|
boxShow (index, data) {
|
|
@@ -266,27 +256,6 @@ export default {
|
|
|
266
256
|
}
|
|
267
257
|
this.getLockPhase(data)
|
|
268
258
|
this.currentName = data.name
|
|
269
|
-
this.clickType(index)
|
|
270
|
-
},
|
|
271
|
-
resetToDefaultThemeColor (List) {
|
|
272
|
-
for (let i = 0; i < List.length; i++) {
|
|
273
|
-
if (List[i].clicked) {
|
|
274
|
-
delete List[i].clicked
|
|
275
|
-
}
|
|
276
|
-
List[i].bgcolor = getTheme() === 'light' ? '#edf6ff' : '#243d59'
|
|
277
|
-
}
|
|
278
|
-
},
|
|
279
|
-
highlightThemeColor (List, index) {
|
|
280
|
-
for (let i = 0; i < List.length; i++) {
|
|
281
|
-
if (i === index) {
|
|
282
|
-
List[i].clicked = true
|
|
283
|
-
List[i].bgcolor = getTheme() === 'light' ? '#c1e0ff' : '#0082ac'
|
|
284
|
-
}
|
|
285
|
-
}
|
|
286
|
-
},
|
|
287
|
-
clickType (value) {
|
|
288
|
-
this.resetToDefaultThemeColor(this.imgs)
|
|
289
|
-
this.highlightThemeColor(this.imgs, value)
|
|
290
259
|
},
|
|
291
260
|
handleClose () {
|
|
292
261
|
this.$emit('closePhaseBack')
|
|
@@ -325,25 +294,6 @@ export default {
|
|
|
325
294
|
// this.$message.error(getMessageByCode(res.data.code, this.$i18n.locale))
|
|
326
295
|
// }
|
|
327
296
|
})
|
|
328
|
-
},
|
|
329
|
-
toAutoControl () {
|
|
330
|
-
this.$emit('toAutoControl')
|
|
331
|
-
},
|
|
332
|
-
isHasPermission (path) {
|
|
333
|
-
let res = hasPermission(path)
|
|
334
|
-
return res
|
|
335
|
-
},
|
|
336
|
-
dirListSetTheme (list) {
|
|
337
|
-
let dirArr = []
|
|
338
|
-
let color = getTheme() === 'light' ? '#606266' : '#F1F3F4'
|
|
339
|
-
for (let rec of list) {
|
|
340
|
-
let recd = {
|
|
341
|
-
...rec,
|
|
342
|
-
color: color
|
|
343
|
-
}
|
|
344
|
-
dirArr.push(recd)
|
|
345
|
-
}
|
|
346
|
-
return dirArr
|
|
347
297
|
}
|
|
348
298
|
}
|
|
349
299
|
}
|
|
@@ -351,6 +301,13 @@ export default {
|
|
|
351
301
|
|
|
352
302
|
<style lang="scss" scoped>
|
|
353
303
|
.single-model-select {
|
|
304
|
+
margin-right: 10px;
|
|
305
|
+
text-align: center;
|
|
306
|
+
cursor:pointer;
|
|
307
|
+
width: 70px;
|
|
308
|
+
height: 65px;
|
|
354
309
|
background-color: #a2cfff;
|
|
310
|
+
border-radius: 6px;
|
|
311
|
+
// border: solid 1PX #409eff;
|
|
355
312
|
}
|
|
356
313
|
</style>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
**/
|
|
12
12
|
<template>
|
|
13
13
|
<div class="manual-control-modal closephase-control">
|
|
14
|
-
|
|
14
|
+
<div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.phaseclosecontrol')}}</div>
|
|
15
15
|
<el-row>
|
|
16
16
|
<el-col :span="24">
|
|
17
17
|
<el-form
|
|
@@ -22,12 +22,12 @@
|
|
|
22
22
|
<el-form-item
|
|
23
23
|
:label="$t('openatccomponents.overview.delay') + ':'"
|
|
24
24
|
prop="intersection">
|
|
25
|
-
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDelay" size="
|
|
25
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDelay" size="mini"></el-input-number>
|
|
26
26
|
</el-form-item>
|
|
27
27
|
<el-form-item
|
|
28
28
|
:label="$t('openatccomponents.overview.duration') + ':'"
|
|
29
29
|
prop="count">
|
|
30
|
-
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="
|
|
30
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="mini"></el-input-number>
|
|
31
31
|
</el-form-item>
|
|
32
32
|
</el-form>
|
|
33
33
|
</el-col>
|
|
@@ -62,20 +62,16 @@
|
|
|
62
62
|
</el-row>
|
|
63
63
|
<div class="footer" v-if="realtimeStatusModalvisible">
|
|
64
64
|
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
65
|
-
<el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
|
|
66
65
|
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.implement')}}</el-button>
|
|
67
66
|
</div>
|
|
68
67
|
<div class="footer" v-if="!realtimeStatusModalvisible">
|
|
69
68
|
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
70
|
-
<el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
|
|
71
69
|
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.comfirm')}}</el-button>
|
|
72
70
|
</div>
|
|
73
71
|
</div>
|
|
74
72
|
</template>
|
|
75
73
|
|
|
76
74
|
<script>
|
|
77
|
-
import { hasPermission } from '../../../../utils/auth'
|
|
78
|
-
|
|
79
75
|
export default {
|
|
80
76
|
name: 'closePhaselControl',
|
|
81
77
|
props: {
|
|
@@ -175,13 +171,6 @@ export default {
|
|
|
175
171
|
this.closePhaseRings[i].phases = sortedlist
|
|
176
172
|
}
|
|
177
173
|
}
|
|
178
|
-
},
|
|
179
|
-
toAutoControl () {
|
|
180
|
-
this.$emit('toAutoControl')
|
|
181
|
-
},
|
|
182
|
-
isHasPermission (path) {
|
|
183
|
-
let res = hasPermission(path)
|
|
184
|
-
return res
|
|
185
174
|
}
|
|
186
175
|
},
|
|
187
176
|
mounted () {
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
* See the Mulan PSL v2 for more details.
|
|
11
11
|
**/
|
|
12
12
|
<template>
|
|
13
|
-
<div class="
|
|
14
|
-
|
|
13
|
+
<div class="manual-control-modal lockingphase-control">
|
|
14
|
+
<div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.phaselocking')}}</div>
|
|
15
15
|
<el-row>
|
|
16
16
|
<el-col :span="24">
|
|
17
17
|
<el-form
|
|
@@ -23,27 +23,27 @@
|
|
|
23
23
|
<el-form-item
|
|
24
24
|
:label="$t('openatccomponents.phase.greenclear') + ':'"
|
|
25
25
|
prop="intersection">
|
|
26
|
-
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempGreenflash" size="
|
|
26
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempGreenflash" size="mini"></el-input-number>
|
|
27
27
|
</el-form-item>
|
|
28
28
|
<el-form-item
|
|
29
29
|
:label="$t('openatccomponents.overview.duration') + ':'"
|
|
30
30
|
prop="count">
|
|
31
|
-
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="
|
|
31
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempDuration" size="mini"></el-input-number>
|
|
32
32
|
</el-form-item>
|
|
33
33
|
<el-form-item
|
|
34
34
|
:label="$t('openatccomponents.overview.yellowflash') + ':'"
|
|
35
35
|
prop="intersection">
|
|
36
|
-
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempYellow" size="
|
|
36
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempYellow" size="mini"></el-input-number>
|
|
37
37
|
</el-form-item>
|
|
38
38
|
<el-form-item
|
|
39
39
|
:label="$t('openatccomponents.overview.allred') + ':'"
|
|
40
40
|
prop="intersection">
|
|
41
|
-
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempRedclear" size="
|
|
41
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempRedclear" size="mini"></el-input-number>
|
|
42
42
|
</el-form-item>
|
|
43
43
|
<el-form-item
|
|
44
44
|
:label="$t('openatccomponents.phase.mingreen') + ':'"
|
|
45
45
|
prop="count">
|
|
46
|
-
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempMingreen" size="
|
|
46
|
+
<el-input-number :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.tempMingreen" size="mini"></el-input-number>
|
|
47
47
|
</el-form-item>
|
|
48
48
|
</el-form>
|
|
49
49
|
</el-col>
|
|
@@ -78,7 +78,6 @@
|
|
|
78
78
|
</el-row>
|
|
79
79
|
<div class="footer">
|
|
80
80
|
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
81
|
-
<el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
|
|
82
81
|
<el-button type="primary" @click="handleLockPhase()">{{lockPhaseBtnName}}</el-button>
|
|
83
82
|
</div>
|
|
84
83
|
</div>
|
|
@@ -86,8 +85,6 @@
|
|
|
86
85
|
|
|
87
86
|
<script>
|
|
88
87
|
import RingDataModel from '../../../../utils/RingDataModel.js'
|
|
89
|
-
import { hasPermission } from '../../../../utils/auth'
|
|
90
|
-
|
|
91
88
|
export default {
|
|
92
89
|
name: 'LockPhaselControl',
|
|
93
90
|
props: {
|
|
@@ -185,13 +182,6 @@ export default {
|
|
|
185
182
|
this.closePhaseRings[i].phases = sortedlist
|
|
186
183
|
}
|
|
187
184
|
}
|
|
188
|
-
},
|
|
189
|
-
toAutoControl () {
|
|
190
|
-
this.$emit('toAutoControl')
|
|
191
|
-
},
|
|
192
|
-
isHasPermission (path) {
|
|
193
|
-
let res = hasPermission(path)
|
|
194
|
-
return res
|
|
195
185
|
}
|
|
196
186
|
}
|
|
197
187
|
}
|
|
@@ -60,7 +60,7 @@
|
|
|
60
60
|
</div>
|
|
61
61
|
<div class="stage-label">{{$t('openatccomponents.overview.stage')}}:</div>
|
|
62
62
|
<div style="width: 100%; height: auto;overflow: hidden;" v-if="isHasPermission('configer:manual:dwell')">
|
|
63
|
-
<Stages :crossStatusData="
|
|
63
|
+
<Stages :crossStatusData="crossStatusData"
|
|
64
64
|
:phaseList="phaseList"
|
|
65
65
|
:preselectStages="preselectStages"
|
|
66
66
|
:preselectModel="preselectModel"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="priority-control">
|
|
3
|
-
|
|
3
|
+
<div class="title" style="margin-bottom: 18px;">{{$t('openatccomponents.overview.prioritycontrol')}}</div>
|
|
4
4
|
<el-row>
|
|
5
5
|
<el-col :span="12">
|
|
6
6
|
<el-form
|
|
@@ -11,8 +11,8 @@
|
|
|
11
11
|
<el-form-item
|
|
12
12
|
:label="$t('openatccomponents.overview.delay') + ':'"
|
|
13
13
|
prop="intersection">
|
|
14
|
-
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.delay" size="
|
|
15
|
-
<!-- <el-input v-model="manualInfo.tempDelay" size="
|
|
14
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.delay" size="mini"></el-input-number>
|
|
15
|
+
<!-- <el-input v-model="manualInfo.tempDelay" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
16
16
|
</el-form-item>
|
|
17
17
|
<el-form-item
|
|
18
18
|
:label="$t('openatccomponents.overview.priorityType') + ':'"
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
:value="item.value">
|
|
26
26
|
</el-option>
|
|
27
27
|
</el-select>
|
|
28
|
-
<!-- <el-input v-model="manualInfo.tempDuration" size="
|
|
28
|
+
<!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
29
29
|
</el-form-item>
|
|
30
30
|
</el-form>
|
|
31
31
|
</el-col>
|
|
@@ -38,8 +38,8 @@
|
|
|
38
38
|
<el-form-item
|
|
39
39
|
:label="$t('openatccomponents.overview.duration') + ':'"
|
|
40
40
|
prop="intersection">
|
|
41
|
-
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.duration" size="
|
|
42
|
-
<!-- <el-input v-model="manualInfo.duration" size="
|
|
41
|
+
<el-input-number :placeholder="$t('openatccomponents.common.input')" :min="0" :max="65535" :precision="0" :step="1" :controls="false" v-model.number="manualInfo.duration" size="mini"></el-input-number>
|
|
42
|
+
<!-- <el-input v-model="manualInfo.duration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
43
43
|
</el-form-item>
|
|
44
44
|
<el-form-item
|
|
45
45
|
:label="$t('openatccomponents.overview.priorityPhase') + ':'"
|
|
@@ -56,7 +56,7 @@
|
|
|
56
56
|
</div>
|
|
57
57
|
</el-option>
|
|
58
58
|
</el-select>
|
|
59
|
-
<!-- <el-input v-model="manualInfo.tempDuration" size="
|
|
59
|
+
<!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
60
60
|
</el-form-item>
|
|
61
61
|
</el-form>
|
|
62
62
|
</el-col>
|
|
@@ -79,19 +79,17 @@
|
|
|
79
79
|
:value="item.value">
|
|
80
80
|
</el-option>
|
|
81
81
|
</el-select>
|
|
82
|
-
<!-- <el-input v-model="manualInfo.tempDuration" size="
|
|
82
|
+
<!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
83
83
|
</el-form-item>
|
|
84
84
|
</el-form>
|
|
85
85
|
</el-col>
|
|
86
86
|
</el-row>
|
|
87
87
|
<div class="footer" v-if="realtimeStatusModalvisible">
|
|
88
88
|
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
89
|
-
<el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
|
|
90
89
|
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.implement')}}</el-button>
|
|
91
90
|
</div>
|
|
92
91
|
<div class="footer" v-if="!realtimeStatusModalvisible">
|
|
93
92
|
<el-button @click="handleClose()">{{$t('openatccomponents.button.Back')}}</el-button>
|
|
94
|
-
<el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
|
|
95
93
|
<el-button type="primary" @click="handleManualControl()">{{$t('openatccomponents.overview.comfirm')}}</el-button>
|
|
96
94
|
</div>
|
|
97
95
|
</div>
|
|
@@ -99,7 +97,7 @@
|
|
|
99
97
|
|
|
100
98
|
<script>
|
|
101
99
|
import xdrdirselector from '../../XRDDirSelector/XRDDirSelector'
|
|
102
|
-
import { getTheme
|
|
100
|
+
import { getTheme } from '../../../../utils/auth'
|
|
103
101
|
import { getDirName } from './utils'
|
|
104
102
|
export default {
|
|
105
103
|
name: 'prioritycontrol',
|
|
@@ -189,13 +187,6 @@ export default {
|
|
|
189
187
|
level: this.manualInfo.level
|
|
190
188
|
}
|
|
191
189
|
this.$emit('closePhaseControl', submitdata)
|
|
192
|
-
},
|
|
193
|
-
toAutoControl () {
|
|
194
|
-
this.$emit('toAutoControl')
|
|
195
|
-
},
|
|
196
|
-
isHasPermission (path) {
|
|
197
|
-
let res = hasPermission(path)
|
|
198
|
-
return res
|
|
199
190
|
}
|
|
200
191
|
}
|
|
201
192
|
}
|
|
@@ -80,7 +80,7 @@
|
|
|
80
80
|
>{{$t('openatccomponents.overview.controlmode')}}</div>
|
|
81
81
|
<el-button
|
|
82
82
|
type="primary"
|
|
83
|
-
style="float: right; margin-right: 20px;margin-top:
|
|
83
|
+
style="float: right; margin-right: 20px;margin-top: 40px;font-size: 14px;"
|
|
84
84
|
size="mini"
|
|
85
85
|
v-if="isHasPermission('configer:manual') && isHasPermission('configer:manual:renew')"
|
|
86
86
|
@click="changeStatus"
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="tentativeplan-control">
|
|
3
|
-
|
|
3
|
+
<div class="title" style="margin-bottom: 18px">
|
|
4
4
|
{{ $t('openatccomponents.overview.tentativeplan') }}
|
|
5
|
-
</div>
|
|
5
|
+
</div>
|
|
6
6
|
<el-row>
|
|
7
7
|
<el-col :span="12">
|
|
8
8
|
<el-form
|
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
>
|
|
31
31
|
</el-option>
|
|
32
32
|
</el-select>
|
|
33
|
-
<!-- <el-input v-model="manualInfo.tempDuration" size="
|
|
33
|
+
<!-- <el-input v-model="manualInfo.tempDuration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
34
34
|
</el-form-item>
|
|
35
35
|
<el-form-item
|
|
36
36
|
:label="$t('openatccomponents.overview.delay') + ':'"
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
:step="1"
|
|
45
45
|
:controls="false"
|
|
46
46
|
v-model.number="manualInfo.tempDelay"
|
|
47
|
-
size="
|
|
47
|
+
size="mini"
|
|
48
48
|
></el-input-number>
|
|
49
|
-
<!-- <el-input v-model="manualInfo.tempDelay" size="
|
|
49
|
+
<!-- <el-input v-model="manualInfo.tempDelay" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
50
50
|
</el-form-item>
|
|
51
51
|
</el-form>
|
|
52
52
|
</el-col>
|
|
@@ -69,9 +69,9 @@
|
|
|
69
69
|
:step="1"
|
|
70
70
|
:controls="false"
|
|
71
71
|
v-model.number="manualInfo.offset"
|
|
72
|
-
size="
|
|
72
|
+
size="mini"
|
|
73
73
|
></el-input-number>
|
|
74
|
-
<!-- <el-input v-model="manualInfo.offset" size="
|
|
74
|
+
<!-- <el-input v-model="manualInfo.offset" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
75
75
|
</el-form-item>
|
|
76
76
|
<el-form-item
|
|
77
77
|
:label="$t('openatccomponents.overview.duration') + ':'"
|
|
@@ -85,20 +85,17 @@
|
|
|
85
85
|
:step="1"
|
|
86
86
|
:controls="false"
|
|
87
87
|
v-model.number="manualInfo.duration"
|
|
88
|
-
size="
|
|
88
|
+
size="mini"
|
|
89
89
|
></el-input-number>
|
|
90
|
-
<!-- <el-input v-model="manualInfo.duration" size="
|
|
90
|
+
<!-- <el-input v-model="manualInfo.duration" size="mini" :placeholder="$t('openatccomponents.common.input')"></el-input> -->
|
|
91
91
|
</el-form-item>
|
|
92
92
|
</el-form>
|
|
93
93
|
</el-col>
|
|
94
94
|
</el-row>
|
|
95
95
|
<el-row>
|
|
96
|
-
<el-radio
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
@change="changeRing"
|
|
100
|
-
>{{ $t('openatccomponents.common.ringStyle') }}</el-radio
|
|
101
|
-
>
|
|
96
|
+
<el-radio v-model="isRing" :label="false" @change="changeRing">{{
|
|
97
|
+
$t('openatccomponents.common.ringStyle')
|
|
98
|
+
}}</el-radio>
|
|
102
99
|
<el-radio v-model="isRing" :label="true" @change="changeStage">{{
|
|
103
100
|
$t('openatccomponents.common.stageStyle')
|
|
104
101
|
}}</el-radio>
|
|
@@ -130,11 +127,11 @@
|
|
|
130
127
|
</pattern-list>
|
|
131
128
|
</el-row>
|
|
132
129
|
<el-row>
|
|
133
|
-
<el-tabs v-model="
|
|
130
|
+
<el-tabs v-model="activeTab" type="card">
|
|
134
131
|
<el-tab-pane
|
|
135
132
|
v-if="!isRing"
|
|
136
133
|
:label="$t('openatccomponents.pattern.ringConfig')"
|
|
137
|
-
name="
|
|
134
|
+
name="kanban"
|
|
138
135
|
>
|
|
139
136
|
<div style="width: 100%; overflow: hidden; margin-top: 20px">
|
|
140
137
|
<kan-ban
|
|
@@ -280,14 +277,14 @@
|
|
|
280
277
|
<el-row :gutter="20">
|
|
281
278
|
<el-col :span="24">
|
|
282
279
|
<over-lap
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
280
|
+
:stageList="stagesList"
|
|
281
|
+
:overlap="overlap"
|
|
282
|
+
:checked="true"
|
|
283
|
+
:tentative="true"
|
|
284
|
+
:cycleChange="false"
|
|
285
|
+
:cycle="overLapCycle"
|
|
286
|
+
>
|
|
287
|
+
</over-lap>
|
|
291
288
|
</el-col>
|
|
292
289
|
</el-row>
|
|
293
290
|
</el-tab-pane>
|
|
@@ -321,7 +318,6 @@
|
|
|
321
318
|
<el-button @click="handleClose()">{{
|
|
322
319
|
$t('openatccomponents.button.Back')
|
|
323
320
|
}}</el-button>
|
|
324
|
-
<el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
|
|
325
321
|
<el-button type="primary" @click="handleManualControl()">{{
|
|
326
322
|
$t('openatccomponents.overview.implement')
|
|
327
323
|
}}</el-button>
|
|
@@ -330,7 +326,6 @@
|
|
|
330
326
|
<el-button @click="handleClose()">{{
|
|
331
327
|
$t('openatccomponents.button.Back')
|
|
332
328
|
}}</el-button>
|
|
333
|
-
<el-button type="primary" plain @click="toAutoControl()" v-if="isHasPermission('configer:manual:renew')">{{$t('openatccomponents.overview.recovery')}}</el-button>
|
|
334
329
|
<el-button type="primary" @click="handleManualControl()">{{
|
|
335
330
|
$t('openatccomponents.overview.comfirm')
|
|
336
331
|
}}</el-button>
|
|
@@ -339,8 +334,6 @@
|
|
|
339
334
|
</template>
|
|
340
335
|
|
|
341
336
|
<script>
|
|
342
|
-
import { hasPermission } from '../../../../utils/auth'
|
|
343
|
-
|
|
344
337
|
export default {
|
|
345
338
|
name: 'tentativeplancontrol',
|
|
346
339
|
props: {
|
|
@@ -364,7 +357,15 @@ export default {
|
|
|
364
357
|
type: Array
|
|
365
358
|
}
|
|
366
359
|
},
|
|
360
|
+
watch: {
|
|
361
|
+
isRing (newVal) {
|
|
362
|
+
this.activeTab = newVal ? 'ring' : 'kanban'
|
|
363
|
+
}
|
|
364
|
+
},
|
|
367
365
|
computed: {
|
|
366
|
+
computedActiveTab () {
|
|
367
|
+
return this.isRing ? 'ring' : 'kanban'
|
|
368
|
+
},
|
|
368
369
|
rings () {
|
|
369
370
|
return this.patternOne.length === 0 ? this.planPattern.rings : this.patternOne[0].rings
|
|
370
371
|
},
|
|
@@ -396,7 +397,8 @@ export default {
|
|
|
396
397
|
max: '',
|
|
397
398
|
contrloType: '',
|
|
398
399
|
patternCycleEqual: true,
|
|
399
|
-
activeList: 'ring',
|
|
400
|
+
// activeList: 'ring',
|
|
401
|
+
activeTab: 'kanban',
|
|
400
402
|
isRing: false,
|
|
401
403
|
// isChange: false,
|
|
402
404
|
ringCount: 1,
|
|
@@ -989,7 +991,7 @@ export default {
|
|
|
989
991
|
stage.map(item => {
|
|
990
992
|
for (let ring of rings) {
|
|
991
993
|
for (let ringItem of ring) {
|
|
992
|
-
if (item === ringItem.id && (ringItem.mode !== 7 && ringItem.mode !== 8
|
|
994
|
+
if (item === ringItem.id && (ringItem.mode !== 7 && ringItem.mode !== 8)) {
|
|
993
995
|
newStage.push(item)
|
|
994
996
|
}
|
|
995
997
|
}
|
|
@@ -1166,6 +1168,9 @@ export default {
|
|
|
1166
1168
|
} else {
|
|
1167
1169
|
submitdata.data.cycle = this.getMaxCycle(this.patternOne[0])
|
|
1168
1170
|
}
|
|
1171
|
+
this.patternOne[0].stagesList.forEach((stage) => {
|
|
1172
|
+
delete stage.split
|
|
1173
|
+
})
|
|
1169
1174
|
submitdata.data.stagesList = this.patternOne[0].stagesList
|
|
1170
1175
|
}
|
|
1171
1176
|
submitdata.data.offset = this.offset
|
|
@@ -1179,13 +1184,6 @@ export default {
|
|
|
1179
1184
|
if (this.patternCycleEqual) {
|
|
1180
1185
|
this.$emit('closePhaseControl', submitdata)
|
|
1181
1186
|
}
|
|
1182
|
-
},
|
|
1183
|
-
toAutoControl () {
|
|
1184
|
-
this.$emit('toAutoControl')
|
|
1185
|
-
},
|
|
1186
|
-
isHasPermission (path) {
|
|
1187
|
-
let res = hasPermission(path)
|
|
1188
|
-
return res
|
|
1189
1187
|
}
|
|
1190
1188
|
}
|
|
1191
1189
|
}
|