mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-23 02:40:23 +08:00
This commit is contained in:
parent
874f3c1785
commit
071b6224c9
@ -26,7 +26,6 @@
|
||||
- [消息队列](sys-queue.md)
|
||||
- [功能扩展库](sys-library.md)
|
||||
- [工具方法](sys-utility.md)
|
||||
- RESTful Api
|
||||
- Websocket服务器
|
||||
- [TCP服务器](sys-tcp-server.md)
|
||||
- [单元测试](sys-test.md)
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user