From 071b6224c934d54ad5fed538c1039d92c24e859e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=9F=E5=B8=85?= <133814250@qq.com> Date: Thu, 20 Jul 2023 18:10:36 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=91=E5=B8=83v2.8.4=E7=89=88=E6=9C=AC?= =?UTF-8?q?=EF=BC=8C=E6=9B=B4=E6=96=B0=E5=86=85=E5=AE=B9=E8=AF=B7=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B=EF=BC=9Ahttps://github.com/bufanyun/hotgo/blob/v2.0/d?= =?UTF-8?q?ocs/guide-zh-CN/start-update-log.md?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/guide-zh-CN/README.md | 1 - web/src/views/org/dept/dept.vue | 22 +++++++++++----------- 2 files changed, 11 insertions(+), 12 deletions(-) diff --git a/docs/guide-zh-CN/README.md b/docs/guide-zh-CN/README.md index 3c2721b..362243f 100644 --- a/docs/guide-zh-CN/README.md +++ b/docs/guide-zh-CN/README.md @@ -26,7 +26,6 @@ - [消息队列](sys-queue.md) - [功能扩展库](sys-library.md) - [工具方法](sys-utility.md) -- RESTful Api - Websocket服务器 - [TCP服务器](sys-tcp-server.md) - [单元测试](sys-test.md) diff --git a/web/src/views/org/dept/dept.vue b/web/src/views/org/dept/dept.vue index 0724d47..0819eea 100644 --- a/web/src/views/org/dept/dept.vue +++ b/web/src/views/org/dept/dept.vue @@ -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(); + const data = ref([]); + const rowKey = (row: RowData) => row.id; const defaultState = { id: 0, @@ -212,16 +223,7 @@ createdAt: '', updatedAt: '', }; - let formParams = ref(); - type RowData = { - createdAt: string; - status: number; - name: string; - id: number; - children?: RowData[]; - }; - const data = ref([]); const columns: DataTableColumns = [ { title(_column) { @@ -333,8 +335,6 @@ }, ]; - const rowKey = (row: RowData) => row.id; - function addTable() { showModal.value = true; formParams.value = cloneDeep(defaultState);