Listform genel düzenelemeler seeder
This commit is contained in:
parent
7bd6216515
commit
27c298c245
6 changed files with 492 additions and 458 deletions
|
|
@ -9551,7 +9551,7 @@
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
"key": "App.SupplyChain.PurchaseOrder",
|
"key": "App.SupplyChain.PurchaseOrder",
|
||||||
"tr": "Siparişler",
|
"tr": "Siparişler",
|
||||||
"en": "Orders"
|
"en": "Purchase Orders"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"resourceName": "Platform",
|
"resourceName": "Platform",
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ function FormTabDatabaseDelete({
|
||||||
name="deleteCommand"
|
name="deleteCommand"
|
||||||
placeholder={translate('::ListForms.ListFormEdit.DatabaseDeleteCommand')}
|
placeholder={translate('::ListForms.ListFormEdit.DatabaseDeleteCommand')}
|
||||||
component={Input}
|
component={Input}
|
||||||
|
textArea={true}
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<Button block variant="solid" loading={isSubmitting}>
|
<Button block variant="solid" loading={isSubmitting}>
|
||||||
|
|
@ -83,6 +84,102 @@ function FormTabDatabaseDelete({
|
||||||
</Button>
|
</Button>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
<Card
|
||||||
|
className="my-2"
|
||||||
|
bodyClass="p-0"
|
||||||
|
header={translate('::ListForms.ListFormEdit.DatabaseDeleteFieldsDefaultValues')}
|
||||||
|
headerExtra={translate('::ListForms.ListFormEdit.DatabaseDefaultValuesDescription')}
|
||||||
|
>
|
||||||
|
<Table compact>
|
||||||
|
<THead>
|
||||||
|
<Tr>
|
||||||
|
<Th className="text-center">
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Add"
|
||||||
|
icon={<FaFileMedical />}
|
||||||
|
onClick={async (e) => {
|
||||||
|
e.preventDefault()
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Delete.DeleteFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'create',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index: -1,
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormFieldEdit.FieldName')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.FieldDbType')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.CustomValueType')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.Value')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.SqlQuery')}</Th>
|
||||||
|
</Tr>
|
||||||
|
</THead>
|
||||||
|
<TBody>
|
||||||
|
{initialValues.deleteFieldsDefaultValueDto.map((row: any, index: number) => (
|
||||||
|
<Tr key={row.fieldName}>
|
||||||
|
<Td>
|
||||||
|
<div className="flex-wrap inline-flex xl:flex items-center gap-2">
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Edit"
|
||||||
|
icon={<FaEdit />}
|
||||||
|
onClick={() => {
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Delete
|
||||||
|
.DeleteFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'update',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index,
|
||||||
|
crudValues: initialValues.deleteFieldsDefaultValueDto[index],
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Delete"
|
||||||
|
icon={<FaTrash />}
|
||||||
|
onClick={() => {
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Delete
|
||||||
|
.DeleteFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'delete',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index,
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Td>
|
||||||
|
<Td>{row.fieldName}</Td>
|
||||||
|
<Td>
|
||||||
|
{dbSourceTypeOptions.find((a: any) => a.value === row.fieldDbType)?.label}
|
||||||
|
</Td>
|
||||||
|
<Td>{FieldCustomValueTypeEnum[row.customValueType]}</Td>
|
||||||
|
<Td>{row.value}</Td>
|
||||||
|
<Td className="break-all">{row.sqlQuery}</Td>
|
||||||
|
</Tr>
|
||||||
|
))}
|
||||||
|
</TBody>
|
||||||
|
</Table>
|
||||||
|
</Card>
|
||||||
|
|
||||||
<Card
|
<Card
|
||||||
className="my-2"
|
className="my-2"
|
||||||
header={translate('::ListForms.ListFormEdit.DatabasePreviewTSQL')}
|
header={translate('::ListForms.ListFormEdit.DatabasePreviewTSQL')}
|
||||||
|
|
@ -105,96 +202,6 @@ function FormTabDatabaseDelete({
|
||||||
</Form>
|
</Form>
|
||||||
)}
|
)}
|
||||||
</Formik>
|
</Formik>
|
||||||
<Card
|
|
||||||
className="my-2"
|
|
||||||
bodyClass="p-0"
|
|
||||||
header={translate('::ListForms.ListFormEdit.DatabaseDeleteFieldsDefaultValues')}
|
|
||||||
headerExtra={translate('::ListForms.ListFormEdit.DatabaseDefaultValuesDescription')}
|
|
||||||
>
|
|
||||||
<Table compact>
|
|
||||||
<THead>
|
|
||||||
<Tr>
|
|
||||||
<Th className="text-center">
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Add"
|
|
||||||
icon={<FaFileMedical />}
|
|
||||||
onClick={async (e) => {
|
|
||||||
e.preventDefault()
|
|
||||||
setData({
|
|
||||||
tabName: ListFormEditTabs.Database.Delete.DeleteFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'create',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index: -1,
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormFieldEdit.FieldName')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.FieldDbType')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.CustomValueType')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.Value')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.SqlQuery')}</Th>
|
|
||||||
</Tr>
|
|
||||||
</THead>
|
|
||||||
<TBody>
|
|
||||||
{initialValues.deleteFieldsDefaultValueDto.map((row: any, index: number) => (
|
|
||||||
<Tr key={row.fieldName}>
|
|
||||||
<Td>
|
|
||||||
<div className="flex-wrap inline-flex xl:flex items-center gap-2">
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Edit"
|
|
||||||
icon={<FaEdit />}
|
|
||||||
onClick={() => {
|
|
||||||
setData({
|
|
||||||
tabName:
|
|
||||||
ListFormEditTabs.Database.Delete.DeleteFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'update',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index,
|
|
||||||
crudValues: initialValues.deleteFieldsDefaultValueDto[index],
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Delete"
|
|
||||||
icon={<FaTrash />}
|
|
||||||
onClick={() => {
|
|
||||||
setData({
|
|
||||||
tabName:
|
|
||||||
ListFormEditTabs.Database.Delete.DeleteFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'delete',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index,
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</Td>
|
|
||||||
<Td>{row.fieldName}</Td>
|
|
||||||
<Td>{dbSourceTypeOptions.find((a: any) => a.value === row.fieldDbType)?.label}</Td>
|
|
||||||
<Td>{FieldCustomValueTypeEnum[row.customValueType]}</Td>
|
|
||||||
<Td>{row.value}</Td>
|
|
||||||
<Td className="break-all">{row.sqlQuery}</Td>
|
|
||||||
</Tr>
|
|
||||||
))}
|
|
||||||
</TBody>
|
|
||||||
</Table>
|
|
||||||
</Card>
|
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ function FormTabDatabaseInsert({
|
||||||
name="insertCommand"
|
name="insertCommand"
|
||||||
placeholder={translate('::ListForms.ListFormEdit.DatabaseInsertCommand')}
|
placeholder={translate('::ListForms.ListFormEdit.DatabaseInsertCommand')}
|
||||||
component={Input}
|
component={Input}
|
||||||
|
textArea={true}
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<Button block variant="solid" loading={isSubmitting}>
|
<Button block variant="solid" loading={isSubmitting}>
|
||||||
|
|
@ -83,6 +84,199 @@ function FormTabDatabaseInsert({
|
||||||
</Button>
|
</Button>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
<Card
|
||||||
|
className="my-2"
|
||||||
|
bodyClass="p-0"
|
||||||
|
header={translate('::ListForms.ListFormEdit.DatabaseInsertFieldsDefaultValues')}
|
||||||
|
headerExtra={translate('::ListForms.ListFormEdit.DatabaseDefaultValuesDescription')}
|
||||||
|
>
|
||||||
|
<Table compact>
|
||||||
|
<THead>
|
||||||
|
<Tr>
|
||||||
|
<Th className="text-center">
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Add"
|
||||||
|
icon={<FaFileMedical />}
|
||||||
|
onClick={async (e) => {
|
||||||
|
e.preventDefault()
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Insert.InsertFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'create',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index: -1,
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormFieldEdit.FieldName')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.FieldDbType')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.CustomValueType')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.Value')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.SqlQuery')}</Th>
|
||||||
|
</Tr>
|
||||||
|
</THead>
|
||||||
|
<TBody>
|
||||||
|
{initialValues.insertFieldsDefaultValueDto.map((row: any, index: number) => (
|
||||||
|
<Tr key={row.fieldName}>
|
||||||
|
<Td>
|
||||||
|
<div className="flex-wrap inline-flex xl:flex items-center gap-2">
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Edit"
|
||||||
|
icon={<FaEdit />}
|
||||||
|
onClick={() => {
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Insert
|
||||||
|
.InsertFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'update',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index,
|
||||||
|
crudValues: initialValues.insertFieldsDefaultValueDto[index],
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Delete"
|
||||||
|
icon={<FaTrash />}
|
||||||
|
onClick={() => {
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Insert
|
||||||
|
.InsertFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'delete',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index,
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Td>
|
||||||
|
<Td>{row.fieldName}</Td>
|
||||||
|
<Td>
|
||||||
|
{dbSourceTypeOptions.find((a: any) => a.value === row.fieldDbType)?.label}
|
||||||
|
</Td>
|
||||||
|
<Td>{FieldCustomValueTypeEnum[row.customValueType]}</Td>
|
||||||
|
<Td>{row.value}</Td>
|
||||||
|
<Td className="break-all">{row.sqlQuery}</Td>
|
||||||
|
</Tr>
|
||||||
|
))}
|
||||||
|
</TBody>
|
||||||
|
</Table>
|
||||||
|
</Card>
|
||||||
|
<Card
|
||||||
|
className="my-2"
|
||||||
|
bodyClass="p-0"
|
||||||
|
header={translate(
|
||||||
|
'::ListForms.ListFormEdit.DatabaseFormDefaultFieldsDefaultValues',
|
||||||
|
)}
|
||||||
|
headerExtra={translate(
|
||||||
|
'::ListForms.ListFormEdit.DatabaseFormDefaultFieldsDefaultValuesDescription',
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<Table compact>
|
||||||
|
<THead>
|
||||||
|
<Tr>
|
||||||
|
<Th className="text-center">
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Add"
|
||||||
|
icon={<FaFileMedical />}
|
||||||
|
onClick={async (e) => {
|
||||||
|
e.preventDefault()
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Insert.FormFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'create',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index: -1,
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormFieldEdit.FieldName')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.FieldDbType')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.CustomValueType')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.Value')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.SqlQuery')}</Th>
|
||||||
|
</Tr>
|
||||||
|
</THead>
|
||||||
|
<TBody>
|
||||||
|
{initialValues.formFieldsDefaultValueDto.map((row: any, index: number) => (
|
||||||
|
<Tr key={row.fieldName}>
|
||||||
|
<Td>
|
||||||
|
<div className="flex-wrap inline-flex xl:flex items-center gap-2">
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Edit"
|
||||||
|
icon={<FaEdit />}
|
||||||
|
onClick={() => {
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Insert.FormFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'update',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index,
|
||||||
|
crudValues: initialValues.formFieldsDefaultValueDto[index],
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Delete"
|
||||||
|
icon={<FaTrash />}
|
||||||
|
onClick={() => {
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Insert.FormFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'delete',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index,
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Td>
|
||||||
|
<Td>{row.fieldName}</Td>
|
||||||
|
<Td>
|
||||||
|
{dbSourceTypeOptions.find((a: any) => a.value === row.fieldDbType)?.label}
|
||||||
|
</Td>
|
||||||
|
<Td>{FieldCustomValueTypeEnum[row.customValueType]}</Td>
|
||||||
|
<Td>{row.value}</Td>
|
||||||
|
<Td className="break-all">{row.sqlQuery}</Td>
|
||||||
|
</Tr>
|
||||||
|
))}
|
||||||
|
</TBody>
|
||||||
|
</Table>
|
||||||
|
</Card>
|
||||||
|
|
||||||
<Card
|
<Card
|
||||||
className="my-2"
|
className="my-2"
|
||||||
header={translate('::ListForms.ListFormEdit.DatabasePreviewTSQL')}
|
header={translate('::ListForms.ListFormEdit.DatabasePreviewTSQL')}
|
||||||
|
|
@ -105,188 +299,6 @@ function FormTabDatabaseInsert({
|
||||||
</Form>
|
</Form>
|
||||||
)}
|
)}
|
||||||
</Formik>
|
</Formik>
|
||||||
<Card
|
|
||||||
className="my-2"
|
|
||||||
bodyClass="p-0"
|
|
||||||
header={translate('::ListForms.ListFormEdit.DatabaseInsertFieldsDefaultValues')}
|
|
||||||
headerExtra={translate(
|
|
||||||
'::ListForms.ListFormEdit.DatabaseDefaultValuesDescription',
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<Table compact>
|
|
||||||
<THead>
|
|
||||||
<Tr>
|
|
||||||
<Th className="text-center">
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Add"
|
|
||||||
icon={<FaFileMedical />}
|
|
||||||
onClick={async (e) => {
|
|
||||||
e.preventDefault()
|
|
||||||
setData({
|
|
||||||
tabName: ListFormEditTabs.Database.Insert.InsertFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'create',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index: -1,
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormFieldEdit.FieldName')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.FieldDbType')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.CustomValueType')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.Value')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.SqlQuery')}</Th>
|
|
||||||
</Tr>
|
|
||||||
</THead>
|
|
||||||
<TBody>
|
|
||||||
{initialValues.insertFieldsDefaultValueDto.map((row: any, index: number) => (
|
|
||||||
<Tr key={row.fieldName}>
|
|
||||||
<Td>
|
|
||||||
<div className="flex-wrap inline-flex xl:flex items-center gap-2">
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Edit"
|
|
||||||
icon={<FaEdit />}
|
|
||||||
onClick={() => {
|
|
||||||
setData({
|
|
||||||
tabName:
|
|
||||||
ListFormEditTabs.Database.Insert.InsertFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'update',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index,
|
|
||||||
crudValues: initialValues.insertFieldsDefaultValueDto[index],
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Delete"
|
|
||||||
icon={<FaTrash />}
|
|
||||||
onClick={() => {
|
|
||||||
setData({
|
|
||||||
tabName:
|
|
||||||
ListFormEditTabs.Database.Insert.InsertFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'delete',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index,
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</Td>
|
|
||||||
<Td>{row.fieldName}</Td>
|
|
||||||
<Td>{dbSourceTypeOptions.find((a: any) => a.value === row.fieldDbType)?.label}</Td>
|
|
||||||
<Td>{FieldCustomValueTypeEnum[row.customValueType]}</Td>
|
|
||||||
<Td>{row.value}</Td>
|
|
||||||
<Td className="break-all">{row.sqlQuery}</Td>
|
|
||||||
</Tr>
|
|
||||||
))}
|
|
||||||
</TBody>
|
|
||||||
</Table>
|
|
||||||
</Card>
|
|
||||||
<Card
|
|
||||||
className="my-2"
|
|
||||||
bodyClass="p-0"
|
|
||||||
header={translate('::ListForms.ListFormEdit.DatabaseFormDefaultFieldsDefaultValues')}
|
|
||||||
headerExtra={translate(
|
|
||||||
'::ListForms.ListFormEdit.DatabaseFormDefaultFieldsDefaultValuesDescription',
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<Table compact>
|
|
||||||
<THead>
|
|
||||||
<Tr>
|
|
||||||
<Th className="text-center">
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Add"
|
|
||||||
icon={<FaFileMedical />}
|
|
||||||
onClick={async (e) => {
|
|
||||||
e.preventDefault()
|
|
||||||
setData({
|
|
||||||
tabName: ListFormEditTabs.Database.Insert.FormFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'create',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index: -1,
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormFieldEdit.FieldName')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.FieldDbType')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.CustomValueType')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.Value')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.SqlQuery')}</Th>
|
|
||||||
</Tr>
|
|
||||||
</THead>
|
|
||||||
<TBody>
|
|
||||||
{initialValues.formFieldsDefaultValueDto.map((row: any, index: number) => (
|
|
||||||
<Tr key={row.fieldName}>
|
|
||||||
<Td>
|
|
||||||
<div className="flex-wrap inline-flex xl:flex items-center gap-2">
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Edit"
|
|
||||||
icon={<FaEdit />}
|
|
||||||
onClick={() => {
|
|
||||||
setData({
|
|
||||||
tabName: ListFormEditTabs.Database.Insert.FormFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'update',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index,
|
|
||||||
crudValues: initialValues.formFieldsDefaultValueDto[index],
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Delete"
|
|
||||||
icon={<FaTrash />}
|
|
||||||
onClick={() => {
|
|
||||||
setData({
|
|
||||||
tabName: ListFormEditTabs.Database.Insert.FormFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'delete',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index,
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</Td>
|
|
||||||
<Td>{row.fieldName}</Td>
|
|
||||||
<Td>{dbSourceTypeOptions.find((a: any) => a.value === row.fieldDbType)?.label}</Td>
|
|
||||||
<Td>{FieldCustomValueTypeEnum[row.customValueType]}</Td>
|
|
||||||
<Td>{row.value}</Td>
|
|
||||||
<Td className="break-all">{row.sqlQuery}</Td>
|
|
||||||
</Tr>
|
|
||||||
))}
|
|
||||||
</TBody>
|
|
||||||
</Table>
|
|
||||||
</Card>
|
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -70,6 +70,106 @@ function FormTabDatabaseSelect({
|
||||||
</Button>
|
</Button>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
<Card
|
||||||
|
className="my-2"
|
||||||
|
bodyClass="p-0"
|
||||||
|
header={translate(
|
||||||
|
'::ListForms.ListFormEdit.DatabaseSelectSelectFieldsDefaultValues',
|
||||||
|
)}
|
||||||
|
headerExtra={translate(
|
||||||
|
'::ListForms.ListFormEdit.DatabaseSelectSelectFieldsDefaultValuesDescription',
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<Table compact>
|
||||||
|
<THead>
|
||||||
|
<Tr>
|
||||||
|
<Th className="text-center">
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Add"
|
||||||
|
icon={<FaFileMedical />}
|
||||||
|
onClick={async (e) => {
|
||||||
|
e.preventDefault()
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Select.SelectFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'create',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index: -1,
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormFieldEdit.FieldName')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.FieldDbType')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.CustomValueType')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.Value')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.SqlQuery')}</Th>
|
||||||
|
</Tr>
|
||||||
|
</THead>
|
||||||
|
<TBody>
|
||||||
|
{initialValues.selectFieldsDefaultValueDto.map((row: any, index: number) => (
|
||||||
|
<Tr key={row.fieldName}>
|
||||||
|
<Td>
|
||||||
|
<div className="flex-wrap inline-flex xl:flex items-center gap-2">
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Edit"
|
||||||
|
icon={<FaEdit />}
|
||||||
|
onClick={() => {
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Select
|
||||||
|
.SelectFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'update',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index,
|
||||||
|
crudValues: initialValues.selectFieldsDefaultValueDto[index],
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Delete"
|
||||||
|
icon={<FaTrash />}
|
||||||
|
onClick={() => {
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Select
|
||||||
|
.SelectFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'delete',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index,
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Td>
|
||||||
|
<Td>{row.fieldName}</Td>
|
||||||
|
<Td>
|
||||||
|
{dbSourceTypeOptions.find((a: any) => a.value === row.fieldDbType)?.label}
|
||||||
|
</Td>
|
||||||
|
<Td>{FieldCustomValueTypeEnum[row.customValueType]}</Td>
|
||||||
|
<Td>{row.value}</Td>
|
||||||
|
<Td className="break-all">{row.sqlQuery}</Td>
|
||||||
|
</Tr>
|
||||||
|
))}
|
||||||
|
</TBody>
|
||||||
|
</Table>
|
||||||
|
</Card>
|
||||||
|
|
||||||
<Card
|
<Card
|
||||||
className="my-2"
|
className="my-2"
|
||||||
header={translate('::ListForms.ListFormEdit.DatabasePreviewTSQL')}
|
header={translate('::ListForms.ListFormEdit.DatabasePreviewTSQL')}
|
||||||
|
|
@ -92,98 +192,6 @@ function FormTabDatabaseSelect({
|
||||||
</Form>
|
</Form>
|
||||||
)}
|
)}
|
||||||
</Formik>
|
</Formik>
|
||||||
<Card
|
|
||||||
className="my-2"
|
|
||||||
bodyClass="p-0"
|
|
||||||
header={translate('::ListForms.ListFormEdit.DatabaseSelectSelectFieldsDefaultValues')}
|
|
||||||
headerExtra={translate(
|
|
||||||
'::ListForms.ListFormEdit.DatabaseSelectSelectFieldsDefaultValuesDescription',
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<Table compact>
|
|
||||||
<THead>
|
|
||||||
<Tr>
|
|
||||||
<Th className="text-center">
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Add"
|
|
||||||
icon={<FaFileMedical />}
|
|
||||||
onClick={async (e) => {
|
|
||||||
e.preventDefault()
|
|
||||||
setData({
|
|
||||||
tabName: ListFormEditTabs.Database.Select.SelectFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'create',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index: -1,
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormFieldEdit.FieldName')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.FieldDbType')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.CustomValueType')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.Value')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.SqlQuery')}</Th>
|
|
||||||
</Tr>
|
|
||||||
</THead>
|
|
||||||
<TBody>
|
|
||||||
{initialValues.selectFieldsDefaultValueDto.map((row: any, index: number) => (
|
|
||||||
<Tr key={row.fieldName}>
|
|
||||||
<Td>
|
|
||||||
<div className="flex-wrap inline-flex xl:flex items-center gap-2">
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Edit"
|
|
||||||
icon={<FaEdit />}
|
|
||||||
onClick={() => {
|
|
||||||
setData({
|
|
||||||
tabName:
|
|
||||||
ListFormEditTabs.Database.Select.SelectFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'update',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index,
|
|
||||||
crudValues: initialValues.selectFieldsDefaultValueDto[index],
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Delete"
|
|
||||||
icon={<FaTrash />}
|
|
||||||
onClick={() => {
|
|
||||||
setData({
|
|
||||||
tabName:
|
|
||||||
ListFormEditTabs.Database.Select.SelectFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'delete',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index,
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</Td>
|
|
||||||
<Td>{row.fieldName}</Td>
|
|
||||||
<Td>{dbSourceTypeOptions.find((a: any) => a.value === row.fieldDbType)?.label}</Td>
|
|
||||||
<Td>{FieldCustomValueTypeEnum[row.customValueType]}</Td>
|
|
||||||
<Td>{row.value}</Td>
|
|
||||||
<Td className="break-all">{row.sqlQuery}</Td>
|
|
||||||
</Tr>
|
|
||||||
))}
|
|
||||||
</TBody>
|
|
||||||
</Table>
|
|
||||||
</Card>
|
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -76,6 +76,7 @@ function FormTabDatabaseUpdate({
|
||||||
name="updateCommand"
|
name="updateCommand"
|
||||||
placeholder={translate('::ListForms.ListFormEdit.DatabaseUpdateCommand')}
|
placeholder={translate('::ListForms.ListFormEdit.DatabaseUpdateCommand')}
|
||||||
component={Input}
|
component={Input}
|
||||||
|
textArea={true}
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
<Button block variant="solid" loading={isSubmitting}>
|
<Button block variant="solid" loading={isSubmitting}>
|
||||||
|
|
@ -83,6 +84,104 @@ function FormTabDatabaseUpdate({
|
||||||
</Button>
|
</Button>
|
||||||
</Card>
|
</Card>
|
||||||
|
|
||||||
|
<Card
|
||||||
|
className="my-2"
|
||||||
|
bodyClass="p-0"
|
||||||
|
header={translate('::ListForms.ListFormEdit.DatabaseUpdateFieldsDefaultValues')}
|
||||||
|
headerExtra={translate(
|
||||||
|
'::ListForms.ListFormEdit.DatabaseUpdateFieldsDefaultValuesDescription',
|
||||||
|
)}
|
||||||
|
>
|
||||||
|
<Table compact>
|
||||||
|
<THead>
|
||||||
|
<Tr>
|
||||||
|
<Th className="text-center">
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Add"
|
||||||
|
icon={<FaFileMedical />}
|
||||||
|
onClick={async (e) => {
|
||||||
|
e.preventDefault()
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Update.UpdateFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'create',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index: -1,
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormFieldEdit.FieldName')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.FieldDbType')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.CustomValueType')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.Value')}</Th>
|
||||||
|
<Th>{translate('::ListForms.ListFormEdit.SqlQuery')}</Th>
|
||||||
|
</Tr>
|
||||||
|
</THead>
|
||||||
|
<TBody>
|
||||||
|
{initialValues.updateFieldsDefaultValueDto.map((row: any, index: number) => (
|
||||||
|
<Tr key={row.fieldName}>
|
||||||
|
<Td>
|
||||||
|
<div className="flex-wrap inline-flex xl:flex items-center gap-2">
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Edit"
|
||||||
|
icon={<FaEdit />}
|
||||||
|
onClick={() => {
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Update
|
||||||
|
.UpdateFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'update',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index,
|
||||||
|
crudValues: initialValues.updateFieldsDefaultValueDto[index],
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
<Button
|
||||||
|
shape="circle"
|
||||||
|
variant="plain"
|
||||||
|
type="button"
|
||||||
|
size="xs"
|
||||||
|
title="Delete"
|
||||||
|
icon={<FaTrash />}
|
||||||
|
onClick={() => {
|
||||||
|
setData({
|
||||||
|
tabName:
|
||||||
|
ListFormEditTabs.Database.Update
|
||||||
|
.UpdateFieldsDefaultValuesJsonRow,
|
||||||
|
operation: 'delete',
|
||||||
|
id: initialValues.id ?? '',
|
||||||
|
index,
|
||||||
|
})
|
||||||
|
setIsOpen(true)
|
||||||
|
}}
|
||||||
|
/>
|
||||||
|
</div>
|
||||||
|
</Td>
|
||||||
|
<Td>{row.fieldName}</Td>
|
||||||
|
<Td>
|
||||||
|
{dbSourceTypeOptions.find((a: any) => a.value === row.fieldDbType)?.label}
|
||||||
|
</Td>
|
||||||
|
<Td>{FieldCustomValueTypeEnum[row.customValueType]}</Td>
|
||||||
|
<Td>{row.value}</Td>
|
||||||
|
<Td className="break-all">{row.sqlQuery}</Td>
|
||||||
|
</Tr>
|
||||||
|
))}
|
||||||
|
</TBody>
|
||||||
|
</Table>
|
||||||
|
</Card>
|
||||||
|
|
||||||
<Card
|
<Card
|
||||||
className="my-2"
|
className="my-2"
|
||||||
header={translate('::ListForms.ListFormEdit.DatabasePreviewTSQL')}
|
header={translate('::ListForms.ListFormEdit.DatabasePreviewTSQL')}
|
||||||
|
|
@ -105,98 +204,6 @@ function FormTabDatabaseUpdate({
|
||||||
</Form>
|
</Form>
|
||||||
)}
|
)}
|
||||||
</Formik>
|
</Formik>
|
||||||
<Card
|
|
||||||
className="my-2"
|
|
||||||
bodyClass="p-0"
|
|
||||||
header={translate('::ListForms.ListFormEdit.DatabaseUpdateFieldsDefaultValues')}
|
|
||||||
headerExtra={translate(
|
|
||||||
'::ListForms.ListFormEdit.DatabaseUpdateFieldsDefaultValuesDescription',
|
|
||||||
)}
|
|
||||||
>
|
|
||||||
<Table compact>
|
|
||||||
<THead>
|
|
||||||
<Tr>
|
|
||||||
<Th className="text-center">
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Add"
|
|
||||||
icon={<FaFileMedical />}
|
|
||||||
onClick={async (e) => {
|
|
||||||
e.preventDefault()
|
|
||||||
setData({
|
|
||||||
tabName: ListFormEditTabs.Database.Update.UpdateFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'create',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index: -1,
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormFieldEdit.FieldName')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.FieldDbType')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.CustomValueType')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.Value')}</Th>
|
|
||||||
<Th>{translate('::ListForms.ListFormEdit.SqlQuery')}</Th>
|
|
||||||
</Tr>
|
|
||||||
</THead>
|
|
||||||
<TBody>
|
|
||||||
{initialValues.updateFieldsDefaultValueDto.map((row: any, index: number) => (
|
|
||||||
<Tr key={row.fieldName}>
|
|
||||||
<Td>
|
|
||||||
<div className="flex-wrap inline-flex xl:flex items-center gap-2">
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Edit"
|
|
||||||
icon={<FaEdit />}
|
|
||||||
onClick={() => {
|
|
||||||
setData({
|
|
||||||
tabName:
|
|
||||||
ListFormEditTabs.Database.Update.UpdateFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'update',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index,
|
|
||||||
crudValues: initialValues.updateFieldsDefaultValueDto[index],
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
<Button
|
|
||||||
shape="circle"
|
|
||||||
variant="plain"
|
|
||||||
type="button"
|
|
||||||
size="xs"
|
|
||||||
title="Delete"
|
|
||||||
icon={<FaTrash />}
|
|
||||||
onClick={() => {
|
|
||||||
setData({
|
|
||||||
tabName:
|
|
||||||
ListFormEditTabs.Database.Update.UpdateFieldsDefaultValuesJsonRow,
|
|
||||||
operation: 'delete',
|
|
||||||
id: initialValues.id ?? '',
|
|
||||||
index,
|
|
||||||
})
|
|
||||||
setIsOpen(true)
|
|
||||||
}}
|
|
||||||
/>
|
|
||||||
</div>
|
|
||||||
</Td>
|
|
||||||
<Td>{row.fieldName}</Td>
|
|
||||||
<Td>{dbSourceTypeOptions.find((a: any) => a.value === row.fieldDbType)?.label}</Td>
|
|
||||||
<Td>{FieldCustomValueTypeEnum[row.customValueType]}</Td>
|
|
||||||
<Td>{row.value}</Td>
|
|
||||||
<Td className="break-all">{row.sqlQuery}</Td>
|
|
||||||
</Tr>
|
|
||||||
))}
|
|
||||||
</TBody>
|
|
||||||
</Table>
|
|
||||||
</Card>
|
|
||||||
</Container>
|
</Container>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -153,7 +153,7 @@ function JsonRowOpDialogDatabase({
|
||||||
type="text"
|
type="text"
|
||||||
autoComplete="off"
|
autoComplete="off"
|
||||||
name="fieldName"
|
name="fieldName"
|
||||||
placeholder={translate('::ListForms.ListFormEdit.FieldName')}
|
placeholder={translate('::ListForms.ListFormFieldEdit.FieldName')}
|
||||||
component={Input}
|
component={Input}
|
||||||
/>
|
/>
|
||||||
</FormItem>
|
</FormItem>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue