fix(web): 修复节点option key错误

This commit is contained in:
v-zhangjc9
2025-07-08 10:29:55 +08:00
parent 605cfb7182
commit 898e20d5d7
2 changed files with 7 additions and 15 deletions

View File

@@ -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,
})),
})

View File

@@ -162,14 +162,6 @@ export const amisRender = (schema: Schema, data: Record<any, any> = {}) => {
)
}
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<any>) {
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) {