Skip to content
Snippets Groups Projects
Select Git revision
  • ff0b76cdf57c217d92952c4503eb4429c67995e2
  • master default
  • object
  • develop protected
  • private_algos
  • cuisine
  • SMOTE
  • revert-76c4cca5
  • archive protected
  • no_graphviz
  • 0.0.2
  • 0.0.1
12 results

ExecClassifMonoView.py

Blame
  • Filters.vue 918 B
    <template>
      <b-menu>
        <div>
          <b-menu-list v-for="category in tags" v-bind:key="category.name" :label="category.name">
            <div v-for="tag in category.tags" v-bind:key="tag" class="field">
              <b-checkbox
              :native-value="tag.name"
              v-model="checkboxGroup"
              @input="changeTag">{{tag.name}}</b-checkbox>
            </div>
          </b-menu-list>
        </div>
      </b-menu>
    </template>
    
    <script>
    export default {
      name: 'Filters',
      props: ['tags'],
      data () {
        return {
          checkboxGroup: [],
          perfValue: 0
        }
      },
      methods: {
        changeTag () {
          this.$emit('setTags', this.checkboxGroup, this.convertPerf())
        },
        convertPerf () {
          switch (this.perfValue) {
            case 0 : return 10
            case 1 : return 100
            case 2 : return 1000
            case 3 : return 10000
          }
        }
      }
    }
    </script>
    
    <style scoped>
    .menu {
      margin: 15px;
    }
    </style>