Jelajahi Sumber

样式调整

shaogen1995 2 hari lalu
induk
melakukan
247a9834e2

+ 5 - 4
README.md

@@ -1,9 +1,10 @@
 1.使用 yarn。 npm 有问题
 1.使用 yarn。 npm 有问题
+node 版本:24.12.0(如果 npm run build 报错,使用 22.18.0)
 
 
-2.测试后端文档地址:https://sit-jiningbwg.4dage.com/api/doc.html#/home
+2.测试后端文档地址:xxxx
 
 
-3.测试堡垒机位置:227/data/data/museum_neimenggu_jining_storage_data
+3.测试堡垒机位置:xxxxx
 
 
-4:测试网址:https://sit-jiningbwg.4dage.com/backstage
+4:测试网址:xxxx
 
 
-5:蓝湖地址:https://lanhuapp.com/web/#/item/project/product?tid=de3e5e3e-a489-4b19-862a-7c87ce113467&pid=b9372812-c1fc-4468-b4df-66d479852d37&image_id=64607cd0-37bc-4303-bd30-18ed52cc6b0d&docId=64607cd0-37bc-4303-bd30-18ed52cc6b0d&docType=axure&versionId=002aa9ce-c05b-489d-9908-d2df106c9942&pageId=94d8a5537a30480f93582ce01f79905c&parentId=6d680122-8ca9-4720-b76b-75e22561a31c&share_type=quickShare
+5:蓝湖地址:https://lanhuapp.com/web/#/item/project/product?tid=de3e5e3e-a489-4b19-862a-7c87ce113467&pid=bee8cc26-6a17-4b77-8e80-45b03b05465a&image_id=a4256a90-52f3-41bc-acb3-6ae1344fa1c2&docId=a4256a90-52f3-41bc-acb3-6ae1344fa1c2&docType=axure&versionId=77cd75fb-b6af-43d6-b5e2-11d3ac67d9b5&pageId=2fe0d9a1b6a144c1b199ed14c162aa98&parentId=8f795cc5-2462-4553-acc4-02267adcff9a&share_type=quickShare

+ 0 - 1
src/App.tsx

@@ -1,4 +1,3 @@
-import '@/assets/styles/base.css'
 // 关于路由
 // 关于路由
 import React from 'react'
 import React from 'react'
 import { Router, Route, Switch } from 'react-router-dom'
 import { Router, Route, Switch } from 'react-router-dom'

TEMPAT SAMPAH
src/assets/img/Union.png


TEMPAT SAMPAH
src/assets/img/UnionNo.png


TEMPAT SAMPAH
src/assets/img/bg.jpg


TEMPAT SAMPAH
src/assets/img/bgC.jpg


TEMPAT SAMPAH
src/assets/img/cBac.png


TEMPAT SAMPAH
src/assets/img/layAc.png


TEMPAT SAMPAH
src/assets/img/layLogo.png


TEMPAT SAMPAH
src/assets/img/layoutBj.png


TEMPAT SAMPAH
src/assets/img/loginBj.png


TEMPAT SAMPAH
src/assets/img/loginBtn.png


TEMPAT SAMPAH
src/assets/img/loginTit.png


TEMPAT SAMPAH
src/assets/img/logo.png


TEMPAT SAMPAH
src/assets/img/logo2.png


+ 33 - 20
src/assets/styles/base.css

@@ -7,10 +7,18 @@ html {
   height: 100%;
   height: 100%;
   font-size: 14px;
   font-size: 14px;
 }
 }
