evaTable.vue 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <template>
  2. <div>
  3. <div class="evaCss">
  4. <el-table
  5. :data="eList"
  6. :header-cell-style="{ background: '#F0F4FA' }"
  7. border
  8. stripe
  9. style="width: 100%"
  10. >
  11. <el-table-column label="素养" align="center">
  12. <template slot-scope="scope">
  13. <div
  14. style="display:flex;justify-content: center;align-items: center;"
  15. >
  16. <img
  17. class="blueRootCss"
  18. v-if="
  19. scope.row.isai == 1
  20. "
  21. src="../../../assets/icon/newIcons/blueRoot.png"
  22. alt=""
  23. />
  24. {{ scope.row.target ? scope.row.target : "-" }}
  25. </div>
  26. </template></el-table-column
  27. >
  28. <el-table-column label="评价标准" align="center">
  29. <template slot-scope="scope"
  30. ><div>
  31. {{ scope.row.detail != "" ? scope.row.detail : "-" }}
  32. </div></template
  33. >
  34. </el-table-column>
  35. <el-table-column label="细则" align="center">
  36. <template slot-scope="scope"
  37. ><div
  38. style="display:flex;justify-content: space-around;margin:auto"
  39. v-if="scope.row.rule"
  40. >
  41. <el-popover placement="top" width="350" trigger="hover">
  42. <div
  43. v-html="scope.row.rule"
  44. style="white-space:pre-wrap"
  45. ></div>
  46. <div slot="reference" style="color:#4383FF;cursor: pointer;">
  47. 查看
  48. </div>
  49. </el-popover>
  50. </div>
  51. <div v-else>-</div>
  52. </template>
  53. </el-table-column>
  54. </el-table>
  55. </div>
  56. </div>
  57. </template>
  58. <script>
  59. export default {
  60. props: ["eList"],
  61. // mounted() {
  62. // console.log("eList", this.eList);
  63. // },
  64. data() {
  65. return {};
  66. }
  67. };
  68. </script>
  69. <style scoped>
  70. .evaCss {
  71. display: flex;
  72. flex-direction: row;
  73. flex-wrap: nowrap;
  74. align-items: flex-start;
  75. padding: 0 0 20px;
  76. width: 100%;
  77. }
  78. .evaCss >>> .cell {
  79. position: relative;
  80. overflow: visible;
  81. }
  82. .evaCss >>> .el-table__body-wrapper {
  83. overflow: visible;
  84. }
  85. .evaCss >>> .el-table {
  86. overflow: visible;
  87. }
  88. .blueRootCss{
  89. display: block;
  90. margin-right: 5px;
  91. }
  92. .blueRootCss{
  93. position: absolute;
  94. top:50%;
  95. left: 0;
  96. transform: translate(-20px,-50%);
  97. }
  98. </style>