StationSelect.vue 807 Bytes
<template>
  <div class="station-select">
    <a-radio-group v-model="selectedStation" @change="handleChange" button-style="solid">
      <a-row :gutter="16">
        <a-col :span="8" v-for="station in stations" :key="station">
          <a-radio-button :value="station" style="margin-bottom: 10px; width: 100px">
            {{ station }}
          </a-radio-button>
        </a-col>
      </a-row>
    </a-radio-group>
  </div>
</template>

<script>
export default {
  name: 'StationSelect',
  data() {
    return {
      selectedStation: '',
      stations: ['纵切机台1', '纵切机台2', '纵切机台3']
    }
  },
  methods: {
    handleChange(e) {
      this.$emit('select', e.target.value)
    }
  }
}
</script>

<style scoped>
.station-select {
  padding: 20px;
  text-align: center;
}
</style>