fix(web): 修复节点option key错误
This commit is contained in:
@@ -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,
|
||||
})),
|
||||
})
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user