<template>
  <el-dialog
    :title="title"
    :append-to-body="true"
    :modal-append-to-body="true"
    :close-on-click-modal="false"
    :visible.sync="showDialog"
    :modal="false"
    custom-class="dialog-style list-dialog dialog-uploadannex"
    width="1200px"
    @close="closeWin"
    :destroy-on-close="true"
    v-el-drag-dialog
    v-el-dialog-center
  >
    <div id="containt">
      <div class="detail-wrap" style="height: 450px;padding: 10px 10px;">
        <baseUpload v-if="showUpload" v-bind="option" :file.sync="checkRows" :edit="edit" multi="true"></baseUpload>
      </div>
    </div>
    <span slot="footer" class="dialog-footer">
			<el-button type="primary" plain class="button-sty" @click="closeWin">
				<i class="el-icon-close el-icon"></i>
				{{ $t2('取 消', 'system.button.cancel2') }}
			</el-button>
			<el-button type="primary" @click="confirmWin" class="button-sty">
				<i class="el-icon-check el-icon"></i>
				{{ $t2('确 定', 'system.button.confirm2') }}
			</el-button>
		</span>
  </el-dialog>
</template>

<script>
import {uploadDialogMixin} from './mixins'
import {selectDialogMixins} from '../../mixins/selectDialog/index.js';

export default {
  name: 'uploadDialog',
  mixins: [uploadDialogMixin, selectDialogMixins]
};
</script>
