自定义表头修改

This commit is contained in:
高嵩
2023-02-14 10:45:53 +08:00
parent 161bf6e87a
commit 7fab5980a7
@@ -253,7 +253,7 @@
:row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }" :row-selection="{ selectedRowKeys: selectedRowKeys, onChange: onSelectChange }"
:columns="columns" :columns="columns"
> >
<span slot="operation" slot-scope="text,record"> <span slot="operationOne" slot-scope="text,record">
<a class="text-operation" <a class="text-operation"
v-if="(record.inventoryAffirmStatus == 'List to confirm' && v-if="(record.inventoryAffirmStatus == 'List to confirm' &&
((record.roleCode == 1 && !record.regulationOwnerSubmitStatus) || ((record.roleCode == 1 && !record.regulationOwnerSubmitStatus) ||
@@ -279,12 +279,12 @@
</a> </a>
</span> </span>
<span slot="operationOne" slot-scope="text,record"> <!-- <span slot="operationOne" slot-scope="text,record">-->
<a class="text-operation" <!-- <a class="text-operation"-->
@click="viewClick(record)"> <!-- @click="viewClick(record)">-->
{{$t('view')}} <!-- {{$t('view')}}-->
</a> <!-- </a>-->
</span> <!-- </span>-->
<span slot="titleName" slot-scope="text,record" :title="text"> <span slot="titleName" slot-scope="text,record" :title="text">
<span class="textName"> <span class="textName">
{{text}} {{text}}
@@ -811,13 +811,13 @@
} }
] ]
}, },
{ // {
title: this.$t('operation'), // title: this.$t('operation'),
align: 'left', // align: 'left',
fixed: 'right', // fixed: 'right',
width: 200, // width: 200,
scopedSlots: { customRender: 'operation' } // scopedSlots: { customRender: 'operation' }
}, // },
{ {
title: this.$t('operation'), title: this.$t('operation'),
align: 'left', align: 'left',