Detail.vue 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. <template>
  2. <a-modal
  3. :title="modalTitle"
  4. :width="1200"
  5. :visible="visible"
  6. class="ant-modal2"
  7. :confirmLoading="confirmLoading"
  8. @cancel="handleCancel"
  9. >
  10. <detail-list title="" :col="2">
  11. <detail-list-item term="编号">{{ model.no }}</detail-list-item>
  12. <detail-list-item term="分析时间">{{ model.analyzeTime }}</detail-list-item>
  13. <detail-list-item term="更新日期">{{ model.updateTime }}</detail-list-item>
  14. <detail-list-item term="创建人">{{ model.createdUserName }}</detail-list-item>
  15. <detail-list-item term="更新人">{{ model.updateUserName }}</detail-list-item>
  16. </detail-list>
  17. <a-row>
  18. <a-col style="margin-top: 10px">
  19. <div class="term">问题描述:</div>
  20. <div class="content">{{ model.problemDesc }}</div>
  21. </a-col>
  22. </a-row>
  23. <a-row>
  24. <a-col style="margin-top: 10px">
  25. <div class="term">原因分析:</div>
  26. <div class="content">{{ model.reasonAnalysis }}</div>
  27. </a-col>
  28. </a-row>
  29. <a-row>
  30. <a-col style="margin-top: 10px">
  31. <div class="term">改进措施:</div>
  32. <div class="content">{{ model.improveMeasure }}</div>
  33. </a-col>
  34. </a-row>
  35. <template slot="footer">
  36. <a-button :loading="confirmLoading" type="primary" @click="handleCancel()">返回</a-button>
  37. </template>
  38. </a-modal>
  39. </template>
  40. <script>
  41. import DetailList from '@/components/tools/DetailList'
  42. const DetailListItem = DetailList.Item
  43. export default {
  44. name: 'RepairReasonDetail',
  45. components: {
  46. DetailList,
  47. DetailListItem
  48. },
  49. data () {
  50. return {
  51. confirmLoading: false,
  52. mdl: {},
  53. modalTitle: null,
  54. visible: false,
  55. // 下拉框map
  56. model: {
  57. 'no': null,
  58. 'repairId': null,
  59. 'analyzeTime': null,
  60. 'problemDesc': null,
  61. 'reasonAnalysis': null,
  62. 'improveMeasure': null
  63. }
  64. }
  65. },
  66. created () {
  67. // 下拉框map
  68. },
  69. methods: {
  70. base (record) {
  71. this.visible = true
  72. this.modalTitle = '详情'
  73. this.model = record
  74. },
  75. handleCancel () {
  76. this.visible = false
  77. this.confirmLoading = false
  78. }
  79. }
  80. }
  81. </script>
  82. <style scoped>
  83. .term {
  84. color: rgba(0, 0, 0, .85);
  85. display: table-cell;
  86. line-height: 20px;
  87. margin-right: 8px;
  88. padding-bottom: 16px;
  89. white-space: nowrap;
  90. }
  91. </style>