feat: dataSourceConfigId
							parent
							
								
									35c8e137e0
								
							
						
					
					
						commit
						f4e9d2f5e2
					
				|  | @ -131,10 +131,16 @@ export const importTableSearchFormSchema: FormSchema[] = [ | |||
|     label: '数据源', | ||||
|     field: 'dataSourceConfigId', | ||||
|     component: 'ApiSelect', | ||||
|     componentProps: { | ||||
|       api: () => getDataSourceConfigList(), | ||||
|     componentProps: ({ formModel }) => { | ||||
|       return { | ||||
|         api: async () => { | ||||
|           const res = await getDataSourceConfigList() | ||||
|           formModel.dataSourceConfigId = res[0].id | ||||
|           return res | ||||
|         }, | ||||
|         labelField: 'name', | ||||
|         valueField: 'id' | ||||
|       } | ||||
|     }, | ||||
|     colProps: { span: 8 } | ||||
|   }, | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	 xingyu
						xingyu