瀏覽代碼

异常状态页面修改

shaogen1995 2 月之前
父節點
當前提交
ede0102d86
共有 3 個文件被更改,包括 13 次插入4 次删除
  1. 1 1
      src/components/MyTable/index.tsx
  2. 3 0
      src/components/NoPower/index.module.scss
  3. 9 3
      src/components/NoPower/index.tsx

+ 1 - 1
src/components/MyTable/index.tsx

@@ -298,7 +298,7 @@ const MyTable = forwardRef<MyTableMethods, MyTableProps>(
             emptyText: (
               <div
                 className='NODATA'
-                style={{ height: yHeight ? yHeight : '', opacity: isLoding ? '1' : '0' }}
+                style={{ height: yHeight ? yHeight : 500, opacity: isLoding ? '1' : '0' }}
               >
                 <img src={baseURL + `/baseData/staImg/build.png`} alt='' />
                 <p>暂无相关搜索结果,请更换关键字搜索</p>

+ 3 - 0
src/components/NoPower/index.module.scss

@@ -10,6 +10,9 @@
   padding-bottom: 20px;
 
   :global {
+    img {
+      width: 300px;
+    }
     p {
       margin-bottom: 10px;
     }

+ 9 - 3
src/components/NoPower/index.tsx

@@ -3,11 +3,11 @@ import styles from './index.module.scss'
 import { baseURL } from '@/utils/http'
 
 const objData = {
-  // 404
+  // 500
   1: {
     txt1: '抱歉,系统错误,',
     txt2: '您可以选择尝试清除缓存或联系管理员',
-    imgName: '404'
+    imgName: '500'
   },
 
   // 网络错误
@@ -20,7 +20,7 @@ const objData = {
   3: {
     txt1: '正在建设中,敬请期待',
     txt2: '',
-    imgName: 'build'
+    imgName: 'isBuild'
   },
   // 查询为空
   4: {
@@ -33,6 +33,12 @@ const objData = {
     txt1: '暂无相关内容,请退回上一页',
     txt2: '',
     imgName: 'null'
+  },
+  // 404
+  6: {
+    txt1: '抱歉,系统错误,',
+    txt2: '您可以选择尝试清除缓存或联系管理员',
+    imgName: '404'
   }
 }