Detail.vue 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576
  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='设备'>{{ model.sbName }}</detail-list-item>
  12. <detail-list-item term='更改内容'>{{ model.content }}</detail-list-item>
  13. <detail-list-item term='位号'>{{ model.sbNoId }}</detail-list-item>
  14. <detail-list-item term='记录时间'>{{ model.createdTime }}</detail-list-item>
  15. <detail-list-item term='记录人'>{{ model.createdUserName }}</detail-list-item>
  16. <detail-list-item term='开始时间'>{{ model.startTime }}</detail-list-item>
  17. <detail-list-item term='结束时间'>{{ model.endTime }}</detail-list-item>
  18. </detail-list>
  19. </a-card>
  20. </template>
  21. <script>
  22. import DetailList from '@/components/tools/DetailList'
  23. const DetailListItem = DetailList.Item
  24. export default {
  25. name: 'SbChangeRecordDetail',
  26. components: {
  27. DetailList,
  28. DetailListItem
  29. },
  30. data() {
  31. return {
  32. confirmLoading: false,
  33. mdl: {},
  34. modalTitle: null,
  35. visible: false,
  36. // 下拉框map
  37. model: {
  38. 'createdUserId': null,
  39. 'updateUserId': null,
  40. 'createdUserName': null,
  41. 'sbId': null,
  42. 'content': null,
  43. 'oldPositionId': null,
  44. 'positionId': null,
  45. 'sbNoId': null,
  46. 'oldParentId': null,
  47. 'parentId': null,
  48. 'updateTime': null,
  49. 'startTime': null,
  50. 'endTime': null,
  51. 'changeType': null,
  52. 'sbName': null
  53. }
  54. }
  55. },
  56. created() {
  57. // 下拉框map
  58. },
  59. methods: {
  60. base(record) {
  61. this.visible = true
  62. this.modalTitle = '详情'
  63. this.model = record
  64. },
  65. handleCancel() {
  66. this.visible = false
  67. this.confirmLoading = false
  68. this.$emit('ok')
  69. }
  70. }
  71. }
  72. </script>