Skip to content

Commit

Permalink
Merge branch 'dev-4.2.4' of https://code.alipay.com/oceanbase/oceanba…
Browse files Browse the repository at this point in the history
…se-developer-center into dev-4.2.4
  • Loading branch information
HSunboy committed Mar 5, 2024
2 parents 0dcd744 + 5bd5724 commit a87f5e4
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
10 changes: 7 additions & 3 deletions src/component/Task/PartitionTask/CreateModal/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,13 +143,17 @@ const CreateModal: React.FC<IProps> = inject('modalStore')(
__id: index,
containsCreateStrategy,
containsDropStrategy,
strategies: getStrategyByConfig(config),
strategies: [],
tableName,
partitionMode,
option: {
partitionKeyConfigs: partition.partitionOption.columnNames.map((name) => ({
partitionKeyConfigs: partition.partitionOption?.columnNames?.map((name) => ({
name,
})),
})) ?? [
{
name: partition.partitionOption?.expression,
},
],
},
};
}),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ const ConfigDrawer: React.FC<IProps> = (props) => {
partitionKeyInvoker: isDateType
? PARTITION_KEY_INVOKER.TIME_INCREASING_GENERATOR
: PARTITION_KEY_INVOKER.CUSTOM_GENERATOR,
...item.option.partitionKeyConfigs[index],
...item.option.partitionKeyConfigs?.[index],
type,
};
}),
Expand Down Expand Up @@ -345,8 +345,10 @@ const ConfigDrawer: React.FC<IProps> = (props) => {
formData.template.partitionNameInvoker =
PARTITION_NAME_INVOKER.CUSTOM_PARTITION_NAME_GENERATOR;
formData.template.partitionNameInvokerParameters = {
generateExpr,
intervalGenerateExpr,
partitionNameGeneratorConfig: {
generateExpr,
intervalGenerateExpr,
},
};
}

Expand Down Expand Up @@ -544,7 +546,9 @@ const ConfigDrawer: React.FC<IProps> = (props) => {
id: 'src.component.Task.component.PartitionPolicyFormTable.D50C1358',
}) /*"分区类型"*/
}
>{`${tableLabels}${moreText}`}</Descriptions.Item>
>
Range
</Descriptions.Item>
</Descriptions>
<Form.Item
name="strategies"
Expand Down
10 changes: 2 additions & 8 deletions src/component/Task/component/PartitionPolicyFormTable/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -131,13 +131,7 @@ const PartitionPolicyFormTable: React.FC<IProps> = (props) => {
<div className={styles.rangConfig}>
{label?.length ? (
<Space>
<span>
{
formatMessage({
id: 'src.component.Task.component.PartitionPolicyFormTable.92C4082E' /*已设置:&nbsp;*/,
}) /* 已设置:&nbsp; */
}
</span>
<span>已设置:</span>
<span>{label}</span>
</Space>
) : (
Expand Down Expand Up @@ -178,7 +172,7 @@ const PartitionPolicyFormTable: React.FC<IProps> = (props) => {
function handleFilter(data: ITableConfig[]) {
const { tableName } = filters ?? {};
return data
?.filter((item) => (isOnlyNoSetTable ? !item?.option : true))
?.filter((item) => (isOnlyNoSetTable ? !item?.strategies?.length : true))
?.filter((item) => {
return tableName?.[0] ? item.tableName.indexOf(tableName[0]) > -1 : true;
});
Expand Down

0 comments on commit a87f5e4

Please sign in to comment.