修改按钮权限

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
+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