用户审核管理
This commit is contained in:
@@ -6,6 +6,8 @@
|
||||
:data="tableStore.table.data"
|
||||
v-loading="tableStore.table.loading"
|
||||
v-bind="Object.assign({}, defaultAttribute, $attrs)"
|
||||
@checkbox-all="selectChangeEvent"
|
||||
@checkbox-change="selectChangeEvent"
|
||||
>
|
||||
<!-- Column 组件内部是 el-table-column -->
|
||||
<template v-if="isGroup">
|
||||
@@ -91,7 +93,7 @@
|
||||
<script setup lang="ts">
|
||||
import { ref, nextTick, inject, computed, onMounted } from 'vue'
|
||||
import type { ElTable } from 'element-plus'
|
||||
import { VxeTableInstance } from 'vxe-table'
|
||||
import { VxeTableEvents, VxeTableInstance } from 'vxe-table'
|
||||
import FieldRender from '@/components/table/fieldRender/index.vue'
|
||||
import Column from '@/components/table/column/index.vue'
|
||||
import { useConfig } from '@/stores/config'
|
||||
@@ -134,8 +136,12 @@ const pageSizes = computed(() => {
|
||||
/*
|
||||
* 记录选择的项
|
||||
*/
|
||||
const onSelectionChange = (selection: any) => {
|
||||
// tableStore.onTableAction('selection-change', selection)
|
||||
const selectChangeEvent: VxeTableEvents.CheckboxChange<any> = ({ checked }) => {
|
||||
const $table = tableRef.value
|
||||
if ($table) {
|
||||
const records = $table.getCheckboxRecords()
|
||||
tableStore.onTableAction('selection-change', records)
|
||||
}
|
||||
}
|
||||
|
||||
const getRef = () => {
|
||||
|
||||
Reference in New Issue
Block a user