Merge branch 'pr799' into dev
This commit is contained in:
commit
9d45c5d68a
@ -27,9 +27,8 @@
|
|||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<select class="form-select" id="inputPinProfile"
|
<select class="form-select" id="inputPinProfile"
|
||||||
v-model="deviceConfigList.curPin.name">
|
v-model="deviceConfigList.curPin.name">
|
||||||
<option v-for="device in pinMappingList" :value="device.name"
|
<option v-for="device in pinMappingList" :value="device.name" :key="device.name">
|
||||||
:key="device.name">
|
{{ device.name === "Default" ? $t('deviceadmin.DefaultProfile') : device.name }}
|
||||||
{{ device.name }}
|
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -63,8 +62,8 @@
|
|||||||
</label>
|
</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<select class="form-select" v-model="deviceConfigList.display.rotation">
|
<select class="form-select" v-model="deviceConfigList.display.rotation">
|
||||||
<option v-for="rotation in displayRotationList" :key="rotation.key" :value="rotation.key">
|
<option v-for="(rotation, index) in displayRotationList" :key="index" :value="index">
|
||||||
{{ rotation.value }}
|
{{ $t(`deviceadmin.` + rotation) }}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -119,10 +118,10 @@ export default defineComponent({
|
|||||||
alertType: "info",
|
alertType: "info",
|
||||||
showAlert: false,
|
showAlert: false,
|
||||||
displayRotationList: [
|
displayRotationList: [
|
||||||
{ key: 0, value: this.$t('deviceadmin.rot0') },
|
'rot0',
|
||||||
{ key: 1, value: this.$t('deviceadmin.rot90') },
|
'rot90',
|
||||||
{ key: 2, value: this.$t('deviceadmin.rot180') },
|
'rot180',
|
||||||
{ key: 3, value: this.$t('deviceadmin.rot270') },
|
'rot270',
|
||||||
],
|
],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -144,10 +143,8 @@ export default defineComponent({
|
|||||||
this.pinMappingList = Array<Device>();
|
this.pinMappingList = Array<Device>();
|
||||||
})
|
})
|
||||||
.finally(() => {
|
.finally(() => {
|
||||||
this.pinMappingList.push({
|
|
||||||
"name": this.$t('deviceadmin.DefaultProfile')
|
|
||||||
} as Device);
|
|
||||||
this.pinMappingList.sort((a, b) => (a.name < b.name) ? -1 : 1);
|
this.pinMappingList.sort((a, b) => (a.name < b.name) ? -1 : 1);
|
||||||
|
this.pinMappingList.splice(0, 0, { "name": "Default" } as Device);
|
||||||
this.pinMappingLoading = false;
|
this.pinMappingLoading = false;
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|||||||
@ -23,8 +23,8 @@
|
|||||||
</label>
|
</label>
|
||||||
<div class="col-sm-10">
|
<div class="col-sm-10">
|
||||||
<select class="form-select" v-model="dtuConfigList.dtu_palevel">
|
<select class="form-select" v-model="dtuConfigList.dtu_palevel">
|
||||||
<option v-for="palevel in palevelList" :key="palevel.key" :value="palevel.key">
|
<option v-for="(palevel, index) in palevelList" :key="index" :value="index">
|
||||||
{{ palevel.value }}
|
{{ $t(`dtuadmin.` + palevel) }}
|
||||||
</option>
|
</option>
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
@ -58,10 +58,10 @@ export default defineComponent({
|
|||||||
dataLoading: true,
|
dataLoading: true,
|
||||||
dtuConfigList: {} as DtuConfig,
|
dtuConfigList: {} as DtuConfig,
|
||||||
palevelList: [
|
palevelList: [
|
||||||
{ key: 0, value: this.$t('dtuadmin.Min') },
|
'Min',
|
||||||
{ key: 1, value: this.$t('dtuadmin.Low') },
|
'Low',
|
||||||
{ key: 2, value: this.$t('dtuadmin.High') },
|
'High',
|
||||||
{ key: 3, value: this.$t('dtuadmin.Max') },
|
'Max',
|
||||||
],
|
],
|
||||||
alertMessage: "",
|
alertMessage: "",
|
||||||
alertType: "info",
|
alertType: "info",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user