info.vue 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <template>
  2. <div class="inter_result">
  3. <!-- :header-cell-style="cellstyle" -->
  4. <el-table
  5. :data="data.filter((item) => item.name !== 'id')"
  6. height="500"
  7. :class="fileList ? '' : 'infotabel'"
  8. style="width: 100%"
  9. >
  10. <el-table-column
  11. show-overflow-tooltip="true"
  12. prop="name"
  13. label="属性名称"
  14. >
  15. </el-table-column>
  16. <el-table-column show-overflow-tooltip="true" prop="value" label="属性值">
  17. </el-table-column>
  18. </el-table>
  19. <div v-if="fileList">
  20. 相关材料
  21. <el-table :data="fileList" height="200" style="width: 100%">
  22. <el-table-column label="序号" width="70px">
  23. <template slot-scope="scope">{{ scope.$index + 1 }}</template>
  24. </el-table-column>
  25. <el-table-column
  26. show-overflow-tooltip="true"
  27. prop="fileName"
  28. label="文件名称"
  29. >
  30. </el-table-column>
  31. <el-table-column label="操作" width="70px">
  32. <template slot-scope="scope">
  33. <span class="usable" @click="download(scope.row)"> 查看 </span>
  34. </template>
  35. </el-table-column>
  36. </el-table>
  37. </div>
  38. </div>
  39. </template>
  40. <script>
  41. export default {
  42. props: {
  43. data: {
  44. type: Array,
  45. },
  46. fileList: {
  47. type: Array,
  48. },
  49. },
  50. methods: {
  51. download(obj) {
  52. window.open(obj.fileUrl);
  53. },
  54. },
  55. };
  56. </script>
  57. <style lang="scss">
  58. .inter_result {
  59. // height: 580px;
  60. height: 695px;
  61. }
  62. .datatable {
  63. }
  64. .infotabel {
  65. height: 100% !important;
  66. }
  67. </style>