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