baseInfo.vue 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <template>
  2. <div>
  3. <div class="normal-margin">
  4. <el-descriptions
  5. :column="3"
  6. :title="$t('基本信息')"
  7. labelClassName="my-label"
  8. contentClassName="my-content"
  9. border
  10. >
  11. <el-descriptions-item
  12. v-for="(item, index) in detailInfo.baseInfo"
  13. :key="index"
  14. :label="$t(item.label)"
  15. >
  16. <span :style="item.style ? item.style() : ''">{{
  17. item.value ? $t(item.value) : "--"
  18. }}</span>
  19. </el-descriptions-item>
  20. </el-descriptions>
  21. </div>
  22. <div class="normal-margin">
  23. <el-descriptions
  24. :column="3"
  25. :title="$t('系统信息')"
  26. labelClassName="my-label"
  27. contentClassName="my-content"
  28. border
  29. >
  30. <el-descriptions-item
  31. v-for="(item, index) in detailInfo.systemInfo"
  32. :key="index"
  33. :label="$t(item.label)"
  34. >{{
  35. item.value ? $t(item.value) : "--"
  36. }}</el-descriptions-item
  37. >
  38. </el-descriptions>
  39. </div>
  40. </div>
  41. </template>
  42. <script>
  43. export default {
  44. name: "detailedData",
  45. props: ["detailInfo"],
  46. detailInfo() {
  47. return {};
  48. },
  49. mounted() {},
  50. methods: {},
  51. };
  52. </script>
  53. <style scoped>
  54. /deep/.el-descriptions-item__label {
  55. font-size: 14px;
  56. color: rgb(163, 163, 163) !important;
  57. white-space: nowrap;
  58. }
  59. </style>