<template>
  <div>
    <!-- 我是测试数据 -->
    <el-select v-model="position" placeholder="请选择设备名称">
    <el-option
      v-for="item in options"
      :label="options.ming_cheng"
      :key="item.key"
      :value="item.ming_cheng">
    </el-option>
  </el-select>
  </div>
</template>

<script>
import curdPost from '@/business/platform/form/utils/custom/joinCURD.js'

export default {
  data(){
    return{
      position:'',
      options:[]
    }
  },
  created(){
   
  },
  mounted(){
    this.getData()
  },
  methods:{
    getData(){
      //罗湖设备登记     当前位置 cun_fang_di_dian_   位置去重
      //房间一览表 
      let sql = "select she_bei_ming_cheng_ AS ming_cheng FROM t_sbdj GROUP BY ming_cheng" 
      curdPost('sql',sql).then(res => {
        this.options = res.variables.data
        // console.log('设备名称',this.options)

      })
    }
  }
  

}
</script>

<style lang="scss" scoped>

</style>