Sfoglia il codice sorgente

fix (1.59.0 -> 1.59.1): 修复 bug 179 - 在历史列表页面添加报告按钮条件显示

- 在 ActionPanel.tsx 中为报告按钮添加 currentKey === 'historylist' 条件显示,确保仅在历史列表页面显示报告按钮

改动文件:
- src/pages/patient/components/ActionPanel.tsx
dengdx 6 giorni fa
parent
commit
dddc1c9091
3 ha cambiato i file con 35 aggiunte e 24 eliminazioni
  1. 10 0
      CHANGELOG.md
  2. 1 1
      package.json
  3. 24 23
      src/pages/patient/components/ActionPanel.tsx

+ 10 - 0
CHANGELOG.md

@@ -3,6 +3,16 @@
 本项目的所有重要变更都将记录在此文件中.
 
 
+## [1.59.1] - 2026-01-07 14:57
+
+### 修复 (Fixed)
+
+- **修复 bug 179 - 在历史列表页面添加报告按钮条件显示** - 在 ActionPanel.tsx 中为报告按钮添加 currentKey === 'historylist' 条件显示
+
+**改动文件:**
+
+- src/pages/patient/components/ActionPanel.tsx
+
 ## [1.59.0] - 2026-01-07 14:44
 
 ### 新增 (Added)

+ 1 - 1
package.json

@@ -1,6 +1,6 @@
 {
   "name": "zsis",
-  "version": "1.59.0",
+  "version": "1.59.1",
   "private": true,
   "description": "医学成像系统",
   "main": "main.js",

+ 24 - 23
src/pages/patient/components/ActionPanel.tsx

@@ -841,29 +841,30 @@ const ActionPanel: React.FC = () => {
         }
         onClick={() => showNotImplemented('')}
       /> */}
-      <ActionButton
-        icon={
-          <Icon
-            module="module-patient"
-            name="report"
-            userId="base"
-            theme={themeType}
-            size="2x"
-            state="normal"
-            /*控制svg图标的大小,暂时使用这种fontSize方式 */
-            style={{ fontSize: '48px' }}
-            /*控制svg图标的颜色,和主题相关 ,拼接成tailwindcss class*/
-            className={`text-[${token.token.colorPrimary}]`}
-          />
-        }
-        tooltip={
-          <FormattedMessage
-            id="actionPanel.showReport"
-            defaultMessage="actionPanel.showReport"
-          />
-        }
-        onClick={handleShowReport}
-      />
+      {currentKey === 'historylist' && (
+        <ActionButton
+          icon={
+            <Icon
+              module="module-patient"
+              name="report"
+              userId="base"
+              theme={themeType}
+              size="2x"
+              state="normal"
+              /*控制svg图标的大小,暂时使用这种fontSize方式 */
+              style={{ fontSize: '48px' }}
+              /*控制svg图标的颜色,和主题相关 ,拼接成tailwindcss class*/
+              className={`text-[${token.token.colorPrimary}]`}
+            />
+          }
+          tooltip={
+            <FormattedMessage
+              id="actionPanel.showReport"
+              defaultMessage="actionPanel.showReport"
+            />
+          }
+          onClick={handleShowReport}
+        />)}
       <Drawer
         open={visible}
         closeIcon={null}