<template>
  <el-dialog :title="$t1('导出发布')" :visible.sync="showDialog" v-if="showDialog"
             :modal-append-to-body="false" @close="closeDialog"
             custom-class="dialog-style wf-dialog" v-el-drag-dialog>
    <el-form>
      <div id="containt">
        <table class="table-detail">
          <tbody>
          <tr>
            <th>
                <span class="t">
                  <em class="f-red">*</em>
                  {{ $t1('导出类型') }}
                </span>
            </th>
            <td>
              <el-form-item field="modelId" label-width="120">
                <el-radio-group v-model="abc">
                  <el-radio label="A">公开</el-radio>
                  <el-radio label="B">私密</el-radio>
                </el-radio-group>
              </el-form-item>
            </td>
          </tr>
          </tbody>
        </table>
      </div>
    </el-form>
    <span slot="footer" class="dialog-footer">
      <el-button type="primary" plain class="button-sty" @click="closeDialog">
        <i class="el-icon-close el-icon"></i>
        {{ $t2('取 消', 'system.button.cancel2') }}
      </el-button>
      <el-button type="primary" @click="confirmDialog" class="button-sty">
        <i class="el-icon-check el-icon"></i>
        {{ $t2('确 定', 'system.button.confirm2') }}
      </el-button>
    </span>
  </el-dialog>
</template>

<script>

export default {
  props: ['param'],
  data() {
    return {
      abc: 'B',
      showDialog: true
    }
  },
  methods: {
    closeDialog() {
      this.$emit("update:visiable", false);
      this.showDialog = false;
    },
    confirmDialog() {
      this.param.confirm(this.abc)
      this.closeDialog();
    },
  }
};
</script>
