应用层PC端前端服务

caselogDialog.vue 3.1KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133
  1. <template>
  2. <div>
  3. <el-dialog
  4. title="案件日志"
  5. :visible="showcaseLog"
  6. @close="cancel"
  7. center
  8. :distroy-on-close="true"
  9. >
  10. <div class="loading" v-if="flagLoading">
  11. <i class="el-icon-loading"></i>
  12. </div>
  13. <div v-else>
  14. <el-timeline>
  15. <el-timeline-item
  16. v-for="(activity, index) in activities"
  17. :key="index"
  18. :timestamp="activity.timestamp"
  19. placement="top"
  20. >
  21. <el-card>
  22. <h4>{{ activity.doOperate }}</h4>
  23. <p>{{ activity.content }}</p>
  24. </el-card>
  25. </el-timeline-item>
  26. <!-- <el-timeline-item timestamp="2018/4/3" placement="top">
  27. <el-card>
  28. <h4>更新 Github 模板</h4>
  29. <p>王小虎 提交于 2018/4/3 20:46</p>
  30. </el-card>
  31. </el-timeline-item>
  32. <el-timeline-item timestamp="2018/4/2" placement="top">
  33. <el-card>
  34. <h4>更新 Github 模板</h4>
  35. <p>王小虎 提交于 2018/4/2 20:46</p>
  36. </el-card>
  37. </el-timeline-item> -->
  38. </el-timeline>
  39. </div>
  40. <div slot="footer" class="dialog-footer">
  41. <el-button @click="cancel" class="endbutton1"
  42. ><span>取 消</span></el-button
  43. >
  44. </div>
  45. </el-dialog>
  46. </div>
  47. </template>
  48. <script>
  49. export default {
  50. props: ["showcaseLog", "flagLoading"],
  51. data() {
  52. return {
  53. // key: value
  54. reverse: true,
  55. activities: [
  56. {
  57. content: "韩超勃 申请于 2023/10/3 20:46",
  58. timestamp: "申请",
  59. doOperate: "申请立案"
  60. },
  61. {
  62. content: "韩超勃 提交于 2023/10/4 20:46",
  63. timestamp: "提交",
  64. doOperate: "提交立案"
  65. },
  66. {
  67. content: "氢气球 立案审查 2023/10/3 20:46",
  68. timestamp: "立案审查",
  69. doOperate: "立案审查"
  70. },
  71. {
  72. content: "风格的 提交于 2023/10/3 20:46",
  73. timestamp: "提交",
  74. doOperate: "提交立案"
  75. },
  76. {
  77. content: "乖乖 提交于 2023/10/3 20:46",
  78. timestamp: "提交",
  79. doOperate: "提交立案"
  80. },
  81. {
  82. content: "烤羊腿 提交于 2023/10/3 20:46",
  83. timestamp: "提交",
  84. doOperate: "提交立案"
  85. },
  86. ],
  87. };
  88. },
  89. methods: {
  90. cancel() {
  91. this.$emit("cancelcaseLog");
  92. },
  93. },
  94. };
  95. </script>
  96. <style lang="scss" scoped>
  97. ::v-deep .el-dialog__body {
  98. height: 700px !important;
  99. overflow: auto !important;
  100. }
  101. ::v-deep .el-dialog {
  102. width: 800px;
  103. background: #ffffff;
  104. border-radius: 20px;
  105. }
  106. .endbutton1 {
  107. width: 154px;
  108. height: 37px;
  109. background: #ffffff;
  110. border: 1px solid #d0d0d0;
  111. border-radius: 19px;
  112. span {
  113. width: 31px;
  114. height: 13px;
  115. font-size: 16px;
  116. font-family: Microsoft YaHei;
  117. font-weight: 400;
  118. color: #959595;
  119. }
  120. }
  121. .loading {
  122. width: 100%;
  123. height: 100%;
  124. display: flex;
  125. justify-content: center;
  126. align-items: center;
  127. .el-icon-loading {
  128. font-size: 50px;
  129. }
  130. }
  131. </style>