This commit is contained in:
孟帅 2023-07-20 18:10:36 +08:00
parent 874f3c1785
commit 071b6224c9
2 changed files with 11 additions and 12 deletions

View File

@ -26,7 +26,6 @@
- [消息队列](sys-queue.md)
- [功能扩展库](sys-library.md)
- [工具方法](sys-utility.md)
- RESTful Api
- Websocket服务器
- [TCP服务器](sys-tcp-server.md)
- [单元测试](sys-test.md)

View File

@ -118,6 +118,14 @@
import { HelpCircleOutline } from '@vicons/ionicons5';
import { defRangeShortcuts } from '@/utils/dateUtil';
type RowData = {
createdAt: string;
status: number;
name: string;
id: number;
children?: RowData[];
};
const rules = {
name: {
required: true,
@ -197,6 +205,9 @@
const dialog = useDialog();
const showModal = ref(false);
const formBtnLoading = ref(false);
let formParams = ref<any>();
const data = ref<any>([]);
const rowKey = (row: RowData) => row.id;
const defaultState = {
id: 0,
@ -212,16 +223,7 @@
createdAt: '',
updatedAt: '',
};
let formParams = ref<any>();
type RowData = {
createdAt: string;
status: number;
name: string;
id: number;
children?: RowData[];
};
const data = ref<any>([]);
const columns: DataTableColumns<RowData> = [
{
title(_column) {
@ -333,8 +335,6 @@
},
];
const rowKey = (row: RowData) => row.id;
function addTable() {
showModal.value = true;
formParams.value = cloneDeep(defaultState);