From e052f9aee6a992f28fe457f92f6f98a6c5474def Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=86=8A=E7=8E=AE?= Date: Thu, 21 Nov 2024 16:35:59 +0800 Subject: [PATCH] =?UTF-8?q?1=E3=80=81param=20json=20edit?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/data/task/schema.ts | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/data/task/schema.ts b/src/views/data/task/schema.ts index d13df6c..d733d74 100644 --- a/src/views/data/task/schema.ts +++ b/src/views/data/task/schema.ts @@ -8,7 +8,7 @@ import { BasicColumn } from '@/components/Table'; import { FormSchema } from '@/components/Table'; - +import * as DeviceApi from '@/api/data/deviceApi' @@ -59,9 +59,15 @@ export const schema = { componentProps: { allowClear: true, placeholder: '设备序列号', + labelInValue: false, + api: DeviceApi.all, + params: {}, + resultField: 'result', + labelField: 'name', + valueField: 'deviceSn', }, colProps, - component: 'Input', + component: 'ApiSelect', }, table: { },