This commit is contained in:
njdaoyehu 2024-11-21 17:27:35 +08:00
parent 3465897824
commit 247f564cd1

View File

@ -53,12 +53,12 @@ export const schema = {
}, },
{ {
field: 'deviceSn', field: 'deviceSn',
label: '设备序列号', label: '设备',
defaultValue: undefined, defaultValue: undefined,
form: { form: {
componentProps: { componentProps: {
allowClear: true, allowClear: true,
placeholder: '设备序列号', placeholder: '请选择设备',
labelInValue: false, labelInValue: false,
api: DeviceApi.all, api: DeviceApi.all,
params: {}, params: {},
@ -68,6 +68,7 @@ export const schema = {
}, },
colProps, colProps,
component: 'ApiSelect', component: 'ApiSelect',
rules: [{ required: true, message: '请选择设备!' }],
}, },
table: { table: {
}, },
@ -84,6 +85,7 @@ export const schema = {
}, },
slot: 'paramJson', slot: 'paramJson',
colProps: { span: 24 }, colProps: { span: 24 },
rules: [{ required: true, message: '请输入任务参数!' }],
}, },
table: { table: {
}, },