Detail.vue 2.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980
  1. <template>
  2. <a-card :bordered="false" v-show="visible" class="card" :title="modalTitle">
  3. <a-row :gutter="48" slot="extra">
  4. <a-col :md="48" :sm="48">
  5. <span class="table-page-search-submitButtons" style="float: right">
  6. <a-button style="margin-left: 8px" type="default" @click="handleCancel()">返回</a-button>
  7. </span>
  8. </a-col>
  9. </a-row>
  10. <detail-list title="" :col="2">
  11. <detail-list-item term="设备id">{{ model.sbId }}</detail-list-item>
  12. <detail-list-item term="设备名称">{{ model.sbName }}</detail-list-item>
  13. <detail-list-item term="点位">{{ model.positionNum }}</detail-list-item>
  14. <detail-list-item term="类型">
  15. {{ BaseTool.Object.getField(map,model.type) }}</detail-list-item>
  16. <detail-list-item term="描述">{{ model.description }}</detail-list-item>
  17. <detail-list-item term="实时数值">{{ model.result }}</detail-list-item>
  18. <detail-list-item term="系数">{{ model.ratio }}</detail-list-item>
  19. <detail-list-item term="单位">{{ model.unit }}</detail-list-item>
  20. <detail-list-item term="备注">{{ model.remark }}</detail-list-item>
  21. <detail-list-item term="创建人">{{ model.createdUserId }}</detail-list-item>
  22. <detail-list-item term="更新人">{{ model.updateUserId }}</detail-list-item>
  23. <detail-list-item term="更新日期">{{ model.updateTime }}</detail-list-item>
  24. </detail-list>
  25. </a-card>
  26. </template>
  27. <script>
  28. import DetailList from '@/components/tools/DetailList'
  29. const DetailListItem = DetailList.Item
  30. export default {
  31. name: 'RemoteDegreeDetail',
  32. components: {
  33. DetailList,
  34. DetailListItem
  35. },
  36. data () {
  37. return {
  38. confirmLoading: false,
  39. mdl: {},
  40. modalTitle: null,
  41. map: {},
  42. visible: false,
  43. // 下拉框map
  44. model: {
  45. 'sbId': null,
  46. 'sbName': null,
  47. 'positionNum': null,
  48. 'type': null,
  49. 'description': null,
  50. 'result': null,
  51. 'ratio': null,
  52. 'unit': null,
  53. 'remark': null,
  54. 'createdUserId': null,
  55. 'updateUserId': null,
  56. 'updateTime': null
  57. }
  58. }
  59. },
  60. created () {
  61. // 下拉框map
  62. this.map = this.DictCache.getLabelByValueMapByType(this.DictCache.TYPE.REMOTE_DEGREE)
  63. },
  64. methods: {
  65. base (record) {
  66. this.visible = true
  67. this.modalTitle = '详情'
  68. this.model = record
  69. },
  70. handleCancel () {
  71. this.visible = false
  72. this.confirmLoading = false
  73. }
  74. }
  75. }
  76. </script>