CompareData.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <script setup lang="ts">
  2. import { ref } from 'vue'
  3. // 筛选条件
  4. const value1 = ref([]) // 平台编号
  5. const value2 = ref([])
  6. const value3 = ref([])
  7. const value4 = ref([])
  8. const options = [
  9. {
  10. value: 'Option1',
  11. label: 'Option1',
  12. },
  13. {
  14. value: 'Option2',
  15. label: 'Option2',
  16. },
  17. ]
  18. </script>
  19. <template>
  20. <div class="flex gap-1.5 justify-between">
  21. <div class="flex gap-1.5">
  22. <el-select v-model="value1" multiple placeholder="平台编号" style="width: 160px">
  23. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
  24. </el-select>
  25. <el-select v-model="value2" multiple placeholder="平台名称" style="width: 160px">
  26. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
  27. </el-select>
  28. <el-select v-model="value3" multiple placeholder="运营" style="width: 160px">
  29. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
  30. </el-select>
  31. <el-select v-model="value4" multiple placeholder="国家" style="width: 160px">
  32. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
  33. </el-select>
  34. <el-select v-model="value4" multiple placeholder="品牌" style="width: 160px">
  35. <el-option v-for="item in options" :key="item.value" :label="item.label" :value="item.value" />
  36. </el-select>
  37. </div>
  38. </div>
  39. </template>
  40. <style scoped></style>