openatc-components 0.1.115 → 0.1.116

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.
@@ -10,15 +10,15 @@
10
10
  * See the Mulan PSL v2 for more details.
11
11
  **/
12
12
  <template>
13
- <div class="cross-phase-dir">
14
- <el-select v-model="phaseid" style="width: 100%" clearable :placeholder="$t('openatccomponents.common.select')" :no-data-text="$t('openatccomponents.common.nodata')"
13
+ <div class="cross-phase-dir cross-phase-dir-select">
14
+ <el-select v-model="phaseId" style="width: 100%" clearable :placeholder="$t('openatccomponents.common.select')" :no-data-text="$t('openatccomponents.common.nodata')"
15
15
  @change="handleSelect"
16
16
  >
17
17
  <el-option
18
18
  v-for="(option, index) in phaseOption"
19
19
  :key="index"
20
20
  :label="option.phasedesc"
21
- :value="option.phaseid"
21
+ :value="option.phaseId"
22
22
  >
23
23
  <span>{{ option.phasedesc }}</span>
24
24
  </el-option>
@@ -36,12 +36,15 @@ export default {
36
36
  props: {
37
37
  agentid: {
38
38
  type: String
39
+ },
40
+ phaseid: {
41
+ type: String
39
42
  }
40
43
  },
41
44
  data () {
42
45
  return {
43
46
  phaseOption: [],
44
- phaseid: ''
47
+ phaseId: ''
45
48
  }
46
49
  },
47
50
  mounted () {
@@ -71,11 +74,14 @@ export default {
71
74
  this.$t('openatccomponents.overview.phase') +
72
75
  ele.id + '-' +
73
76
  this.getPhaseName(ele.direction).name,
74
- phaseid: ele.id
77
+ phaseId: ele.id
75
78
  }
76
79
  })
77
80
  console.log(options)
78
81
  this.phaseOption = options
82
+ if (this.phaseid !== undefined) {
83
+ this.phaseId = this.phaseid
84
+ }
79
85
  })
80
86
  },
81
87
  getName (status) {
@@ -108,7 +114,7 @@ export default {
108
114
  return this.getName(status)
109
115
  },
110
116
  handleSelect (val) {
111
- let phaseinfo = this.phaseOption.filter(ele => ele.phaseid === val)[0]
117
+ let phaseinfo = this.phaseOption.filter(ele => ele.phaseId === val)[0]
112
118
  this.$emit('getSelectPhaseId', val)
113
119
  this.$emit('getSelectPhaseInfo', phaseinfo)
114
120
  }
@@ -10,7 +10,7 @@
10
10
  * See the Mulan PSL v2 for more details.
11
11
  **/
12
12
  <template>
13
- <div class="cross-phase-dir">
13
+ <div class="cross-phase-dir cross-phase-dir-text">
14
14
  <div v-for="phase in phaselist" :key="phase.id">
15
15
  {{$t('openatccomponents.overview.phase')}}{{phase.id}} - {{phase.dirname}}
16
16
  </div>