用户审核管理

This commit is contained in:
仲么了
2024-01-22 15:20:30 +08:00
parent 0bf750e5ae
commit e13c9080e6
7 changed files with 273 additions and 96 deletions

View File

@@ -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 = () => {