[update] 修改bug87731
This commit is contained in:
@@ -78,7 +78,7 @@
|
|||||||
<!-- 新增 -->
|
<!-- 新增 -->
|
||||||
<a-button icon="plus" type="primary" @click="handleAdd" v-has="'marketStandard:add'">{{ $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" v-has="'marketStandard:publish'">{{ $t('release') }}</a-button>
|
||||||
<!-- 导出 -->
|
<!-- 导出 -->
|
||||||
<a-button icon="upload" type="primary" ghost v-has="'marketStandard:export'"
|
<a-button icon="upload" type="primary" ghost v-has="'marketStandard:export'"
|
||||||
@click="handleExportXls($t('standardRegulationLibrary.marketRegulationsList.exportName'))">
|
@click="handleExportXls($t('standardRegulationLibrary.marketRegulationsList.exportName'))">
|
||||||
@@ -217,7 +217,7 @@ export default {
|
|||||||
{
|
{
|
||||||
text: this.$t('release'),
|
text: this.$t('release'),
|
||||||
clickEvent: 'handlePublish',
|
clickEvent: 'handlePublish',
|
||||||
has: '',
|
has: 'marketStandard:publish',
|
||||||
// 已发布状态不显示发布按钮,只有作者和管理员可以发布
|
// 已发布状态不显示发布按钮,只有作者和管理员可以发布
|
||||||
show: (record) => {
|
show: (record) => {
|
||||||
return record.manifestStatus !== ListState.RELEASED.value && (this.isAdmin || this.userInfo.id === record.author)
|
return record.manifestStatus !== ListState.RELEASED.value && (this.isAdmin || this.userInfo.id === record.author)
|
||||||
|
|||||||
Reference in New Issue
Block a user