[update] 企标库,添加权限
This commit is contained in:
@@ -37,7 +37,7 @@
|
||||
{{ toggleSearchStatus ? $t('putAway') : $t('open') }}
|
||||
<a-icon :type="toggleSearchStatus ? 'up' : 'down'"/>
|
||||
</a>
|
||||
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 8px">{{ $t('query') }}</a-button>
|
||||
<a-button type="primary" @click="searchQuery" icon="search" style="margin-left: 8px" v-has="'enterpriseStandardLibrary:publicize:search'">{{ $t('query') }}</a-button>
|
||||
<a-button type="primary" @click="searchReset" icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
|
||||
</div>
|
||||
|
||||
@@ -47,12 +47,15 @@
|
||||
<!-- 操作区域 -->
|
||||
<div class="table-operator">
|
||||
<!-- 导出-->
|
||||
<a-button icon="upload" type="primary" ghost @click="handleExportXls($t('enterpriseStandardLibrary.publicize.exportName'))">
|
||||
<a-button icon="upload" type="primary" ghost v-has="'enterpriseStandardLibrary:publicize:export'"
|
||||
@click="handleExportXls($t('enterpriseStandardLibrary.publicize.exportName'))">
|
||||
{{ $t('export') }}
|
||||
</a-button>
|
||||
<a-button icon="upload" type="primary" ghost @click="handleFileExport($t('enterpriseStandardLibrary.publicize.fileExportName'))">{{ $t('exportWithFile') }}</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 @click="downTemplate('enterpriseStandardLibrary.publicize.templateName')">
|
||||
<a-button type="primary" icon="download" ghost v-has="'enterpriseStandardLibrary:publicize:templateDownload'"
|
||||
@click="downTemplate('enterpriseStandardLibrary.publicize.templateName')">
|
||||
{{ $t('templateDownload') }}
|
||||
</a-button>
|
||||
</div>
|
||||
@@ -90,8 +93,8 @@
|
||||
<!-- 相关材料 -->
|
||||
<template v-slot:relatedMaterial="{text, record}">
|
||||
<a-tooltip overlay-class-name="tooltip-style">
|
||||
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
|
||||
<a class="link-a" @click="handleRelatedMaterialClick(record)">{{ text }}</a>
|
||||
<template slot="title">{{ record.declareFileName || record.declareFileName === 0 ? record.declareFileName : global.emptyLine }}</template>
|
||||
<a class="link-a" @click="handleRelatedMaterialClick(record)">{{ record.declareFileName }}</a>
|
||||
</a-tooltip>
|
||||
</template>
|
||||
|
||||
@@ -172,7 +175,6 @@ export default {
|
||||
title: this.$t('enterpriseStandardLibrary.publicize.relatedMaterial'),
|
||||
align: 'center',
|
||||
width: 180,
|
||||
dataIndex: 'declareFileName',
|
||||
scopedSlots: { customRender: 'relatedMaterial' }
|
||||
}
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user