[update] 表格拖拽换j-table

This commit is contained in:
lideqin
2023-08-23 15:44:51 +08:00
parent 8e7345928e
commit 029c89e13f
17 changed files with 479 additions and 428 deletions
@@ -44,12 +44,12 @@
{{ $t('personalCenter.collection.batchCancel') }}
</div>
</div>
<a-table
<j-table
ref="table"
:bordered="true"
size="middle"
rowKey="id"
:components="drag(columns,'columns')"
:can-drag="true"
:columns="columns"
:dataSource="dataSource"
:pagination="ipagination"
@@ -57,35 +57,36 @@
:scroll="{x: '100%'}"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"
@change="handleTableChange">
<template slot="text" slot-scope="text">
<template v-slot:text="{text}">
<a-tooltip overlay-class-name="tooltip-style">
<template slot="title">{{ text || text === 0 ? text : global.emptyLine }}</template>
<div class="table-text">{{ text || text === 0 ? text : global.emptyLine }}</div>
</a-tooltip>
</template>
<template slot="serialNumber" slot-scope="text, record">
<template v-slot:serialNumber="{text, record}">
<a class="table-del" @click="onDetail(record)">{{text}}</a>
</template>
<div slot="action" slot-scope="text, record">
<template v-slot:action="{text, record}">
<!--取消收藏-->
<a class="table-del" @click="onCancel(record)">{{$t('personalCenter.collection.cancelCollection')}}</a>
</div>
</a-table>
</template>
</j-table>
</div>
</template>
<script>
import JTable from '@/components/jero/JTable'
import '@assets/less/common.less'
import { ResizeColumnProvide, ResizeHeader } from '../../../../mixins/header'
import { SimpleListMixin } from '../../../../mixins/SimpleListMixin'
import { deleteAction, postAction } from '../../../../api/manage'
import JDictSelectTag from '../../../../components/dict/JDictSelectTag'
export default {
name: 'CollectionDocumentLibraryList',
mixins: [SimpleListMixin, ResizeHeader, ResizeColumnProvide],
mixins: [SimpleListMixin],
components: {
JTable,
JDictSelectTag
},
data () {