StatisticsDetailDialog.vue 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <template>
  2. <el-dialog
  3. class="statistics-detail-dialog"
  4. :visible.sync="modalIsShow"
  5. title="详情信息"
  6. top="10vh"
  7. width="620px"
  8. :close-on-click-modal="false"
  9. :close-on-press-escape="false"
  10. append-to-body
  11. destroy-on-close
  12. >
  13. <el-table ref="TableList" :data="contents">
  14. <el-table-column prop="clazzName" label="班级"></el-table-column>
  15. <el-table-column prop="examPrintPlanName" label="印刷计划">
  16. <span slot-scope="scope" v-if="scope.row.status === 'FINISH'">{{
  17. scope.row.examPrintPlanName
  18. }}</span>
  19. </el-table-column>
  20. <el-table-column prop="paperNumber" label="试卷编号">
  21. <span slot-scope="scope" v-if="scope.row.status === 'FINISH'">{{
  22. scope.row.paperNumber
  23. }}</span>
  24. </el-table-column>
  25. <el-table-column prop="status" label="状态">
  26. <span slot-scope="scope">
  27. {{ STATUS_TYPE[scope.row.status] }}
  28. </span>
  29. </el-table-column>
  30. </el-table>
  31. <div slot="footer">
  32. <el-button @click="cancel">关闭</el-button>
  33. </div>
  34. </el-dialog>
  35. </template>
  36. <script>
  37. export default {
  38. name: "statistics-detail-dialog",
  39. props: {
  40. contents: {
  41. type: Array,
  42. default() {
  43. return [];
  44. }
  45. }
  46. },
  47. data() {
  48. return {
  49. modalIsShow: false,
  50. STATUS_TYPE: {
  51. FINISH: "该班级命题任务已完成印刷",
  52. UN_FINISH: "该班级命题任务未完成印刷",
  53. EXCEPTION: "异常:包含该班级的命题任务印刷了多次"
  54. }
  55. };
  56. },
  57. methods: {
  58. cancel() {
  59. this.modalIsShow = false;
  60. },
  61. open() {
  62. this.modalIsShow = true;
  63. }
  64. }
  65. };
  66. </script>