修改按钮权限

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
@@ -115,9 +115,9 @@
formInline[item.db_field_name] == null) ? $t('clickUpload') : $t('viewUploadedFiles')
}}
</a-button>
<span class="button-text-text" v-if="formInline[item.db_field_name]">
{{formInline[item.db_field_name].split(',').length}}
</span>
<!-- <span class="button-text-text" v-if="formInline[item.db_field_name]">-->
<!-- {{formInline[item.db_field_name].split(',').length}}-->
<!-- </span>-->
</a-form-model-item>
</div>
</a-col>
+6 -6
View File
@@ -13,17 +13,17 @@
@change="tableOnChange"
>
<span slot="operation" slot-scope="record">
<a class="text" v-for="(ol,index) in OperationList"
<a v-for="(ol,index) in OperationList"
@click="OperationClick(ol,record)">
<span v-if="ol.text == $t('CancelCollection')">
<span v-if="ol.text == $t('CancelCollection')" v-has="ol.has" class="text">
{{!record.collectFlag || record.collectFlag == 0 ? $t('Collection') :$t('CancelCollection')}}
</span>
<span v-else-if="ol.text == $t('CancelSubscribe')">
<span v-else-if="ol.text == $t('CancelSubscribe')" v-has="ol.has" class="text">
{{!record.subscribeFlag || record.subscribeFlag == 0 ? $t('subscribe') :$t('CancelSubscribe')}}
</span>
<span v-else>
<span v-else v-has="ol.has" class="text">
{{ol.text}}
</span>
</span>
</a>
</span>
<span slot="detailClick" slot-scope="text,record">
@@ -189,7 +189,7 @@
this.loading = true
postAction(this.url.tableList, params).then((res) => {
if (res.success) {
if (res.result.current > 1 && res.result.records.length == 0){
if (res.result.current > 1 && res.result.records.length == 0) {
this.pageNo = res.result.current - 1
this.getTableList()
return
@@ -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: [],