mirror of
https://github.com/nasa/openmct.git
synced 2024-12-22 06:27:48 +00:00
wip: filtering select comparison
This commit is contained in:
parent
1b9b7e2345
commit
b4cf81a0ef
@ -20,7 +20,7 @@
|
|||||||
>
|
>
|
||||||
<select v-model="criterion.metadata">
|
<select v-model="criterion.metadata">
|
||||||
<option value="">- Select Field -</option>
|
<option value="">- Select Field -</option>
|
||||||
<option v-for="option in telemetryMetadata"
|
<option v-for="option in telemetryMetadataOptions"
|
||||||
:key="option.key"
|
:key="option.key"
|
||||||
:value="option.key"
|
:value="option.key"
|
||||||
>
|
>
|
||||||
@ -81,6 +81,7 @@ export default {
|
|||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
telemetryMetadata: {},
|
telemetryMetadata: {},
|
||||||
|
telemetryMetadataOptions: {},
|
||||||
operations: OPERATIONS,
|
operations: OPERATIONS,
|
||||||
isInputOperation: false,
|
isInputOperation: false,
|
||||||
rowLabel: ''
|
rowLabel: ''
|
||||||
@ -95,13 +96,16 @@ export default {
|
|||||||
mounted() {
|
mounted() {
|
||||||
this.updateMetadataOptions();
|
this.updateMetadataOptions();
|
||||||
this.updateOperationInputVisibility();
|
this.updateOperationInputVisibility();
|
||||||
console.log('this.criterion.telemetry', this.criterion.telemetry);
|
console.log('this.criterion.metadata', this.criterion.metadata);
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
updateMetadataOptions() {
|
updateMetadataOptions() {
|
||||||
if (this.criterion.telemetry) {
|
if (this.criterion.telemetry) {
|
||||||
this.openmct.objects.get(this.criterion.telemetry).then((telemetryObject) => {
|
this.openmct.objects.get(this.criterion.telemetry).then((telemetryObject) => {
|
||||||
this.telemetryMetadata = this.openmct.telemetry.getMetadata(telemetryObject).values();
|
this.telemetryMetadata = this.openmct.telemetry.getMetadata(telemetryObject);
|
||||||
|
this.telemetryMetadataOptions = this.openmct.telemetry.getMetadata(telemetryObject).values();
|
||||||
|
// console.log('this.openmct.telemetry.getFormatMap(telemetryObject)', this.openmct.telemetry.getFormatMap(this.openmct.telemetry.getMetadata(telemetryObject)));
|
||||||
|
console.log('this.telemetryMetadata', this.openmct.telemetry.getMetadata(telemetryObject));
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
this.persist();
|
this.persist();
|
||||||
|
Loading…
Reference in New Issue
Block a user