<template>
  <div>
    <div class="panel-fieldset">
      <h4 class="panel-legend">网站群设置</h4>
      <el-form-item label="允许网站群分发：">
        <el-switch v-model="extend.allowSiteGroupDeploy" :disabled="disabled" active-value="Y" inactive-value="N"></el-switch>
      </el-form-item>
      <el-form-item label="允许网站群采集：">
        <el-switch v-model="extend.allowSiteGroupGather" :disabled="disabled" active-value="Y" inactive-value="N"></el-switch>
      </el-form-item>
      <el-form-item label="密钥：">
        <el-input v-model="extend.siteGroupPassword" class="form-item" :disabled="disabled"></el-input>
      </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 {
          allowSiteGroupDeploy: 'N', // 允许网站群分发
          allowSiteGroupGather: 'N', // 允许网站群采集
          siteGroupPassword: '' // 网站群采集密钥
        }
      }
    },
    disabled: {
      type: Boolean
    }
  }
}
</script>
