@@ -436,6 +436,12 @@ const SearchComponent = <T extends Record<string, any>>(props: Props<T>) => {
uiParamRef.current = ui2Server(log);
const _expand =
(log.terms1 && log.terms1?.length > 1) || (log.terms2 && log.terms2?.length > 1);
+ console.log(
+ _expand,
+ '展开',
+ log,
+ (log.terms1 && log.terms1?.length > 1) || (log.terms2 && log.terms2?.length > 1),
+ );
if (_expand) {
setExpand(false);
}
@@ -647,7 +647,7 @@ const Save = () => {
history.back();
};
return (
- <PageContainer className={'page-title-show'}>
+ <PageContainer>
<Card>
<Row>
<Col span={12}>
@@ -156,9 +156,9 @@ const BaseMetadata = observer((props: Props) => {
columns={MetadataMapping.get(type)!.concat(actions)}
rowKey="id"
search={false}
- pagination={{
- pageSize: 5,
- }}
+ // pagination={{
+ // pageSize: 5,
+ // }}
options={{
density: false,
fullScreen: false,
@@ -168,6 +168,7 @@ const BaseMetadata = observer((props: Props) => {
}}
toolbar={{
search: {
+ placeholder: '请输入标识',
onSearch: handleSearch,
},
@@ -142,6 +142,9 @@ const Save = observer(() => {
});
} else {
// 独立配置
+ f5.setFieldState('grid.cluster.cluster', (state) => {
+ state.value = [{}];
+ });
onFieldValueChange('grid.cluster.cluster.*.layout2.serverId', async (field, f3) => {
@@ -229,7 +232,7 @@ const Save = observer(() => {
layout: 'vertical',
'x-component-props': {
- placeholder: '请输入节点名称',
+ placeholder: '请选择节点名称',
'x-reactions': [
{
@@ -539,7 +539,7 @@ const Detail = observer(() => {
add: {
type: 'void',
'x-component': 'ArrayTable.Addition',
- title: '添加条目',
+ title: '添加',
@@ -81,7 +81,7 @@ const Log = observer(() => {
footer={null}
onCancel={() => (state.log = false)}
title="通知记录"
- width="50vw"
+ width="65vw"
visible={state.log && !!state.current?.id}
>
<SearchComponent
@@ -84,7 +84,7 @@ const Log = observer(() => {
destroyOnClose
- width={'50vw'}
+ width={'65vw'}
@@ -99,9 +99,11 @@ const Log = observer(() => {
/>
<ProTable<LogItem>
+ pagination={
+ {
+ }
params={param}
columns={columns}
request={async (params) => service.getHistoryLog(state.current?.id || '', params)}