From ea352b35fdd6f64de4eae98aa98d75972f322bdf Mon Sep 17 00:00:00 2001 From: "cnb.aUOqoEV4wEA" Date: Tue, 11 Nov 2025 17:49:27 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=E6=89=93=E5=8C=85?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../web-tdesign/src/views/things/flow/data.ts | 103 ---------------- .../src/views/things/flow/form.vue | 101 ---------------- .../src/views/things/flow/index.vue | 113 ------------------ 3 files changed, 317 deletions(-) delete mode 100644 apps/web-tdesign/src/views/things/flow/data.ts delete mode 100644 apps/web-tdesign/src/views/things/flow/form.vue delete mode 100644 apps/web-tdesign/src/views/things/flow/index.vue diff --git a/apps/web-tdesign/src/views/things/flow/data.ts b/apps/web-tdesign/src/views/things/flow/data.ts deleted file mode 100644 index db3bd421..00000000 --- a/apps/web-tdesign/src/views/things/flow/data.ts +++ /dev/null @@ -1,103 +0,0 @@ -import type { VbenFormSchema } from '#/adapter/form'; - -import { getDeptOptions } from '#/api'; -import { SendHandlerEnum } from '#/enum/SendHandler'; - -export function useSubmitFormSchema(): VbenFormSchema[] { - return [ - { - component: 'Input', - fieldName: 'deviceId', - label: '设备id', - rules: 'required', - }, - { - component: 'Input', - componentProps: { - placeholder: '请输入同步key', - }, - fieldName: 'syncKey', - label: '同步key', - }, - { - component: 'Input', - componentProps: { - placeholder: '请输入同步密钥', - }, - fieldName: 'syncSecret', - label: '同步密钥', - }, - { - component: 'Input', - componentProps: { - placeholder: '请选择同步平台', - options: SendHandlerEnum, - clearable: true, - }, - fieldName: 'sendHandlerClass', - label: '同步平台', - }, - ]; -} - -export function useSearchFormSchema(): VbenFormSchema[] { - return [ - { - component: 'Input', - componentProps: { - placeholder: '请输入观测点名称', - }, - fieldName: 'displayName', - label: '观测点名称', - }, - { - component: 'ApiSelect', - fieldName: 'deptId', - componentProps: { - api: getDeptOptions, - clearable: true, - labelField: 'deptName', - valueField: 'id', - }, - label: '部门', - }, - ]; -} -export function useGridSchema() { - return [ - { - field: 'id', - title: '序号', - width: 120, - fixed: 'left', - }, - { - field: 'displayName', - title: '点位名称', - slots: { default: 'displayName' }, - width: 120, - }, - { - field: 'locationName', - title: '行政区划', - width: 150, - }, - { - field: 'deptIds', - title: '部门', - slots: { default: 'deptIds' }, - width: 150, - }, - { - field: 'remark', - title: '备注', - }, - { - field: 'actions', - title: '操作', - fixed: 'right', - width: 120, - slots: { default: 'actions' }, - }, - ]; -} diff --git a/apps/web-tdesign/src/views/things/flow/form.vue b/apps/web-tdesign/src/views/things/flow/form.vue deleted file mode 100644 index 702db856..00000000 --- a/apps/web-tdesign/src/views/things/flow/form.vue +++ /dev/null @@ -1,101 +0,0 @@ - - - diff --git a/apps/web-tdesign/src/views/things/flow/index.vue b/apps/web-tdesign/src/views/things/flow/index.vue deleted file mode 100644 index bbf32dcd..00000000 --- a/apps/web-tdesign/src/views/things/flow/index.vue +++ /dev/null @@ -1,113 +0,0 @@ - - -