mirror of
https://github.com/bufanyun/hotgo.git
synced 2025-01-23 10:50:24 +08:00
This commit is contained in:
parent
874f3c1785
commit
071b6224c9
@ -26,7 +26,6 @@
|
|||||||
- [消息队列](sys-queue.md)
|
- [消息队列](sys-queue.md)
|
||||||
- [功能扩展库](sys-library.md)
|
- [功能扩展库](sys-library.md)
|
||||||
- [工具方法](sys-utility.md)
|
- [工具方法](sys-utility.md)
|
||||||
- RESTful Api
|
|
||||||
- Websocket服务器
|
- Websocket服务器
|
||||||
- [TCP服务器](sys-tcp-server.md)
|
- [TCP服务器](sys-tcp-server.md)
|
||||||
- [单元测试](sys-test.md)
|
- [单元测试](sys-test.md)
|
||||||
|
@ -118,6 +118,14 @@
|
|||||||
import { HelpCircleOutline } from '@vicons/ionicons5';
|
import { HelpCircleOutline } from '@vicons/ionicons5';
|
||||||
import { defRangeShortcuts } from '@/utils/dateUtil';
|
import { defRangeShortcuts } from '@/utils/dateUtil';
|
||||||
|
|
||||||
|
type RowData = {
|
||||||
|
createdAt: string;
|
||||||
|
status: number;
|
||||||
|
name: string;
|
||||||
|
id: number;
|
||||||
|
children?: RowData[];
|
||||||
|
};
|
||||||
|
|
||||||
const rules = {
|
const rules = {
|
||||||
name: {
|
name: {
|
||||||
required: true,
|
required: true,
|
||||||
@ -197,6 +205,9 @@
|
|||||||
const dialog = useDialog();
|
const dialog = useDialog();
|
||||||
const showModal = ref(false);
|
const showModal = ref(false);
|
||||||
const formBtnLoading = ref(false);
|
const formBtnLoading = ref(false);
|
||||||
|
let formParams = ref<any>();
|
||||||
|
const data = ref<any>([]);
|
||||||
|
const rowKey = (row: RowData) => row.id;
|
||||||
|
|
||||||
const defaultState = {
|
const defaultState = {
|
||||||
id: 0,
|
id: 0,
|
||||||
@ -212,16 +223,7 @@
|
|||||||
createdAt: '',
|
createdAt: '',
|
||||||
updatedAt: '',
|
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> = [
|
const columns: DataTableColumns<RowData> = [
|
||||||
{
|
{
|
||||||
title(_column) {
|
title(_column) {
|
||||||
@ -333,8 +335,6 @@
|
|||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const rowKey = (row: RowData) => row.id;
|
|
||||||
|
|
||||||
function addTable() {
|
function addTable() {
|
||||||
showModal.value = true;
|
showModal.value = true;
|
||||||
formParams.value = cloneDeep(defaultState);
|
formParams.value = cloneDeep(defaultState);
|
||||||
|
Loading…
Reference in New Issue
Block a user