<template>
  <div class="panel-fieldset short-label">
    <h4 class="panel-legend">调查配置</h4>
    <el-form-item label="是否需要审核">
      <el-switch v-model="extendsData.voteIsNeedAudit" active-value="Y" inactive-value="N" :disabled="catalogId===0"></el-switch>
    </el-form-item>
    <el-form-item label="是否需要登录">
      <el-switch v-model="extendsData.voteLoginFlag" active-value="Y" inactive-value="N" :disabled="catalogId===0"></el-switch>
    </el-form-item>
  </div>
</template>
<script>
export default {
  props: {
    extendsData: {
      type: Object,
      default: function() {
        return {
          voteIsNeedAudit: 'N', //  调查配置是否需要审核
          voteLoginFlag: 'N' // 调查配置是否需要登录
        }
      }
    },
    catalogId: [Number, String]
  }
}
</script>
