feat: 完善功能
This commit is contained in:
parent
40803462ac
commit
51278733fa
@ -3,6 +3,14 @@ import { computed } from 'vue';
|
|||||||
|
|
||||||
import { confirm, Page, useVbenModal } from '@vben/common-ui';
|
import { confirm, Page, useVbenModal } from '@vben/common-ui';
|
||||||
|
|
||||||
|
import {
|
||||||
|
Button as TButton,
|
||||||
|
Link as TLink,
|
||||||
|
Space as TSpace,
|
||||||
|
Switch as TSwitch,
|
||||||
|
} from 'tdesign-vue-next';
|
||||||
|
|
||||||
|
import { message } from '#/adapter/tdesign';
|
||||||
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
import { useVbenVxeGrid } from '#/adapter/vxe-table';
|
||||||
import { changeAdminStatus, getAdminListByPage } from '#/api';
|
import { changeAdminStatus, getAdminListByPage } from '#/api';
|
||||||
import { toObject } from '#/enum';
|
import { toObject } from '#/enum';
|
||||||
@ -16,10 +24,6 @@ const [FormModel, formModelApi] = useVbenModal({
|
|||||||
destroyOnClose: true,
|
destroyOnClose: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
import { message } from '#/adapter/tdesign';
|
|
||||||
|
|
||||||
import { Button as TButton, Space as TSpace, Switch as TSwitch, Link as TLink } from 'tdesign-vue-next';
|
|
||||||
|
|
||||||
function onStatusChange(value: any, row: any) {
|
function onStatusChange(value: any, row: any) {
|
||||||
confirm(`确认${value === 1 ? '启用' : '禁用'}用户`, `切换状态`)
|
confirm(`确认${value === 1 ? '启用' : '禁用'}用户`, `切换状态`)
|
||||||
.then(async () => {
|
.then(async () => {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user