<template>
  <div>
    <el-form>
      <el-form-item label="项目名">
        <el-select v-model="projectName">
          <el-option
            v-for="item in projectNameOption"
            :key="item.value"
            :label="item.name"
            :value="item.value">
          </el-option>
        </el-select>
      </el-form-item>
    </el-form>

    <component :is="projectName"></component>
  </div>
</template>

<script>
import dflz from './dflz/index.vue'
import tjzy from './tjzy/index.vue'
import lby from './lby/index.vue'

const projectNameOption = [
  {
    value: 'lby',
    name: '绿博园'
  },
  {
    value: 'tjzy',
    name: '天津之眼'
  },
  {
    value: 'dflz',
    name: '东方绿舟'
  }
]

export default {
  components: {
    tjzy,
    dflz,
    lby
  },
  data () {
    return {
      loading: false,
      projectName: 'lby',
      projectNameOption
    }
  }
}
</script>

<style lang="scss" scoped>

</style>
