阅行客电子档案
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

119 lines
3.6 KiB

  1. <template>
  2. <!--四性检测-档案详情内-->
  3. <div class="fourTest-container">
  4. <el-table :data="tableData">
  5. <el-table-column prop="admin" label="检测人" min-width="60" />
  6. <el-table-column prop="createTime" label="检测时间" min-width="180">
  7. <template slot-scope="scope">
  8. <div>{{ scope.row.createTime | parseTime }}</div>
  9. </template>
  10. </el-table-column>
  11. <el-table-column prop="truth" label="真实性" align="center">
  12. <template slot-scope="scope">
  13. <span v-if="scope.row.truth===1" class="four-icon iconfont icon-zhengque" />
  14. <span v-else class="four-icon iconfont icon-cuowu" />
  15. </template>
  16. </el-table-column>
  17. <el-table-column prop="integrity" label="完整性" align="center">
  18. <template slot-scope="scope">
  19. <span v-if="scope.row.integrity===1" class="four-icon iconfont icon-zhengque" />
  20. <span v-else class="four-icon iconfont icon-cuowu" />
  21. </template>
  22. </el-table-column>
  23. <el-table-column prop="availability" label="可用性" align="center">
  24. <template slot-scope="scope">
  25. <span v-if="scope.row.availability===1" class="four-icon iconfont icon-zhengque" />
  26. <span v-else class="four-icon iconfont icon-cuowu" />
  27. </template>
  28. </el-table-column>
  29. <el-table-column prop="safety" label="安全性" align="center">
  30. <template slot-scope="scope">
  31. <span v-if="scope.row.safety===1" class="four-icon iconfont icon-zhengque" />
  32. <span v-else class="four-icon iconfont icon-cuowu" />
  33. </template>
  34. </el-table-column>
  35. <el-table-column prop="createDate" label="检测结果" min-width="220">
  36. <template slot-scope="scope">
  37. <div>共检测{{ scope.row.totalNum }}<span class="testSuccess">通过{{ scope.row.successNum }}</span><span class="testError">未通过{{ scope.row.errorNum }}</span></div>
  38. </template>
  39. </el-table-column>
  40. </el-table>
  41. <!--分页组件-->
  42. <el-pagination
  43. :current-page="page.page"
  44. :total="page.total"
  45. :page-size="page.size"
  46. :pager-count="5"
  47. layout="total, prev, pager, next, sizes"
  48. @size-change="handleSizeChange"
  49. @current-change="handleCurrentPage"
  50. />
  51. </div>
  52. </template>
  53. <script>
  54. const data = [
  55. {
  56. 'id': '005E76FEC5A2AAB368CA1F',
  57. 'admin': 'admin',
  58. 'archive_no': 'YXK-2022-JJ-001 ',
  59. 'maintitle': '文书档案001',
  60. 'createTime': 1660706815000,
  61. 'truth': 0,
  62. 'integrity': 1,
  63. 'availability': 0,
  64. 'safety': 0,
  65. 'totalNum': 5,
  66. 'successNum': 1,
  67. 'errorNum': 0
  68. },
  69. {
  70. 'id': '005E76FEC5A2AAB368CA1F2',
  71. 'admin': 'admin',
  72. 'archive_no': 'YXK-2022-JJ-002 ',
  73. 'maintitle': '文书档案001',
  74. 'createTime': 1660706815000,
  75. 'truth': 0,
  76. 'integrity': 1,
  77. 'availability': 1,
  78. 'safety': 0,
  79. 'totalNum': 5,
  80. 'successNum': 1,
  81. 'errorNum': 0
  82. }
  83. ]
  84. export default {
  85. name: 'FourTestInfo',
  86. components: { },
  87. mixins: [],
  88. data() {
  89. return {
  90. tableData: [{}, {}],
  91. page: {
  92. page: 1,
  93. size: 10,
  94. total: 0
  95. }
  96. }
  97. },
  98. created() {
  99. },
  100. mounted() {
  101. this.tableData = data
  102. },
  103. methods: {
  104. handleSizeChange(size) {
  105. this.page.size = size
  106. this.page.page = 1
  107. },
  108. handleCurrentPage(val) {
  109. this.page.page = val
  110. }
  111. }
  112. }
  113. </script>
  114. <style lang='scss' scoped>
  115. @import "~@/assets/styles/collect-reorganizi.scss";
  116. </style>