[update] 解决columns每一个都写dataIndex会有一个横向滚动条的问题
This commit is contained in:
@@ -53,11 +53,6 @@
|
||||
</a-button>
|
||||
<a-button icon="upload" type="primary" ghost v-has="'enterpriseStandardLibrary:publicize:fileExport'"
|
||||
@click="handleFileExport($t('enterpriseStandardLibrary.publicize.fileExportName'))">{{ $t('exportWithFile') }}</a-button>
|
||||
<!-- 模板下载-->
|
||||
<a-button type="primary" icon="download" ghost v-has="'enterpriseStandardLibrary:publicize:templateDownload'"
|
||||
@click="downTemplate('enterpriseStandardLibrary.publicize.templateName')">
|
||||
{{ $t('templateDownload') }}
|
||||
</a-button>
|
||||
</div>
|
||||
|
||||
<div>
|
||||
@@ -87,15 +82,17 @@
|
||||
<template v-slot:enterpriseStandardName="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<a class="link-a" @click="handleGoDetail(record)">{{ text }}</a>
|
||||
<a v-if="text" class="link-a" @click="handleGoDetail(record)">{{ text }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
<!-- 相关材料 -->
|
||||
<template v-slot:relatedMaterial="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ record.declareFileName || record.declareFileName === 0 ? record.declareFileName : global.emptyLine }}</template>
|
||||
<a class="link-a" @click="handleRelatedMaterialClick(record)">{{ record.declareFileName }}</a>
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<a v-if="text" class="link-a" @click="handleRelatedMaterialClick(record)">{{ text }}</a>
|
||||
<div v-else class="table-text">{{ global.emptyLine }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
@@ -176,6 +173,7 @@ export default {
|
||||
title: this.$t('enterpriseStandardLibrary.publicize.relatedMaterial'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'declareFileName',
|
||||
scopedSlots: { customRender: 'relatedMaterial' }
|
||||
}
|
||||
],
|
||||
|
||||
@@ -89,13 +89,6 @@
|
||||
<div class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
<!-- 主起草单位: 为了去掉横向滚动条 -->
|
||||
<template slot="mainDraftingUnit" slot-scope="{record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ record.mainDraftingUnit || record.mainDraftingUnit === 0 ? record.mainDraftingUnit : global.emptyLine }}</template>
|
||||
<div class="table-text">{{ record.mainDraftingUnit || record.mainDraftingUnit === 0 ? record.mainDraftingUnit : global.emptyLine }}</div>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
</j-table>
|
||||
</div>
|
||||
@@ -170,7 +163,8 @@ export default {
|
||||
title: this.$t('enterpriseStandardLibrary.reviewPlan.mainDraftingUnit'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
scopedSlots: { customRender: 'mainDraftingUnit' }
|
||||
dataIndex: 'mainDraftingUnit',
|
||||
scopedSlots: { customRender: 'text' }
|
||||
}
|
||||
],
|
||||
labelCol: {
|
||||
|
||||
Reference in New Issue
Block a user