[update] 市场法规清单按钮权限
This commit is contained in:
+12
-11
@@ -118,7 +118,7 @@
|
|||||||
</a-col>
|
</a-col>
|
||||||
|
|
||||||
<div style="float: right;overflow: hidden;" class="table-page-search-submitButtons">
|
<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>
|
<a-button type="primary" ghost @click="searchReset" icon="reload" style="margin-left: 8px">{{ $t('reset') }}</a-button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@@ -128,19 +128,19 @@
|
|||||||
|
|
||||||
<div class="table-operator">
|
<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-button icon="download" type="primary" ghost>{{ $t('import') }}</a-button>
|
||||||
</a-upload>
|
</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')">
|
@click="downTemplate($t('standardRegulationLibrary.marketRegulationsList.templateName'), '.xls')">
|
||||||
{{ $t('templateDownload') }}
|
{{ $t('templateDownload') }}
|
||||||
</a-button>
|
</a-button>
|
||||||
@@ -169,9 +169,9 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:action="{text, record}">
|
<template v-slot:action="{text, record}">
|
||||||
<a @click="handleEdit(record)">{{ $t('edit') }}</a>
|
<a @click="handleEdit(record)" v-has="'marketStandard:detail:operate'">{{ $t('edit') }}</a>
|
||||||
<a-divider type="vertical" />
|
<a-divider type="vertical" v-has="'marketStandard:detail:operate'" />
|
||||||
<a @click="handleDelete(record.id)" class="table-ope-btn">{{ $t('delete') }}</a>
|
<a @click="handleDelete(record.id)" class="table-ope-btn" v-has="'marketStandard:detail:operate'">{{ $t('delete') }}</a>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
</j-table>
|
</j-table>
|
||||||
@@ -203,7 +203,8 @@ import StandardSelectionModal from '../../../components/selection/StandardSelect
|
|||||||
import MarketRegulationsListSelectionModal from '../../../components/selection/MarketRegulationsListSelectionModal'
|
import MarketRegulationsListSelectionModal from '../../../components/selection/MarketRegulationsListSelectionModal'
|
||||||
import {
|
import {
|
||||||
getForeignStandardDocumentInfo,
|
getForeignStandardDocumentInfo,
|
||||||
getMarketRegulationListById, marketRegulationDetailAdd, marketRegulationDetailCopy,
|
getMarketRegulationListById,
|
||||||
|
marketRegulationDetailCopy,
|
||||||
marketRegulationDetailTransfer,
|
marketRegulationDetailTransfer,
|
||||||
marketRegulationListAdd,
|
marketRegulationListAdd,
|
||||||
marketRegulationListEdit
|
marketRegulationListEdit
|
||||||
|
|||||||
@@ -76,15 +76,16 @@
|
|||||||
|
|
||||||
<div class="table-operator">
|
<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="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') }}
|
{{ $t('export') }}
|
||||||
</a-button>
|
</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>
|
</div>
|
||||||
|
|
||||||
<!-- table区域-begin -->
|
<!-- table区域-begin -->
|
||||||
@@ -223,7 +224,7 @@ export default {
|
|||||||
{
|
{
|
||||||
text: this.$t('edit'),
|
text: this.$t('edit'),
|
||||||
clickEvent: 'handleEdit',
|
clickEvent: 'handleEdit',
|
||||||
has: '',
|
has: 'marketStandard:edit',
|
||||||
// 只有作者和管理员可以编辑
|
// 只有作者和管理员可以编辑
|
||||||
show: (record) => {
|
show: (record) => {
|
||||||
return this.isAdmin || this.userInfo.id === record.createBy
|
return this.isAdmin || this.userInfo.id === record.createBy
|
||||||
@@ -233,7 +234,7 @@ export default {
|
|||||||
{
|
{
|
||||||
text: this.$t('delete'),
|
text: this.$t('delete'),
|
||||||
clickEvent: 'handleDelete',
|
clickEvent: 'handleDelete',
|
||||||
has: '',
|
has: 'marketStandard:deleteBatch',
|
||||||
// 只有作者和管理员可以删除
|
// 只有作者和管理员可以删除
|
||||||
show: (record) => {
|
show: (record) => {
|
||||||
return this.isAdmin || this.userInfo.id === record.createBy
|
return this.isAdmin || this.userInfo.id === record.createBy
|
||||||
|
|||||||
Reference in New Issue
Block a user