evaTable.vue 2.5 KB

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