<template>
  <div class="panel-fieldset">
    <h4 class="panel-legend">网站群设置</h4>
    <el-form-item label="允许网站群分发">
      <el-switch v-model="extendsData.allowSiteGroupDeploy" active-value="Y" inactive-value="N" :disabled="catalogId===0"></el-switch>
      <el-tooltip placement="right" effect="dark">
        <div slot="content">注意，站点扩展配置中设置为允许分发后，此设置才生效！</div>
        <span><i class="fa fa-lightbulb-o" style="color:#FFC125; margin-left:5px"></i></span>
      </el-tooltip>
    </el-form-item>
    <el-form-item label="允许网站群采集">
      <el-switch v-model="extendsData.allowSiteGroupGather" active-value="Y" inactive-value="N" :disabled="catalogId===0"></el-switch>
      <el-tooltip placement="right" effect="dark">
        <div slot="content">注意，站点扩展配置中设置为允许采集后，此设置才生效！</div>
        <span><i class="fa fa-lightbulb-o" style="color:#FFC125; margin-left:5px"></i></span>
      </el-tooltip>
    </el-form-item>
    <el-form-item label="密钥">
      <el-input v-model="extendsData.siteGroupPassword" :style="{width:'160px'}" :disabled="catalogId===0"></el-input>
    </el-form-item>
  </div>
</template>
<script>
export default {
  props: {
    extendsData: {
      type: Object,
      default: function() {
        return {
          pallowSiteGroupDeploy: 'Y', //  是否允许群发
          allowSiteGroupGather: 'N', //  是否允许采集
          siteGroupPassword: '' //  密钥
        }
      }
    },
    catalogId: [Number, String]
  }
}
</script>