+/* 主题色 */
+:root {
+  --themeColor: #002c15;
+  --themeColor2: #fddb77;
+  --boxBcaColor: #f7efed;
+}
+
 body {
 body {
-  font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB', 'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
+  font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB',
+    'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
   height: 100%;
   height: 100%;
-  color: black;
+  color: var(--themeColor) !important;
 }
 }
 i {
 i {
   font-style: normal;
   font-style: normal;
@@ -33,11 +41,7 @@ textarea {
   resize: none !important;
   resize: none !important;
   min-height: 100px !important;
   min-height: 100px !important;
 }
 }
-/* 主题色 */
-:root {
-  --themeColor: #b02b23;
-  --themeColor2: #f7c481;
-}
+
 /* 找不到页面 */
 /* 找不到页面 */
 .noFindPage {
 .noFindPage {
   opacity: 0;
   opacity: 0;
@@ -68,7 +72,6 @@ textarea {
   /* antd分页器样式 */
   /* antd分页器样式 */
   /* 表格的图片居中 */
   /* 表格的图片居中 */
   /* antd图片预览组件 */
   /* antd图片预览组件 */
-  /* antd表格居中 */
 }
 }
 #root a {
 #root a {
   text-decoration: none;
   text-decoration: none;
@@ -107,9 +110,6 @@ textarea {
 #root .ant-image {
 #root .ant-image {
   display: none;
   display: none;
 }
 }
-#root .ant-table-cell {
-  text-align: center !important;
-}
 #root #A2Table3 .ant-table-row-expand-icon {
 #root #A2Table3 .ant-table-row-expand-icon {
   background-color: var(--themeColor);
   background-color: var(--themeColor);
   color: #fff;
   color: #fff;
