Преглед изворни кода

所有批量导出表格完善-开始

shaogen1995 пре 3 месеци
родитељ
комит
b2436f00a4

+ 1 - 2
src/components/ZGaddNow/index.tsx

@@ -36,8 +36,7 @@ function ZGaddNow({
   // 入藏状态特别过滤
   const RuChangSelect = useMemo(() => {
     let arr = selectObj['入藏状态']
-    if (nowSta.key === '1') arr = arr.filter(v => v.label === '已鉴定')
-    else if (['2', '3'].includes(nowSta.key)) arr = arr.filter(v => v.value !== 3)
+    if (nowSta.key === '入藏') arr = arr.filter(v => v.label === '已入馆')
     return arr
   }, [nowSta.key])
 

+ 4 - 0
src/components/Zexport/index.module.scss

@@ -0,0 +1,4 @@
+.Zexport {
+  :global {
+  }
+}

+ 13 - 0
src/components/Zexport/index.tsx

@@ -0,0 +1,13 @@
+import React from 'react'
+import styles from './index.module.scss'
+function Zexport() {
+  return (
+    <div className={styles.Zexport}>
+      <h1>Zexport</h1>
+    </div>
+  )
+}
+
+const MemoZexport = React.memo(Zexport)
+
+export default MemoZexport

+ 1 - 1
src/pages/B_enterTibet/B34typeIn/B34edit/index.tsx

@@ -548,7 +548,7 @@ function B34edit({ type }: Props) {
       {nowSta.id ? (
         <ZGaddNow
           nowSta={nowSta}
-          closeFu={() => setNowSta({ key: '', id: '' })}
+          closeFu={() => setNowSta({ key: '入藏', id: '' })}
           dataResFu={data => {
             //需要过滤掉已经有id的-不替换数据,没有id的替换数据 因为数据可能已经在另外一个弹窗更新了
             const nowIds = snaps.map(v => v.id)