From 8d0b69cd4c8799ac9d7d1d5fd7d31f188a88297a Mon Sep 17 00:00:00 2001 From: fhysy <1149505133@qq.com> Date: Thu, 11 Sep 2025 14:55:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E4=BC=98=E5=8C=96=E7=BD=91?= =?UTF-8?q?=E5=85=B3=E3=80=81=E7=BD=91=E7=BB=9C=E5=92=8C=E5=8D=8F=E8=AE=AE?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2=E7=9A=84=E5=B1=95=E7=A4=BA=E6=95=88=E6=9E=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除表格中的编号列 - 添加表单折叠功能 - 更新 spinner 组件样式,改成打字机效果 --- .../src/views/operations/gateway/data.ts | 8 +- .../src/views/operations/gateway/index.vue | 1 + .../src/views/operations/network/data.ts | 8 +- .../src/views/operations/network/index.vue | 2 +- .../src/views/operations/protocol/data.ts | 8 +- .../src/views/operations/protocol/index.vue | 1 + .../src/components/spinner/spinner.vue | 404 +++++++++++++++++- 7 files changed, 414 insertions(+), 18 deletions(-) diff --git a/apps/web-antd/src/views/operations/gateway/data.ts b/apps/web-antd/src/views/operations/gateway/data.ts index b008078..64be4bd 100644 --- a/apps/web-antd/src/views/operations/gateway/data.ts +++ b/apps/web-antd/src/views/operations/gateway/data.ts @@ -125,10 +125,10 @@ export const querySchema: FormSchemaGetter = () => [ // export const columns: () => VxeGridProps['columns'] = () => [ export const columns: VxeGridProps['columns'] = [ { type: 'checkbox', width: 60 }, - { - title: '编号', - field: 'id', - }, + // { + // title: '编号', + // field: 'id', + // }, { title: '网关名称', field: 'name', diff --git a/apps/web-antd/src/views/operations/gateway/index.vue b/apps/web-antd/src/views/operations/gateway/index.vue index ffee24f..cceed56 100644 --- a/apps/web-antd/src/views/operations/gateway/index.vue +++ b/apps/web-antd/src/views/operations/gateway/index.vue @@ -28,6 +28,7 @@ import { import gatewayDrawer from './gateway-drawer.vue'; const formOptions: VbenFormProps = { + collapsed: true, commonConfig: { labelWidth: 80, componentProps: { diff --git a/apps/web-antd/src/views/operations/network/data.ts b/apps/web-antd/src/views/operations/network/data.ts index 58db0cf..23c4332 100644 --- a/apps/web-antd/src/views/operations/network/data.ts +++ b/apps/web-antd/src/views/operations/network/data.ts @@ -241,10 +241,10 @@ export const querySchema: FormSchemaGetter = () => [ // export const columns: () => VxeGridProps['columns'] = () => [ export const columns: VxeGridProps['columns'] = [ { type: 'checkbox', width: 60 }, - { - title: '编号', - field: 'id', - }, + // { + // title: '编号', + // field: 'id', + // }, { title: '组件名称', field: 'name', diff --git a/apps/web-antd/src/views/operations/network/index.vue b/apps/web-antd/src/views/operations/network/index.vue index 6046684..d932cee 100644 --- a/apps/web-antd/src/views/operations/network/index.vue +++ b/apps/web-antd/src/views/operations/network/index.vue @@ -22,6 +22,7 @@ import { columns, querySchema } from './data'; import networkDrawer from './network-drawer.vue'; const formOptions: VbenFormProps = { + collapsed: true, commonConfig: { labelWidth: 80, componentProps: { @@ -122,7 +123,6 @@ function handleDownloadExcel() { }, ); } - @@ -135,3 +140,392 @@ function onTransitionEnd() { } } +