<template>
  <el-dialog
    class="data-task-dialog page-dialog"
    :visible.sync="modalIsShow"
    title="数据任务进度"
    top="10px"
    width="1100px"
    :close-on-click-modal="false"
    :close-on-press-escape="false"
    append-to-body
  >
    <data-task-manage
      v-if="modalIsShow"
      none-privilege
      :task-type="taskType"
    ></data-task-manage>
    <div slot="footer"></div>
  </el-dialog>
</template>

<script>
import DataTaskManage from "../../modules/exam/views/DataTaskManage.vue";

export default {
  name: "data-task-dialog",
  components: {
    DataTaskManage,
  },
  props: {
    taskType: {
      type: String,
      default: "",
    },
  },
  data() {
    return { modalIsShow: false };
  },
  methods: {
    cancel() {
      this.modalIsShow = false;
    },
    open() {
      this.modalIsShow = true;
    },
  },
};
</script>
