[fix 80566]列表空数据显示-

This commit is contained in:
danshihao
2024-01-17 10:05:14 +08:00
parent 8d4038c34b
commit b72b58ed6a
4 changed files with 72 additions and 32 deletions
@@ -48,7 +48,11 @@
:columns="columns"
:data-source="dataSource"
:loading="tableLoading"
:pagination="false"/>
:pagination="false">
<template v-slot:text="text">
{{ text || text === 0 ? text : global.emptyLine }}
</template>
</a-table>
</div>
<!-- 流程审批信息 -->
<div class="process-part">
@@ -151,55 +155,64 @@ export default {
title: this.$t('esInspectionPlan.inspectionBasisStandardNumber'),
align: 'center',
width: 150,
dataIndex: 'inspectNo'
dataIndex: 'inspectNo',
scopedSlots: { customRender: 'text' }
},
{ // 稽查依据标准名称
title: this.$t('esInspectionPlan.inspectionBasisStandardName'),
align: 'center',
width: 150,
dataIndex: 'inspectName'
dataIndex: 'inspectName',
scopedSlots: { customRender: 'text' }
},
{ // 计划稽查对象
title: this.$t('esInspectionPlan.planInspectionObjects'),
align: 'center',
width: 120,
dataIndex: 'inspectObject_dictText'
dataIndex: 'inspectObject_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 主责标准化工作组
title: this.$t('esInspectionPlan.mainDutyStandardizationGroup'),
align: 'center',
width: 150,
dataIndex: 'standardizationWorkGroup'
dataIndex: 'standardizationWorkGroup',
scopedSlots: { customRender: 'text' }
},
{ // 所属部门
title: this.$t('esInspectionPlan.department'),
align: 'center',
width: 120,
dataIndex: 'belongDept_dictText'
dataIndex: 'belongDept_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 计划稽查日期
title: this.$t('esInspectionPlan.planInspectionDate'),
align: 'center',
width: 120,
dataIndex: 'planInspectDate'
dataIndex: 'planInspectDate',
scopedSlots: { customRender: 'text' }
},
{ // 稽查负责人
title: this.$t('esInspectionPlan.inspectionDirector'),
align: 'center',
width: 120,
dataIndex: 'inspectUserDictText'
dataIndex: 'inspectUserDictText',
scopedSlots: { customRender: 'text' }
},
{ // 标准化组对接人
title: this.$t('esInspectionPlan.standardizationGroupContactPerson'),
align: 'center',
width: 140,
dataIndex: 'standardizationDockingUserDictText'
dataIndex: 'standardizationDockingUserDictText',
scopedSlots: { customRender: 'text' }
},
{ // 发起人
title: this.$t('esInspectionPlan.initiator'),
align: 'center',
width: 120,
dataIndex: 'createByDictText'
dataIndex: 'createByDictText',
scopedSlots: { customRender: 'text' }
}
],
dataSource: []
@@ -48,6 +48,9 @@
:columns="columns"
:data-source="dataSource"
:pagination="false">
<template v-slot:text="text">
{{ text || text === 0 ? text : global.emptyLine }}
</template>
<!-- 操作 -->
<template slot="action" slot-scope="text, record">
<!-- 节点2显示稽查内容 -->
@@ -168,43 +171,50 @@ export default {
title: this.$t('esInspectionPlan.inspectionBasisStandardNumber'),
align: 'center',
width: 150,
dataIndex: 'inspectNo'
dataIndex: 'inspectNo',
scopedSlots: { customRender: 'text' }
},
{ // 稽查依据标准名称
title: this.$t('esInspectionPlan.inspectionBasisStandardName'),
align: 'center',
width: 150,
dataIndex: 'inspectName'
dataIndex: 'inspectName',
scopedSlots: { customRender: 'text' }
},
{ // 计划稽查对象
title: this.$t('esInspectionPlan.planInspectionObjects'),
align: 'center',
width: 120,
dataIndex: 'planInspectObject_dictText'
dataIndex: 'planInspectObject_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 主责标准化工作组
title: this.$t('esInspectionPlan.mainDutyStandardizationGroup'),
align: 'center',
width: 150,
dataIndex: 'standardizationWorkGroup'
dataIndex: 'standardizationWorkGroup',
scopedSlots: { customRender: 'text' }
},
{ // 所属部门
title: this.$t('esInspectionPlan.department'),
align: 'center',
width: 120,
dataIndex: 'belongDept_dictText'
dataIndex: 'belongDept_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 计划稽查日期
title: this.$t('esInspectionPlan.planInspectionDate'),
align: 'center',
width: 120,
dataIndex: 'planInspectDate'
dataIndex: 'planInspectDate',
scopedSlots: { customRender: 'text' }
},
{ // 稽查负责人
title: this.$t('esInspectionPlan.inspectionDirector'),
align: 'center',
width: 120,
dataIndex: 'inspectUserDictText'
dataIndex: 'inspectUserDictText',
scopedSlots: { customRender: 'text' }
},
{ // 实际稽查完成日期
title: this.$t('esInspectionProcess.actualInspectionCompletionDate'),
@@ -216,7 +226,7 @@ export default {
EsInspectionProcess.directorLeaderApprovalTwo.value,
EsInspectionProcess.relevantPersonnelCountersign.value
],
scopedSlots: { customRender: 'actualInspectionCompletionDate' }
scopedSlots: { customRender: 'text' }
},
{ // 实际稽查人
title: this.$t('esInspectionProcess.actualInspector'),
@@ -228,7 +238,7 @@ export default {
EsInspectionProcess.directorLeaderApprovalTwo.value,
EsInspectionProcess.relevantPersonnelCountersign.value
],
scopedSlots: { customRender: 'actualInspector' }
scopedSlots: { customRender: 'text' }
},
{
// 操作
@@ -48,7 +48,11 @@
:columns="columns"
:data-source="dataSource"
:loading="tableLoading"
:pagination="false"/>
:pagination="false">
<template v-slot:text="text">
{{ text || text === 0 ? text : global.emptyLine }}
</template>
</a-table>
</div>
<!-- 流程审批信息 -->
<div class="process-part">
@@ -156,49 +160,57 @@ export default {
title: this.$t('esInspectionPlan.inspectionBasisStandardNumber'),
align: 'center',
width: 180,
dataIndex: 'inspectNo'
dataIndex: 'inspectNo',
scopedSlots: { customRender: 'text' }
},
{ // 稽查依据标准名称
title: this.$t('esInspectionPlan.inspectionBasisStandardName'),
align: 'center',
width: 180,
dataIndex: 'inspectName'
dataIndex: 'inspectName',
scopedSlots: { customRender: 'text' }
},
{ // 计划稽查对象
title: this.$t('esInspectionPlan.planInspectionObjects'),
align: 'center',
width: 120,
dataIndex: 'planInspectObject_dictText'
dataIndex: 'planInspectObject_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 计划稽查日期
title: this.$t('esInspectionPlan.planInspectionDate'),
align: 'center',
width: 120,
dataIndex: 'planInspectDate'
dataIndex: 'planInspectDate',
scopedSlots: { customRender: 'text' }
},
{ // 稽查负责人
title: this.$t('esInspectionPlan.inspectionDirector'),
align: 'center',
width: 120,
dataIndex: 'inspectUserDictText'
dataIndex: 'inspectUserDictText',
scopedSlots: { customRender: 'text' }
},
{ // 状态
title: this.$t('incExtensionRequest.state'),
align: 'center',
width: 120,
dataIndex: 'inspectStatus_dictText'
dataIndex: 'inspectStatus_dictText',
scopedSlots: { customRender: 'text' }
},
{ // 申请延期日期
title: this.$t('incExtensionRequest.requestExtensionDate'),
align: 'center',
width: 120,
dataIndex: 'requestDelayDate'
dataIndex: 'requestDelayDate',
scopedSlots: { customRender: 'text' }
},
{ // 延期说明
title: this.$t('incExtensionRequest.extensionDescription'),
align: 'center',
width: 120,
dataIndex: 'delayDescription'
dataIndex: 'delayDescription',
scopedSlots: { customRender: 'text' }
}
],
dataSource: []
@@ -63,8 +63,11 @@
:scroll="{x:'100%', y: '50vh'}"
:columns="columns"
:data-source="dataSource"
:pagination="false"
></a-table>
:pagination="false">
<template v-slot:text="text">
{{ text || text === 0 ? text : global.emptyLine }}
</template>
</a-table>
<!-- 授权到期日期 -->
<van-field
:label="$t('permissionApplicationProcess.authExpirationDate')"
@@ -174,13 +177,15 @@ export default {
title: this.$t('permissionApplicationProcess.esNumber'),
align: 'center',
width: 140,
dataIndex: 'standardNumber'
dataIndex: 'standardNumber',
scopedSlots: { customRender: 'text' }
},
{ // 企标名称
title: this.$t('permissionApplicationProcess.esName'),
align: 'center',
width: 140,
dataIndex: 'standardName'
dataIndex: 'standardName',
scopedSlots: { customRender: 'text' }
}
],
dataSource: [],