Просмотр исходного кода

update: gs错误日志接口增加字段

xyh 2 лет назад
Родитель
Сommit
b903c58a4a

+ 1 - 0
packages/app/src/models/request/queryList.ts

@@ -170,6 +170,7 @@ export type GetGSErrorLogListParams = {
   dataVal: string;
   /** 请求类型 */
   type: string;
+  transmissionType: '1',
 } & ListParams;
 
 /** 其他入库 */

+ 1 - 0
packages/app/src/pages/gs-error-log/context.ts

@@ -14,5 +14,6 @@ export const contextState: OriginalListParams<GetGSErrorLogListParams> = {
   errorInfo: '',
   dataVal: '',
   type: '',
+  transmissionType: '1' as const,
 };
 export const context = createTableSearchContext(contextState);

+ 2 - 5
packages/app/src/pages/gs-error-log/filter/index.tsx

@@ -5,7 +5,7 @@ import {
   useTableSearchToolEvents,
 } from '@hooks';
 import {FC} from 'react';
-import {context, searchContext} from '../context';
+import {context, contextState, searchContext} from '../context';
 import {Card} from 'antd';
 import {
   FilterButtonGroup,
@@ -17,10 +17,7 @@ import {
 const Filter: FC = function() {
   const [fields, {onChange, resetState}] = useFilterField(
     {
-      url: '',
-      errorInfo: '',
-      dataVal: '',
-      type: '',
+      ...contextState,
     },
     true,
   );

+ 1 - 1
packages/app/src/utils/constants.ts

@@ -32,7 +32,7 @@ export const MODAL_PAGE_SIZE_LIST = ['5', ...PAGE_SIZE_LIST];
 /** 请求域名 */
 export const NETWORK_URL
   = process.env.NODE_ENV === 'development'
-    ? 'http://192.168.0.142:9560'
+    ? 'http://192.168.0.147:9560'
     : 'http://10.2.111.91:9560';
 export const E2E_NETWORK_URL = 'http://e2e.test.cn';
 /** 导出错误提示 */