Procházet zdrojové kódy

fix(bugs): fix bug

lind před 3 roky
rodič
revize
2f17369c0a

+ 6 - 0
src/components/SearchComponent/index.tsx

@@ -436,6 +436,12 @@ const SearchComponent = <T extends Record<string, any>>(props: Props<T>) => {
     uiParamRef.current = ui2Server(log);
     uiParamRef.current = ui2Server(log);
     const _expand =
     const _expand =
       (log.terms1 && log.terms1?.length > 1) || (log.terms2 && log.terms2?.length > 1);
       (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) {
     if (_expand) {
       setExpand(false);
       setExpand(false);
     }
     }

+ 1 - 1
src/pages/Northbound/DuerOS/Detail/index.tsx

@@ -647,7 +647,7 @@ const Save = () => {
     history.back();
     history.back();
   };
   };
   return (
   return (
-    <PageContainer className={'page-title-show'}>
+    <PageContainer>
       <Card>
       <Card>
         <Row>
         <Row>
           <Col span={12}>
           <Col span={12}>

+ 4 - 3
src/pages/device/components/Metadata/Base/index.tsx

@@ -156,9 +156,9 @@ const BaseMetadata = observer((props: Props) => {
         columns={MetadataMapping.get(type)!.concat(actions)}
         columns={MetadataMapping.get(type)!.concat(actions)}
         rowKey="id"
         rowKey="id"
         search={false}
         search={false}
-        pagination={{
-          pageSize: 5,
-        }}
+        // pagination={{
+        //   pageSize: 5,
+        // }}
         options={{
         options={{
           density: false,
           density: false,
           fullScreen: false,
           fullScreen: false,
@@ -168,6 +168,7 @@ const BaseMetadata = observer((props: Props) => {
         }}
         }}
         toolbar={{
         toolbar={{
           search: {
           search: {
+            placeholder: '请输入标识',
             onSearch: handleSearch,
             onSearch: handleSearch,
           },
           },
         }}
         }}

+ 4 - 1
src/pages/link/Type/Detail/index.tsx

@@ -142,6 +142,9 @@ const Save = observer(() => {
               });
               });
             } else {
             } else {
               // 独立配置
               // 独立配置
+              f5.setFieldState('grid.cluster.cluster', (state) => {
+                state.value = [{}];
+              });
             }
             }
           });
           });
           onFieldValueChange('grid.cluster.cluster.*.layout2.serverId', async (field, f3) => {
           onFieldValueChange('grid.cluster.cluster.*.layout2.serverId', async (field, f3) => {
@@ -229,7 +232,7 @@ const Save = observer(() => {
           layout: 'vertical',
           layout: 'vertical',
         },
         },
         'x-component-props': {
         'x-component-props': {
-          placeholder: '请输入节点名称',
+          placeholder: '请选择节点名称',
         },
         },
         'x-reactions': [
         'x-reactions': [
           {
           {

+ 1 - 1
src/pages/notice/Config/Detail/index.tsx

@@ -539,7 +539,7 @@ const Detail = observer(() => {
                   add: {
                   add: {
                     type: 'void',
                     type: 'void',
                     'x-component': 'ArrayTable.Addition',
                     'x-component': 'ArrayTable.Addition',
-                    title: '添加条目',
+                    title: '添加',
                   },
                   },
                 },
                 },
               },
               },

+ 1 - 1
src/pages/notice/Config/Log/index.tsx

@@ -81,7 +81,7 @@ const Log = observer(() => {
       footer={null}
       footer={null}
       onCancel={() => (state.log = false)}
       onCancel={() => (state.log = false)}
       title="通知记录"
       title="通知记录"
-      width="50vw"
+      width="65vw"
       visible={state.log && !!state.current?.id}
       visible={state.log && !!state.current?.id}
     >
     >
       <SearchComponent
       <SearchComponent

+ 6 - 4
src/pages/notice/Template/Log/index.tsx

@@ -84,7 +84,7 @@ const Log = observer(() => {
       destroyOnClose
       destroyOnClose
       onCancel={() => (state.log = false)}
       onCancel={() => (state.log = false)}
       title="通知记录"
       title="通知记录"
-      width={'50vw'}
+      width={'65vw'}
       visible={state.log && !!state.current?.id}
       visible={state.log && !!state.current?.id}
     >
     >
       <SearchComponent
       <SearchComponent
@@ -99,9 +99,11 @@ const Log = observer(() => {
       />
       />
       <ProTable<LogItem>
       <ProTable<LogItem>
         search={false}
         search={false}
-        pagination={{
-          pageSize: 5,
-        }}
+        pagination={
+          {
+            // pageSize: 5,
+          }
+        }
         params={param}
         params={param}
         columns={columns}
         columns={columns}
         request={async (params) => service.getHistoryLog(state.current?.id || '', params)}
         request={async (params) => service.getHistoryLog(state.current?.id || '', params)}