wip: filtering select comparison

This commit is contained in:
Joel McKinnon 2020-02-21 06:43:16 -08:00
parent 1b9b7e2345
commit b4cf81a0ef

View File

@ -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();