<template lang="html">
   <el-dialog :visible.sync="dialogVisible" center
   :close-on-click-modal="false"
   :modal-append-to-body="false"
   :append-to-body="true"
  :show-close="false">
      <div class="result">
          <div>
              <p class="red">考试已经结束</p>
              <p>本次分数：{{info.score}}: 成绩({{info.score>=60?'合格':'不合格'}})</p>
              <div class="leave">
              <el-button type="primary"  @click="leavePage">确认</el-button>
              </div>
          </div>
      </div>
  </el-dialog>
</template>

<script>
import { time2str } from "@/components/util.js";
export default {
  name: "son",
  data() {
    return {
      time2str
    };
  },
  props: {
    info: {
      type: Object,
      default: {}
    },
    start: {
      type: Object,
      default: {}
    },
    dialogVisible:{
      type: Boolean,
      default: false
    },
    end: {
      type: Object,
      default: {}
    }
  },
  methods: {
    leavePage() {
      this.$emit("leavePage");
    }
  }
};
</script>

<style>

.leave{
  text-align: center;
  padding: 4px;
}
.leave button{
  width: 100px;
}
.header-title{

}
.red{
  color: red;
}

.center {
  text-align: center;
}
.result{
  font-size: 18px;
}


.clearfix:before,
.clearfix:after {
  display: table;
  content: "";
}
</style>>
