123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596 |
- <template>
- <a-modal
- :title="modalTitle"
- :width="1200"
- :visible="visible"
- class="ant-modal2"
- :confirmLoading="confirmLoading"
- @cancel="handleCancel"
- >
- <detail-list title="" :col="2">
- <detail-list-item term="编号">{{ model.no }}</detail-list-item>
- <detail-list-item term="分析时间">{{ model.analyzeTime }}</detail-list-item>
- <detail-list-item term="更新日期">{{ model.updateTime }}</detail-list-item>
- <detail-list-item term="创建人">{{ model.createdUserName }}</detail-list-item>
- <detail-list-item term="更新人">{{ model.updateUserName }}</detail-list-item>
- </detail-list>
- <a-row>
- <a-col style="margin-top: 10px">
- <div class="term">问题描述:</div>
- <div class="content">{{ model.problemDesc }}</div>
- </a-col>
- </a-row>
- <a-row>
- <a-col style="margin-top: 10px">
- <div class="term">原因分析:</div>
- <div class="content">{{ model.reasonAnalysis }}</div>
- </a-col>
- </a-row>
- <a-row>
- <a-col style="margin-top: 10px">
- <div class="term">改进措施:</div>
- <div class="content">{{ model.improveMeasure }}</div>
- </a-col>
- </a-row>
- <template slot="footer">
- <a-button :loading="confirmLoading" type="primary" @click="handleCancel()">返回</a-button>
- </template>
- </a-modal>
- </template>
- <script>
- import DetailList from '@/components/tools/DetailList'
- const DetailListItem = DetailList.Item
- export default {
- name: 'RepairReasonDetail',
- components: {
- DetailList,
- DetailListItem
- },
- data () {
- return {
- confirmLoading: false,
- mdl: {},
- modalTitle: null,
- visible: false,
- // 下拉框map
- model: {
- 'no': null,
- 'repairId': null,
- 'analyzeTime': null,
- 'problemDesc': null,
- 'reasonAnalysis': null,
- 'improveMeasure': null
- }
- }
- },
- created () {
- // 下拉框map
- },
- methods: {
- base (record) {
- this.visible = true
- this.modalTitle = '详情'
- this.model = record
- },
- handleCancel () {
- this.visible = false
- this.confirmLoading = false
- }
- }
- }
- </script>
- <style scoped>
- .term {
- color: rgba(0, 0, 0, .85);
- display: table-cell;
- line-height: 20px;
- margin-right: 8px;
- padding-bottom: 16px;
- white-space: nowrap;
- }
- </style>
|