<template>
  <el-form label-width="160px" style="margin-top:180px;">
          <el-form-item label="留言板：">
            <el-select filterable placeholder="" v-model="item" class="form-item">
              <el-option v-for="item in types" :key="item.key" :label="item.name" :value="item.code">
              </el-option>
            </el-select>
          </el-form-item>
        </el-form>
</template>
<script>
export default {
  data() {
    return {
      item: '',
      types: []
    }
  },
  methods: {
    getCode() {
      return `<cms:message code="${this.item}">{ZCMS:<z:lang id="Contentcore.Messageboard">留言板</z:lang>}</cms:message>`
    },
    async init() {
      let res = await axios.get('/ui/messageboard')
      this.types = res.data.status === 1 ? res.data.data : this.types
    }
  },
  async created() {
  }
}
</script>
