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 {
|
||||
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 { changeAdminStatus, getAdminListByPage } from '#/api';
|
||||
import { toObject } from '#/enum';
|
||||
@ -16,10 +24,6 @@ const [FormModel, formModelApi] = useVbenModal({
|
||||
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) {
|
||||
confirm(`确认${value === 1 ? '启用' : '禁用'}用户`, `切换状态`)
|
||||
.then(async () => {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user