<template>
  <el-form label-width="160px" style="margin-top:180px;">
    <el-form-item label="播放器名称：">
      <el-select filterable placeholder="" v-model="imagePlayer" class="form-item">
        <el-option v-for="item in imagePlayers" :key="item.ID" :label="item.name" :value="item.code">
      </el-option>
      </el-select>
    </el-form-item>
  </el-form>
</template>
<script>
export default {
  data() {
    return {
      imagePlayer: '',
      imagePlayers: []
    }
  },
  computed: {
  },
  async created() {
  },
  methods: {
    getCode() {
      return `<cms:imageplayer code="${this.imagePlayer}">{ZCMS:<z:lang id="Contentcore.ImagePlayer">图片播放器</z:lang>}</cms:imageplayer>`
    },
    async init() {
      let res = await axios.get('/ui/imageplayer/getimageplayers')
      if (res.data.status === 1) {
        this.imagePlayers = res.data.data
      }
    }
  }
}
</script>