@@ -135,20 +135,20 @@ textarea {
   font-weight: 700;
   font-weight: 700;
   position: absolute;
   position: absolute;
   z-index: 11;
   z-index: 11;
-  top: -56px;
+  top: -73px;
   left: -18px;
   left: -18px;
   padding-left: 40px;
   padding-left: 40px;
-  color: var(--themeColor);
+  color: var(--themeColor2);
+  text-shadow: 1px 1px 1px black;
+  letter-spacing: 2px;
 }
 }
 .pageTitle::before {
 .pageTitle::before {
   position: absolute;
   position: absolute;
-  left: 20px;
-  top: 50%;
-  transform: translateY(-50%);
-  content: '';
-  width: 6px;
-  height: 20px;
-  background-color: var(--themeColor);
+  left: 0px;
+  content: '|';
+  font-size: 20px;
+  font-weight: 700;
+  top: -3px;
 }
 }
 .mySorrl::-webkit-scrollbar {
 .mySorrl::-webkit-scrollbar {
   /*滚动条整体样式*/
   /*滚动条整体样式*/
@@ -177,3 +177,16 @@ textarea {
   height: 100%;
   height: 100%;
   text-align: center;
   text-align: center;
 }
 }
+.ant-table-body {
+  background-color: var(--boxBcaColor) !important;
+}
+/* antd表格居中 */
+.ant-table-cell {
+  text-align: center !important;
+}
+.ant-table-header .ant-table-cell {
+  color: var(--themeColor) !important;
+}
+.ant-table-body .ant-table-cell {
+  border-color: #ccc !important;
+}

+ 35 - 18
src/assets/styles/base.less

@@ -14,7 +14,7 @@ body {
   font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB',
   font: 1em/1.4 'Microsoft Yahei', 'PingFang SC', 'Avenir', 'Segoe UI', 'Hiragino Sans GB',
     'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
     'STHeiti', 'Microsoft Sans Serif', 'WenQuanYi Micro Hei', sans-serif;
   height: 100%;
   height: 100%;
-  color: black;
+  color: #fff !important;
 }
 }
 
 
 i {
 i {
@@ -45,8 +45,9 @@ textarea {
 
 
 /* 主题色 */
 /* 主题色 */
 :root {
 :root {
-  --themeColor: #b02b23;
-  --themeColor2: #f7c481;
+  --themeColor: #002c15;
+  --themeColor2: #fddb77;
+  --boxBcaColor: #f7efed;
 }
 }
 
 
 /* 找不到页面 */
 /* 找不到页面 */
@@ -191,12 +192,6 @@ textarea {
     display: none;
     display: none;
   }
   }
 
 
-  /* antd表格居中 */
-
-  .ant-table-cell {
-    text-align: center !important;
-  }
-
   // 树型 表格 定制化
   // 树型 表格 定制化
   #A2Table3 {
   #A2Table3 {
     .ant-table-row-expand-icon {
     .ant-table-row-expand-icon {
@@ -233,20 +228,20 @@ textarea {
   font-weight: 700;
   font-weight: 700;
   position: absolute;
   position: absolute;
   z-index: 11;
   z-index: 11;
-  top: -56px;
+  top: -73px;
   left: -18px;
   left: -18px;
   padding-left: 40px;
   padding-left: 40px;
-  color: var(--themeColor);
+  color: var(--themeColor2);
+  text-shadow: 1px 1px 1px black;
+  letter-spacing: 2px;
 
 
   &::before {
   &::before {
     position: absolute;
     position: absolute;
-    left: 20px;
-    top: 50%;
-    transform: translateY(-50%);
-    content: '';
-    width: 6px;
-    height: 20px;
-    background-color: var(--themeColor);
+    left: 0px;
+    content: '|';
+    font-size: 20px;
+    font-weight: 700;
+    top: -3px;
   }
   }
 }
 }
 
 
@@ -289,3 +284,25 @@ textarea {
   height: 100%;
   height: 100%;
   text-align: center;
   text-align: center;
 }
 }
+
+// --------关于表格
+.ant-table-body {
+  background-color: var(--boxBcaColor) !important;
+}
+/* antd表格居中 */
+
+.ant-table-cell {
+  text-align: center !important;
+}
+
+.ant-table-header {
+  .ant-table-cell {
+    color: var(--themeColor) !important;
+  }
+}
+
+.ant-table-body {
+  .ant-table-cell {
+    border-color: #ccc !important;
+  }
+}

+ 1 - 1
src/components/SpinLodingSon/index.module.scss

@@ -1,7 +1,7 @@
 .SpinLodingSon {
 .SpinLodingSon {
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
-  background-color: #fff;
+  // background-color: #fff;
   border-radius: 10px;
   border-radius: 10px;
   display: flex;
   display: flex;
   justify-content: center;
   justify-content: center;

+ 2 - 1
src/index.tsx

@@ -1,4 +1,5 @@
 // import 'default-passive-events';
 // import 'default-passive-events';
+import '@/assets/styles/base.css'
 
 
 import App from './App'
 import App from './App'
 import store from './store/index'
 import store from './store/index'
@@ -22,7 +23,7 @@ root.render(
     locale={locale}
     locale={locale}
     theme={{
     theme={{
       token: {
       token: {
-        colorPrimary: '#b02b23'
+        colorPrimary: '#002c15'
       }
       }
     }}
     }}
   >
   >

+ 10 - 0
src/pages/Layout/data.ts

@@ -6,6 +6,7 @@ const tabLeftArr: RouterType = [
   {
   {
     id: 1,
     id: 1,
     name: '工作台',
     name: '工作台',
+    show: true,
     son: [
     son: [
       {
       {
         id: 100,
         id: 100,
@@ -37,6 +38,7 @@ const tabLeftArr: RouterType = [
   {
   {
     id: 2,
     id: 2,
     name: '入藏管理',
     name: '入藏管理',
+    show: true,
     son: [
     son: [
       {
       {
         id: 100,
         id: 100,
@@ -68,6 +70,7 @@ const tabLeftArr: RouterType = [
   {
   {
     id: 3,
     id: 3,
     name: '藏品台账',
     name: '藏品台账',
+    show: true,
     son: [
     son: [
       {
       {
         id: 100,
         id: 100,
@@ -98,6 +101,7 @@ const tabLeftArr: RouterType = [
   {
   {
     id: 4,
     id: 4,
     name: '藏品管理',
     name: '藏品管理',
+    show: true,
     son: [
     son: [
       {
       {
         id: 100,
         id: 100,
@@ -128,6 +132,7 @@ const tabLeftArr: RouterType = [
   {
   {
     id: 5,
     id: 5,
     name: '文创管理',
     name: '文创管理',
+    show: true,
     son: [
     son: [
       {
       {
         id: 100,
         id: 100,
@@ -146,6 +151,7 @@ const tabLeftArr: RouterType = [
   {
   {
     id: 6,
     id: 6,
     name: '库房管理',
     name: '库房管理',
+    show: true,
     son: [
     son: [
       {
       {
         id: 100,
         id: 100,
@@ -183,6 +189,7 @@ const tabLeftArr: RouterType = [
   {
   {
     id: 7,
     id: 7,
     name: '藏品维护',
     name: '藏品维护',
+    show: true,
     son: [
     son: [
       {
       {
         id: 100,
         id: 100,
@@ -207,6 +214,7 @@ const tabLeftArr: RouterType = [
   {
   {
     id: 8,
     id: 8,
     name: '展品管理',
     name: '展品管理',
+    show: true,
     son: [
     son: [
       {
       {
         id: 100,
         id: 100,
@@ -220,6 +228,7 @@ const tabLeftArr: RouterType = [
   {
   {
     id: 9,
     id: 9,
     name: '系统管理',
     name: '系统管理',
+    show: true,
     son: [
     son: [
       {
       {
         id: 100,
         id: 100,
@@ -285,4 +294,5 @@ const tabLeftArr: RouterType = [
 export default tabLeftArr
 export default tabLeftArr
 
 
 // 里面的页面,不是左边的tab栏
 // 里面的页面,不是左边的tab栏
+// 这里的id要和tab栏的id相同,不然没有权限进入页面
 export const routerSon: RouterTypeRow[] = []
 export const routerSon: RouterTypeRow[] = []

+ 71 - 23
src/pages/Layout/index.module.scss

@@ -2,61 +2,105 @@
   width: 100%;
   width: 100%;
   height: 100%;
   height: 100%;
   display: flex;
   display: flex;
+  background-image: url('../../assets/img/bgC.jpg');
+  background-size: 100% 100%;
 
 
   :global {
   :global {
     .layoutLeft {
     .layoutLeft {
       position: relative;
       position: relative;
       width: 220px;
       width: 220px;
       height: 100%;
       height: 100%;
-      background-image: url('../../assets/img/layoutBj.png');
-      background-size: 100% 100%;
 
 
       .layoutLeftTop {
       .layoutLeftTop {
         text-align: center;
         text-align: center;
         padding: 20px 20px 0px;
         padding: 20px 20px 0px;
+        .logo {
+          width: 150px;
+          position: relative;
+          top: -5px;
+        }
       }
       }
 
 
       .layoutLeftMain {
       .layoutLeftMain {
-        height: calc(100% - 67px);
+        background-image: linear-gradient(rgba(27, 27, 28, 0.7), rgba(0, 0, 0, 0.3));
+        margin-top: 27px;
+        height: calc(100% - 80px);
         overflow-y: auto;
         overflow-y: auto;
         padding-bottom: 10px;
         padding-bottom: 10px;
+        padding: 30px 0 0;
+        backdrop-filter: blur(4px);
+
         &::-webkit-scrollbar-thumb {
         &::-webkit-scrollbar-thumb {
-          background: var(--themeColor2);
+          background: var(--themeColor);
         }
         }
 
 
         .layoutLRowBox {
         .layoutLRowBox {
+          margin-bottom: 20px;
           .layoutLRowBoxTxt {
           .layoutLRowBoxTxt {
-            font-size: 18px;
-            font-weight: 700;
-            height: 40px;
-            line-height: 40px;
-            padding-left: 40px;
+            padding-left: 60px;
+            cursor: pointer;
+            margin: 0px auto;
+            width: 200px;
+            font-size: 16px;
+            height: 48px;
+            line-height: 48px;
             color: #fff;
             color: #fff;
+            background-image: url('../../assets/img/UnionNo.png');
+            background-size: 100% 100%;
+            position: relative;
             // opacity: .8;
             // opacity: .8;
+            & > span {
+              position: absolute;
+              top: 2px;
+              right: 36px;
+              display: inline-block;
+              margin-left: 20px;
+              transition: all 0.3s;
+            }
+            .layoutLRowBoxTxtIcon {
+              transform: rotate(180deg);
+            }
+          }
+          .layoutLRowBoxTxtShow {
+            background-image: url('../../assets/img/Union.png');
           }
           }
 
 
           .layoutLRowBoxRow {
           .layoutLRowBoxRow {
-            opacity: 1;
+            padding-left: 75px;
+            width: 200px;
+            margin: 3px auto;
+            opacity: 0.8;
             color: #fff;
             color: #fff;
-            text-align: center;
             cursor: pointer;
             cursor: pointer;
-
+            transition: all 0.3s;
             font-size: 16px;
             font-size: 16px;
             height: 40px;
             height: 40px;
             line-height: 40px;
             line-height: 40px;
+            background-color: #3e3129;
+            overflow: hidden;
+            position: relative;
 
 
             &:hover {
             &:hover {
-              background-image: url('../../assets/img/layAc.png');
-              background-size: 100% 100%;
-              color: var(--themeColor);
+              opacity: 1;
+              background-color: #ab925b;
+            }
+            & > span {
+              position: absolute;
+              right: 20px;
+              display: inline-block;
+              margin-left: 20px;
+              transition: all 0.3s;
+              font-size: 14px;
             }
             }
           }
           }
+          .layoutLRowBoxRowHide {
+            height: 0;
+            margin: 0 auto;
+          }
 
 
           .active {
           .active {
-            // pointer-events: none;
-            background-image: url('../../assets/img/layAc.png');
-            background-size: 100% 100%;
-            color: var(--themeColor);
+            opacity: 1;
+            background-color: #ab925b;
           }
           }
         }
         }
       }
       }
@@ -90,12 +134,12 @@
             height: 60px;
             height: 60px;
             display: flex;
             display: flex;
             align-items: center;
             align-items: center;
-            color: var(--themeColor);
+            color: #fff;
           }
           }
 
 
           .userInco {
           .userInco {
             margin-left: 10px;
             margin-left: 10px;
-            color: var(--themeColor);
+            color: #fff;
           }
           }
 
 
           .userInco1 {
           .userInco1 {
@@ -140,14 +184,18 @@
 
 
       .layoutRightMain {
       .layoutRightMain {
         height: calc(100% - 60px);
         height: calc(100% - 60px);
-        padding: 15px;
-        background-color: #ecedf1;
+        padding: 15px 15px 0;
+        margin-top: 20px;
+        height: calc(100% - 80px);
 
 
         .mainBoxR {
         .mainBoxR {
           width: 100%;
           width: 100%;
           height: 100%;
           height: 100%;
           // overflow: hidden;
           // overflow: hidden;
           position: relative;
           position: relative;
+          background-image: url('../../assets/img/cBac.png');
+          background-size: 100% 100%;
+          padding: 24px 15px 15px;
 
 
           & > div {
           & > div {
             width: 100%;
             width: 100%;

+ 27 - 4
src/pages/Layout/index.tsx

@@ -17,6 +17,7 @@ import tabLeftArr, { routerSon } from './data'
 import MyPopconfirm from '@/components/MyPopconfirm'
 import MyPopconfirm from '@/components/MyPopconfirm'
 import store from '@/store'
 import store from '@/store'
 import SpinLodingSon from '@/components/SpinLodingSon'
 import SpinLodingSon from '@/components/SpinLodingSon'
+import { DownOutlined, RightOutlined } from '@ant-design/icons'
 
 
 function Layout() {
 function Layout() {
   const [loding, setLoding] = useState(false)
   const [loding, setLoding] = useState(false)
@@ -57,7 +58,7 @@ function Layout() {
           const dom = document.querySelector('.layoutLeftMain') as HTMLDivElement
           const dom = document.querySelector('.layoutLeftMain') as HTMLDivElement
           if (dom) {
           if (dom) {
             dom.scrollTo({
             dom.scrollTo({
-              top: sroolRef.current.offsetTop - 400,
+              top: sroolRef.current.offsetTop - 350,
               behavior: 'smooth'
               behavior: 'smooth'
             })
             })
           }
           }
@@ -233,7 +234,7 @@ function Layout() {
       {/* 左边 */}
       {/* 左边 */}
       <div className='layoutLeft'>
       <div className='layoutLeft'>
         <div className='layoutLeftTop'>
         <div className='layoutLeftTop'>
-          <img src={require('@/assets/img/layLogo.png')} alt='' />
+          <img className='logo' src={require('@/assets/img/logo.png')} alt='' />
         </div>
         </div>
         {/* 左边主体 */}
         {/* 左边主体 */}
         <div className='layoutLeftMain mySorrl'>
         <div className='layoutLeftMain mySorrl'>
@@ -243,16 +244,38 @@ function Layout() {
               key={v.id}
               key={v.id}
               hidden={!v.son.length || (v.son.length === 1 && v.son[0].name === '藏品详情')}
               hidden={!v.son.length || (v.son.length === 1 && v.son[0].name === '藏品详情')}
             >
             >
-              <div className='layoutLRowBoxTxt'>{v.name}</div>
+              <div
+                className={classNames('layoutLRowBoxTxt', v.show ? 'layoutLRowBoxTxtShow' : '')}
+                onClick={() => {
+                  setList(
+                    list.map(c => ({
+                      ...c,
+                      show: c.id === v.id ? !c.show : c.show
+                    }))
+                  )
+                }}
+              >
+                {v.name}
+                <span className={classNames(v.show ? 'layoutLRowBoxTxtIcon' : '')}>
+                  <DownOutlined />
+                </span>
+              </div>
               {v.son.map(v2 => (
               {v.son.map(v2 => (
                 <div
                 <div
                   key={v2.id}
                   key={v2.id}
                   hidden={v2.id >= 9901}
                   hidden={v2.id >= 9901}
-                  className={classNames('layoutLRowBoxRow', pathAcFu(v2.path) ? 'active' : '')}
+                  className={classNames(
+                    'layoutLRowBoxRow',
+                    pathAcFu(v2.path) ? 'active' : '',
+                    v.show ? '' : 'layoutLRowBoxRowHide'
+                  )}
                   ref={pathAcFu(v2.path) ? sroolRef : null}
                   ref={pathAcFu(v2.path) ? sroolRef : null}
                   onClick={() => pathCutFu(v2)}
                   onClick={() => pathCutFu(v2)}
                 >
                 >
                   {v2.name}
                   {v2.name}
+                  <span>
+                    <RightOutlined />
+                  </span>
                 </div>
                 </div>
               ))}
               ))}
             </div>
             </div>

+ 53 - 20
src/pages/Login/index.module.scss

@@ -6,22 +6,43 @@
   padding: 8%;
   padding: 8%;
   background-image: url('../../assets/img/bg.jpg');
   background-image: url('../../assets/img/bg.jpg');
   background-size: 100% 100%;
   background-size: 100% 100%;
+  position: relative;
 
 
   :global {
   :global {
+    .LogoImg {
+      position: absolute;
+      top: 60px;
+      left: 50px;
+    }
+
     .mainRight {
     .mainRight {
+      padding-bottom: 45px;
+      position: absolute;
+      right: 4.5%;
+      top: 28%;
       border-radius: 6px;
       border-radius: 6px;
-      width: 530px;
+      width: 400px;
       display: flex;
       display: flex;
       flex-direction: column;
       flex-direction: column;
       justify-content: center;
       justify-content: center;
       align-items: center;
       align-items: center;
+      background-color: #3a110a;
+      color: var(--themeColor2);
+      border-radius: 10px;
+      overflow: hidden;
 
 
-      .inputBox {
-        padding: 30px 0 60px;
+      & > h3 {
         width: 100%;
         width: 100%;
+        height: 75px;
+        text-align: center;
+        line-height: 75px;
+        font-size: 22px;
+        letter-spacing: 2px;
+        background-color: #002c15;
+      }
 
 
-        background-image: url('../../assets/img/loginBj.png');
-        background-size: 100% 100%;
+      .inputBox {
+        width: 100%;
 
 
         input::-webkit-input-placeholder {
         input::-webkit-input-placeholder {
           /* WebKit browsers */
           /* WebKit browsers */
@@ -44,11 +65,11 @@
         }
         }
 
 
         .inputBoxRow {
         .inputBoxRow {
-          width: 370px;
+          width: 300px;
           margin: 30px auto;
           margin: 30px auto;
 
 
           .ant-input-suffix .ant-input-password-icon {
           .ant-input-suffix .ant-input-password-icon {
-            color: var(--themeColor);
+            color: var(--themeColor2);
             font-size: 22px;
             font-size: 22px;
           }
           }
         }
         }
@@ -91,7 +112,7 @@
 
 
         input:-webkit-autofill {
         input:-webkit-autofill {
           font-size: 18px !important;
           font-size: 18px !important;
-          -webkit-text-fill-color: var(--themeColor) !important;
+          -webkit-text-fill-color: var(--themeColor2) !important;
           background-image: none;
           background-image: none;
           -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; //填充阴影,可以用来遮住背景色
           -webkit-box-shadow: 0 0 0px 1000px transparent inset !important; //填充阴影,可以用来遮住背景色
           background-color: transparent;
           background-color: transparent;
@@ -103,16 +124,17 @@
           padding: 0 11px;
           padding: 0 11px;
           width: 100%;
           width: 100%;
           height: 60px;
           height: 60px;
-          border: 1px solid var(--themeColor);
-          border-radius: 4px;
-          color: var(--themeColor);
+          border: none;
+          border-bottom: 1px solid var(--themeColor2);
+          border-radius: 0px;
+          color: var(--themeColor2);
 
 
           .ant-input {
           .ant-input {
             background-color: transparent;
             background-color: transparent;
 
 
             width: 100%;
             width: 100%;
             height: 60px;
             height: 60px;
-            color: var(--themeColor);
+            color: var(--themeColor2);
           }
           }
         }
         }
 
 
@@ -121,14 +143,25 @@
         }
         }
 
 
         .loginBtn {
         .loginBtn {
-          text-align: center;
-          .ant-btn {
-            color: #fff;
-            background-color: var(--themeColor);
-            border-radius: 25px;
-            font-size: 18px;
-            width: 375px;
-            height: 50px;
+          cursor: pointer;
+          font-size: 20px;
+          width: 300px;
+          height: 48px;
+          margin: 0 auto;
+          display: flex;
+          justify-content: center;
+          align-items: center;
+          background-color: #1a0704;
+          color: var(--themeColor2);
+          transition: 'opacity' 0.3;
+          & > img {
+            display: block;
+            position: relative;
+            top: 1px;
+            margin-right: 10px;
+          }
+          &:hover {
+            opacity: 0.8;
           }
           }
         }
         }
       }
       }

+ 9 - 9
src/pages/Login/index.tsx

@@ -1,6 +1,6 @@
 import styles from './index.module.scss'
 import styles from './index.module.scss'
 
 
-import { Input, Button } from 'antd'
+import { Input } from 'antd'
 import { UserOutlined, LockOutlined, NumberOutlined } from '@ant-design/icons'
 import { UserOutlined, LockOutlined, NumberOutlined } from '@ant-design/icons'
 import { useCallback, useEffect, useState } from 'react'
 import { useCallback, useEffect, useState } from 'react'
 import { Base64 } from 'js-base64'
 import { Base64 } from 'js-base64'
@@ -73,11 +73,13 @@ export default function Login() {
 
 
   return (
   return (
     <div className={styles.Login}>
     <div className={styles.Login}>
+      {/* logg */}
+      <div className='LogoImg'>
+        <img src={require('@/assets/img/logo2.png')} alt='' />
+      </div>
+
       <div className='mainRight'>
       <div className='mainRight'>
-        {/* logg */}
-        <div className='LogoImg'>
-          <img src={require('@/assets/img/loginTit.png')} alt='' />
-        </div>
+        <h3>青岛啤酒博物馆藏品管理系统</h3>
 
 
         {/* 账号密码输入框 */}
         {/* 账号密码输入框 */}
         <div className='inputBox'>
         <div className='inputBox'>
@@ -115,10 +117,8 @@ export default function Login() {
             ) : null}
             ) : null}
           </div>
           </div>
           {/* 登录按钮 */}
           {/* 登录按钮 */}
-          <div className='loginBtn'>
-            <Button type='primary' size='large' onClick={loginClickFu}>
-              登 录
-            </Button>
+          <div className='loginBtn' onClick={loginClickFu}>
+            <img src={require('@/assets/img/loginBtn.png')} alt='' />登 录
           </div>
           </div>
         </div>
         </div>
       </div>
       </div>

+ 2 - 2
src/pages/Z1user/index.module.scss

@@ -3,7 +3,7 @@
     .selectBox {
     .selectBox {
       border-radius: 10px;
       border-radius: 10px;
       padding: 15px 24px;
       padding: 15px 24px;
-      background-color: #fff;
+      background-color: var(--boxBcaColor);
       display: flex;
       display: flex;
       justify-content: space-between;
       justify-content: space-between;
     }
     }
@@ -13,7 +13,7 @@
       overflow: hidden;
       overflow: hidden;
       margin-top: 15px;
       margin-top: 15px;
       height: calc(100% - 77px);
       height: calc(100% - 77px);
-      background-color: #fff;
+      background-color: var(--boxBcaColor);
     }
     }
   }
   }
 }
 }

+ 1 - 1
src/pages/Z1user/index.tsx

@@ -160,7 +160,7 @@ function Z1user() {
       {/* 表格主体 */}
       {/* 表格主体 */}
       <div className='tableBox'>
       <div className='tableBox'>
         <MyTable
         <MyTable
-          yHeight={630}
+          yHeight={585}
           list={tableInfo.list}
           list={tableInfo.list}
           columnsTemp={Z1tableC}
           columnsTemp={Z1tableC}
           lastBtn={tableLastBtn}
           lastBtn={tableLastBtn}

+ 2 - 2
src/pages/Z2log/index.module.scss

@@ -2,7 +2,7 @@
   :global {
   :global {
     .logTop {
     .logTop {
       border-radius: 10px;
       border-radius: 10px;
-      background-color: #fff;
+      background-color: var(--boxBcaColor);
 
 
       .tableSelectBox {
       .tableSelectBox {
         padding: 15px 24px;
         padding: 15px 24px;
@@ -19,7 +19,7 @@
       border-radius: 10px;
       border-radius: 10px;
       margin-top: 15px;
       margin-top: 15px;
       height: calc(100% - 77px);
       height: calc(100% - 77px);
-      background-color: #fff;
+      background-color: var(--boxBcaColor);
     }
     }
   }
   }
 }
 }

+ 1 - 2
src/pages/Z2log/index.tsx

@@ -3,7 +3,6 @@ import { getLogListAPI } from '@/store/action/Z2log'
 import { Input, DatePicker } from 'antd'
 import { Input, DatePicker } from 'antd'
 import React, { useCallback, useEffect, useRef, useState } from 'react'
 import React, { useCallback, useEffect, useRef, useState } from 'react'
 import { useDispatch, useSelector } from 'react-redux'
 import { useDispatch, useSelector } from 'react-redux'
-
 import styles from './index.module.scss'
 import styles from './index.module.scss'
 import MyTable from '@/components/MyTable'
 import MyTable from '@/components/MyTable'
 import { Z2tableC } from '@/utils/tableData'
 import { Z2tableC } from '@/utils/tableData'
@@ -80,7 +79,7 @@ function Z2log() {
       {/* 表格主体 */}
       {/* 表格主体 */}
       <div className='tableMain'>
       <div className='tableMain'>
         <MyTable
         <MyTable
-          yHeight={630}
+          yHeight={585}
           list={tableInfo.list}
           list={tableInfo.list}
           columnsTemp={Z2tableC}
           columnsTemp={Z2tableC}
           pageNum={fromData.pageNum}
           pageNum={fromData.pageNum}

+ 0 - 1
src/store/reducer/layout.ts

@@ -47,7 +47,6 @@ type LayoutActionType =
       }
       }
     }
     }
 
 
-// 频道 reducer
 export default function layoutReducer(state = initState, action: LayoutActionType) {
 export default function layoutReducer(state = initState, action: LayoutActionType) {
   switch (action.type) {
   switch (action.type) {
     // 所有图片点击预览查看大图
     // 所有图片点击预览查看大图

+ 1 - 0
src/types/api/layot.d.ts

@@ -17,6 +17,7 @@ export type RouterTypeRow = {
 export type RouterType = {
 export type RouterType = {
   id: number
   id: number
   name: string
   name: string
+  show: boolean
   son: RouterTypeRow[]
   son: RouterTypeRow[]
 }[]
 }[]