<template>
  <div>
    <div class="panel-fieldset">
      <h4 class="panel-legend">调查配置</h4>
      <el-form-item label="是否需要审核：">
        <el-switch v-model="extend.voteIsNeedAudit" :disabled="disabled" active-value="Y" inactive-value="N"></el-switch>
      </el-form-item>
      <el-form-item label="是否需要登录：">
        <el-switch v-model="extend.voteLoginFlag" :disabled="disabled" active-value="Y" inactive-value="N"></el-switch>
      </el-form-item>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {}
  },
  computed: {
    extend: {
      get() {
        return this.extends
      },
      set(val) {
        this.$emit('update:extends', val)
      }
    }
  },
  methods: {},
  created() {},
  props: {
    extends: {
      type: Object,
      default: function() {
        return {
          voteIsNeedAudit: 'N', // 是否需要审核
          voteLoginFlag: 'N' // 是否需要登录
        }
      }
    },
    disabled: {
      type: Boolean,
      default: false
    }
  }
}
</script>
