修改按钮权限

This commit is contained in:
qq787203167
2022-03-09 14:38:43 +08:00
parent 653c8962e9
commit a66f628a45
3 changed files with 24 additions and 20 deletions
@@ -4,30 +4,30 @@
<search ref="searchRef" :flag="'1'" :url="url"/>
</div>
<div class="table-operator">
<div @click="handleDel" class="operator-text">
<div @click="handleDel" class="operator-text" v-has="'document:deleteBatch'">
<a-icon type="delete"/>
{{$t('BatchDelete')}}
</div>
<div @click="handleExport" class="operator-text">
<div @click="handleExport" class="operator-text" v-has="'document:exportExcel'">
<a-icon type="export" :rotate="-90"/>
{{$t('dataExport')}}
</div>
<div @click="handleFileExport" class="operator-text">
<div @click="handleFileExport" class="operator-text" v-has="'document:exportZip'">
<a-icon type="mail"/>
{{$t('exportWithFile')}}
</div>
<div @click="handleCompare" class="operator-text">
<div @click="handleCompare" class="operator-text" v-has="'document:pullMessage'">
<a-icon type="rocket" :rotate="45"/>
{{$t('Push')}}
</div>
<div @click="handleModule" class="operator-text">
<div @click="handleModule" class="operator-text" v-has="'document:exportTemplate'">
<a-icon type="download"/>
{{$t('templateDownload')}}
</div>
<div class="operator-text">
<div class="operator-text" v-has="'document:importZip'">
<ImportFile :url="url"/>
</div>
<div @click="handleAdd" class="operator-text">
<div @click="handleAdd" class="operator-text" v-has="'document:getInfoById'">
<a-icon type="plus"/>
{{$t('add')}}
</div>
@@ -91,19 +91,23 @@
OperationList: [
{
text: this.$t('CancelCollection'),
ClickEvent: 'Collection'
ClickEvent: 'Collection',
has:'document:addCollect'
},
{
text: this.$t('CancelSubscribe'),
ClickEvent: 'subscribe'
ClickEvent: 'subscribe',
has:'document:addSubscribe'
},
{
text: this.$t('edit'),
ClickEvent: 'editTable'
ClickEvent: 'editTable',
has:'document:updateInfo'
},
{
text: this.$t('deleteLib'),
ClickEvent: 'deleteTable'
ClickEvent: 'deleteTable',
has:'document:deleteBatch'
}
],
selectedRowKeys: [],