[update] 市场法规清单按钮权限
This commit is contained in:
+12
-11
@@ -118,7 +118,7 @@
|
||||
</a-col>
|
||||
|
||||
<div style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
||||
<a-button type="primary" @click="searchQuery" icon="search">{{ $t('query') }}</a-button>
|
||||
<a-button type="primary" @click="searchQuery" icon="search" v-has="'marketStandard:detail'">{{ $t('query') }}</a-button>
|
||||
<a-button type="primary" ghost @click="searchReset" icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
|
||||
</div>
|
||||
|
||||
@@ -128,19 +128,19 @@
|
||||
|
||||
<div class="table-operator">
|
||||
<!-- 新增 -->
|
||||
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
|
||||
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'marketStandard:detail:operate'">{{ $t('newlyAdded') }}</a-button>
|
||||
<!-- 调取 -->
|
||||
<a-button icon="plus" type="primary" @click="handleTransfer">{{ $t('transfer') }}</a-button>
|
||||
<a-button icon="plus" type="primary" @click="handleTransfer" v-has="'marketStandard:detail:operate'">{{ $t('transfer') }}</a-button>
|
||||
<!-- 复制 -->
|
||||
<a-button icon="copy" type="primary" @click="handleCopy">{{ $t('copy') }}</a-button>
|
||||
<a-button icon="copy" type="primary" @click="handleCopy" v-has="'marketStandard:detail:operate'">{{ $t('copy') }}</a-button>
|
||||
<!-- 批量删除 -->
|
||||
<a-button icon="delete" type="primary" ghost @click="batchDel">{{ $t('batchDelete') }}</a-button>
|
||||
<a-button icon="delete" type="primary" ghost @click="batchDel" v-has="'marketStandard:detail:operate'">{{ $t('batchDelete') }}</a-button>
|
||||
<!-- 导入 -->
|
||||
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" :data="importData" @change="handleImportExcel">
|
||||
<a-upload name="file" :showUploadList="false" :multiple="false" :headers="tokenHeader" :action="importExcelUrl" :data="importData" @change="handleImportExcel" v-has="'marketStandard:detail:operate'">
|
||||
<a-button icon="download" type="primary" ghost>{{ $t('import') }}</a-button>
|
||||
</a-upload>
|
||||
<!-- 模板下载 -->
|
||||
<a-button type="primary" icon="download" ghost
|
||||
<a-button type="primary" icon="download" ghost v-has="'marketStandard:detail:operate'"
|
||||
@click="downTemplate($t('standardRegulationLibrary.marketRegulationsList.templateName'), '.xls')">
|
||||
{{ $t('templateDownload') }}
|
||||
</a-button>
|
||||
@@ -169,9 +169,9 @@
|
||||
</template>
|
||||
|
||||
<template v-slot:action="{text, record}">
|
||||
<a @click="handleEdit(record)">{{ $t('edit') }}</a>
|
||||
<a-divider type="vertical" />
|
||||
<a @click="handleDelete(record.id)" class="table-ope-btn">{{ $t('delete') }}</a>
|
||||
<a @click="handleEdit(record)" v-has="'marketStandard:detail:operate'">{{ $t('edit') }}</a>
|
||||
<a-divider type="vertical" v-has="'marketStandard:detail:operate'" />
|
||||
<a @click="handleDelete(record.id)" class="table-ope-btn" v-has="'marketStandard:detail:operate'">{{ $t('delete') }}</a>
|
||||
</template>
|
||||
|
||||
</j-table>
|
||||
@@ -203,7 +203,8 @@ import StandardSelectionModal from '../../../components/selection/StandardSelect
|
||||
import MarketRegulationsListSelectionModal from '../../../components/selection/MarketRegulationsListSelectionModal'
|
||||
import {
|
||||
getForeignStandardDocumentInfo,
|
||||
getMarketRegulationListById, marketRegulationDetailAdd, marketRegulationDetailCopy,
|
||||
getMarketRegulationListById,
|
||||
marketRegulationDetailCopy,
|
||||
marketRegulationDetailTransfer,
|
||||
marketRegulationListAdd,
|
||||
marketRegulationListEdit
|
||||
|
||||
@@ -76,15 +76,16 @@
|
||||
|
||||
<div class="table-operator">
|
||||
<!-- 新增 -->
|
||||
<a-button icon="plus" type="primary" @click="handleAdd">{{ $t('newlyAdded') }}</a-button>
|
||||
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'marketStandard:add'">{{ $t('newlyAdded') }}</a-button>
|
||||
<!-- 发布 -->
|
||||
<a-button icon="plus" type="primary" @click="handleBatchPublish">{{ $t('release') }}</a-button>
|
||||
<!-- 导出 -->
|
||||
<a-button icon="upload" type="primary" ghost @click="handleExportXls($t('standardRegulationLibrary.marketRegulationsList.exportName'))">
|
||||
<a-button icon="upload" type="primary" ghost v-has="'marketStandard:export'"
|
||||
@click="handleExportXls($t('standardRegulationLibrary.marketRegulationsList.exportName'))">
|
||||
{{ $t('export') }}
|
||||
</a-button>
|
||||
<!-- 查看 -->
|
||||
<a-button icon="eye" type="primary" ghost @click="handleLook">{{ $t('view') }}</a-button>
|
||||
<a-button icon="eye" type="primary" ghost @click="handleLook" v-has="'marketStandard:detail'">{{ $t('view') }}</a-button>
|
||||
</div>
|
||||
|
||||
<!-- table区域-begin -->
|
||||
@@ -223,7 +224,7 @@ export default {
|
||||
{
|
||||
text: this.$t('edit'),
|
||||
clickEvent: 'handleEdit',
|
||||
has: '',
|
||||
has: 'marketStandard:edit',
|
||||
// 只有作者和管理员可以编辑
|
||||
show: (record) => {
|
||||
return this.isAdmin || this.userInfo.id === record.createBy
|
||||
@@ -233,7 +234,7 @@ export default {
|
||||
{
|
||||
text: this.$t('delete'),
|
||||
clickEvent: 'handleDelete',
|
||||
has: '',
|
||||
has: 'marketStandard:deleteBatch',
|
||||
// 只有作者和管理员可以删除
|
||||
show: (record) => {
|
||||
return this.isAdmin || this.userInfo.id === record.createBy
|
||||
|
||||
Reference in New Issue
Block a user