tableDisplay.vue 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  1. <template>
  2. <div class="tableDisplay">
  3. <!-- <el-row :gutter="24">
  4. <el-col :span="18">
  5. 设备信息点
  6. <div class="grid-content bgc-white">
  7. <selectRadio :selectRadio="selectRadio"/>
  8. <el-row>
  9. :span的值可以根据条件改变 是一个24 or 两个 16:8
  10. <el-col :span="16">
  11. <exhibitionBaseInformation/>
  12. </el-col>
  13. <el-col :span="8">
  14. 能耗信息点
  15. </el-col>
  16. </el-row>
  17. </div>
  18. </el-col>
  19. <el-col :span="6">
  20. <div class="grid-content bgc-white">
  21. <exhibitionImage :exhibitionImage="exhibitionImage"/>
  22. </div>
  23. </el-col>
  24. </el-row> -->
  25. <div class="header">
  26. <el-button style="float:left;" size="small" type="default" icon="el-icon-back" @click="goBack"></el-button>
  27. <span class="details-title"><b>设备本地名称-设备本地编码</b></span>
  28. </div>
  29. <div class="content"></div>
  30. <div class="footer"></div>
  31. </div>
  32. </template>
  33. <script>
  34. import exhibitionBaseInformation from "./detail/exhibitionBaseInformation";
  35. import exhibitionFile from "./detail/exhibitionFile";
  36. import exhibitionImage from "./detail/exhibitionImage";
  37. import selectRadio from "./detail/selectRadio";
  38. export default {
  39. name: "tableDisplay",
  40. components: {exhibitionBaseInformation, exhibitionFile, exhibitionImage, selectRadio},
  41. data() {
  42. return {
  43. selectRadio: {
  44. information: '设备信息点',
  45. radioList: [
  46. {
  47. value: '显示需采集信息点',
  48. label: '1'
  49. },
  50. {
  51. value: '显示需采集信息点',
  52. label: '2'
  53. },
  54. {
  55. value: '显示需采集信息点',
  56. label: '3'
  57. }
  58. ]
  59. },
  60. exhibitionBaseInformation: {
  61. //产品说所有信息的key和value是动态生成的
  62. base: {
  63. baseInformation: '基本信息',
  64. list: [
  65. {
  66. text: '设备本地编码:',
  67. val: '123--22:'
  68. },
  69. {
  70. text: '设备二维码图片:',
  71. val: '2:'
  72. },
  73. ]
  74. },
  75. manufacture: {
  76. manufacturerParameter: '台账参数 / 设备厂家',
  77. },
  78. supplier: {
  79. supplierParameters: '台账参数 / 供应购买'
  80. }
  81. },
  82. exhibitionFile: {},
  83. exhibitionImage: {
  84. title:'图片'
  85. }
  86. }
  87. },
  88. created() {
  89. // 疑问?
  90. this.$store.dispatch('setBreadcrumb', [{
  91. label: '台账管理',
  92. path: '/relation/data'
  93. }, {
  94. label: ' 资产台账 ',
  95. path: '/relation/data'
  96. }, {
  97. label: '资产详情'
  98. }])
  99. }
  100. }
  101. </script>
  102. <style scoped lang="less">
  103. .tableDisplay {
  104. .header {
  105. padding-bottom: 10px;
  106. .details-title {
  107. color: #333;
  108. font-size: 16px;
  109. margin-left: 20px;
  110. line-height: 32px;
  111. }
  112. }
  113. .content {
  114. box-sizing: border-box;
  115. border: 1px solid #ccc;
  116. height: calc(100% - 82px);
  117. }
  118. .footer {
  119. height: 40px;
  120. }
  121. }
  122. </style>