diff --git a/service-web/client/src/components/flow/node/AmisNode.tsx b/service-web/client/src/components/flow/node/AmisNode.tsx index 99c1faa..0939826 100644 --- a/service-web/client/src/components/flow/node/AmisNode.tsx +++ b/service-web/client/src/components/flow/node/AmisNode.tsx @@ -22,7 +22,7 @@ export function inputsFormColumns(props: ColumnsSchemaProps): Schema[] { groups.push({ label: incomer.id, children: Object.keys(outputs).map(key => ({ - key: `${incomer.id}.${key}`, + value: `${incomer.id}.${key}`, label: key, })), }) diff --git a/service-web/client/src/util/amis.tsx b/service-web/client/src/util/amis.tsx index 54f8aa2..8f4bf3d 100644 --- a/service-web/client/src/util/amis.tsx +++ b/service-web/client/src/util/amis.tsx @@ -162,14 +162,6 @@ export const amisRender = (schema: Schema, data: Record = {}) => { ) } -addRule( - 'isOptionsValid', - (values, value: any, arg1?: any, arg2?: any, arg3?: any, arg4?: any, arg5?: any) => { - console.log(values, value, arg1, arg2, arg3, arg4, arg5) - return false - }, -) - function generateLokiPanel(queries: Array) { return { LWF: { @@ -2541,7 +2533,7 @@ export const formInputFileStaticColumns = [ type: 'action', label: '预览', level: 'link', - icon: 'fas fa-eye' + icon: 'fas fa-eye', }, { type: 'action', @@ -2550,12 +2542,12 @@ export const formInputFileStaticColumns = [ icon: 'fa fa-download', actionType: 'ajax', // api: { - // ...apiGet('${base}/upload/download/${id}'), - // responseType: 'blob', + // ...apiGet('${base}/upload/download/${id}'), + // responseType: 'blob', // } - } - ] - } + }, + ], + }, ] export function formInputSingleFileStatic(field: string, label: string) {