瀏覽代碼

Merge branch 'master' of http://192.168.0.115:3000/shaogen1995/qingDao_goods

lanxin 1 周之前
父節點
當前提交
1f1e3dc2c0

二進制
src/assets/img/AcSon.png


二進制
src/assets/img/bgC.jpg


二進制
src/assets/img/cBac.png


+ 3 - 13
src/assets/styles/base.css

@@ -13,19 +13,10 @@ html {
   --loginTxt: #fddb77;
   --boxBcaColor: #f8f8f8;
   --txtColor: #4c7f7a;
-  --themeColor2: #988364;
+  --myAntdColor: #ab925b;
 }
 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%;
   color: var(--themeColor) !important;
 }
@@ -172,7 +163,6 @@ textarea {
 .ant-table-body {
   background-color: var(--boxBcaColor) !important;
 }
-
 /* antd表格居中 */
 .ant-table-cell {
   text-align: center !important;
@@ -196,7 +186,7 @@ textarea {
 }
 /* 普通文字按钮的颜色 */
 .ant-btn-text {
-  color: #ab925b !important;
+  color: var(--myAntdColor) !important;
 }
 .ant-btn-text:disabled {
   cursor: not-allowed !important;

+ 16 - 8
src/assets/styles/base.less

@@ -12,14 +12,18 @@ html {
 
 /* 主题色 */
 :root {
+  // 文字颜色
   --themeColor: #002c15;
+  // 登录页文字颜色
   --loginTxt: #fddb77;
+  // 一个模块一个模块的背景色
   --boxBcaColor: #f8f8f8;
 
-  // 这个项目颜色有点杂
+  // 这个项目颜色有点杂--字典、组织、标签模块主题色
   --txtColor: #4c7f7a;
 
-  --themeColor2: #988364;
+  // antd主题色
+  --myAntdColor: #ab925b;
 }
 
 body {
@@ -225,7 +229,7 @@ textarea {
   font-size: 18px;
   position: absolute;
   z-index: 11;
-  top: -97px;
+  top: -72px;
   left: -18px;
   padding-left: 40px;
   color: #fff;
@@ -234,12 +238,14 @@ textarea {
 
   &::before {
     position: absolute;
-    left: -14px;
-    content: '|';
+    left: -7px;
+    content: '';
     font-size: 24px;
     font-weight: 700;
-    top: -9px;
-    color: #5a6557;
+    top: 0px;
+    width: 2px;
+    height: 26px;
+    background-color: #596754;
   }
 }
 
@@ -280,6 +286,7 @@ textarea {
 .ant-table-header {
   .ant-table-cell {
     color: var(--themeColor) !important;
+    background-color: #d6e6df !important;
   }
 }
 
@@ -288,6 +295,7 @@ textarea {
     border-color: #ccc !important;
   }
 }
+
 // .ant-table-placeholder {
 //   background-color: transparent !important;
 //   .ant-empty-description {
@@ -316,7 +324,7 @@ textarea {
 
 /* 普通文字按钮的颜色 */
 .ant-btn-text {
-  color: #ab925b !important;
+  color: var(--myAntdColor) !important;
 }
 
 .ant-btn-text:disabled {

+ 8 - 5
src/components/Z3upFiles/index.tsx

@@ -193,6 +193,8 @@ type Props = {
   size?: number
   maxCount?: number
   oneIsCover?: boolean
+  // 默认是修改 files 字段。有可能是下面的附件,使用不同的字段
+  filesKey?: 'files' | 'files2'
 }
 
 // 修复类型检查问题:统一使用dnd-kit管理所有拖拽
@@ -205,17 +207,18 @@ function Z3upFiles({
   tips = '单个附件不得超过500M',
   size = 500,
   maxCount = 999,
-  oneIsCover
+  oneIsCover,
+  filesKey = 'files'
 }: Props) {
   const { info, setInfoFu } = useInfo()
 
   // 修复图片闪动问题:分别管理图片和非图片的排序
   const { imageFiles, otherFiles } = useMemo(() => {
-    const arr = info.files || []
+    const arr = info[filesKey] || []
     const imgArr = arr.filter(v => v.type === 'img')
     const otherArr = arr.filter(v => v.type !== 'img')
     return { imageFiles: imgArr, otherFiles: otherArr }
-  }, [info.files])
+  }, [filesKey, info])
 
   const fileList = useMemo(() => {
     return [...imageFiles, ...otherFiles]
@@ -225,7 +228,7 @@ function Z3upFiles({
   const setFileList = useCallback(
     (newFiles: FileListType[] | ((prev: FileListType[]) => FileListType[])) => {
       setInfoFu((prevInfo: Typetable) => {
-        const currentFiles = prevInfo.files || []
+        const currentFiles = prevInfo[filesKey] || []
         const updatedFiles = typeof newFiles === 'function' ? newFiles(currentFiles) : newFiles
 
         const updatedInfo: Typetable = {
@@ -235,7 +238,7 @@ function Z3upFiles({
         return updatedInfo
       })
     },
-    [setInfoFu]
+    [filesKey, setInfoFu]
   )
 
   const [activeId, setActiveId] = useState<number | null>(null)

+ 1 - 1
src/pages/Eculture/E1tag/index.module.scss

@@ -32,7 +32,7 @@
           padding: 4px 8px !important;
           background-color: var(--txtColor) !important;
           .ant-tree-title span {
-            color: var(--themeColor2) !important;
+            color: #fff !important;
           }
         }
         .NODATA {

+ 1 - 1
src/pages/Isystem/I2dict/index.module.scss

@@ -66,7 +66,7 @@
           padding: 4px 8px !important;
           background-color: var(--txtColor) !important;
           .ant-tree-title span {
-            color: var(--themeColor2) !important;
+            color: #fff !important;
           }
         }
       }

+ 1 - 1
src/pages/Isystem/I5organization/index.module.scss

@@ -33,7 +33,7 @@
           padding: 4px 8px !important;
           background-color: var(--txtColor) !important;
           .ant-tree-title span {
-            color: var(--themeColor2) !important;
+            color: #fff !important;
           }
         }
         .NODATA {

+ 5 - 5
src/pages/Layout/index.module.scss

@@ -32,7 +32,7 @@
         background-size: 100% 100%;
 
         &::-webkit-scrollbar-thumb {
-          background: var(--themeColor);
+          background: var(--myAntdColor);
         }
 
         .layoutLRowBox {
@@ -69,7 +69,7 @@
             background-image: url('../../assets/img/Union.png');
           }
           .layoutLRowBoxTxtShowAc {
-            color: var(--themeColor2);
+            color: var(--myAntdColor);
           }
 
           .layoutLRowBoxRow {
@@ -89,7 +89,7 @@
 
             &:hover {
               opacity: 1;
-              background-color: var(--themeColor2);
+              background-color: var(--myAntdColor);
             }
             & > span {
               position: absolute;
@@ -106,7 +106,7 @@
 
           .active {
             opacity: 1;
-            background-color: var(--themeColor2);
+            background-color: var(--myAntdColor);
           }
         }
       }
@@ -206,7 +206,7 @@
             position: relative;
             // padding: 15px;
             border: 1px solid #d1d3d3;
-            background-color: #f7f8f8;
+            background-color: var(--boxBcaColor);
             border-radius: 10px;
 
             // background-color: #fff;

+ 2 - 0
src/pages/Zother/data.ts

@@ -162,6 +162,8 @@ export type Typetable = {
   dictIdApply?: any
   fileIds?: any
   files: FileListType[]
+  // 待完善sg
+  files2: FileListType[]
   goodIds: string
   id: number
   nodeProcessId: number