Przeglądaj źródła

未实现的按钮给提示

sw 5 dni temu
rodzic
commit
fca0448eaa

+ 11 - 0
src/pages/patient/components/ActionPanel.tsx

@@ -15,6 +15,7 @@ import { Popup } from 'antd-mobile';
 import { setVisible } from '@/states/patient/DiagnosticReport/slice';
 import EditTaskModal from './EditTaskModal';
 import { openEditModal } from '@/states/patient/edit/editFormSlice';
+import { showNotImplemented } from '@/utils/notificationHelper';
 
 interface ActionButtonProps {
   icon: React.ReactNode;
@@ -245,6 +246,7 @@ const ActionPanel: React.FC = () => {
             defaultMessage="actionPanel.risSync"
           />
         }
+        onClick={() => showNotImplemented('')}
       />
       <ActionButton
         icon={
@@ -263,6 +265,7 @@ const ActionPanel: React.FC = () => {
             defaultMessage="actionPanel.reRegister"
           />
         }
+        onClick={() => showNotImplemented('')}
       />
       <ActionButton
         icon={
@@ -281,6 +284,7 @@ const ActionPanel: React.FC = () => {
             defaultMessage="actionPanel.saveLocal"
           />
         }
+                onClick={() => showNotImplemented('')}
       />
       <ActionButton
         icon={
@@ -299,6 +303,7 @@ const ActionPanel: React.FC = () => {
             defaultMessage="actionPanel.importXLS"
           />
         }
+        onClick={() => showNotImplemented('')}
       />
       <ActionButton
         icon={
@@ -317,6 +322,7 @@ const ActionPanel: React.FC = () => {
             defaultMessage="actionPanel.sortList"
           />
         }
+        onClick={() => showNotImplemented('')}
       />
       <ActionButton
         icon={
@@ -335,6 +341,7 @@ const ActionPanel: React.FC = () => {
             defaultMessage="actionPanel.cloudShare"
           />
         }
+        onClick={() => showNotImplemented('')}
       />
       <ActionButton
         icon={
@@ -353,6 +360,7 @@ const ActionPanel: React.FC = () => {
             defaultMessage="actionPanel.imageExchange"
           />
         }
+        onClick={() => showNotImplemented('')}
       />
       <ActionButton
         icon={
@@ -371,6 +379,7 @@ const ActionPanel: React.FC = () => {
             defaultMessage="actionPanel.qrPrint"
           />
         }
+        onClick={() => showNotImplemented('')}
       />
       <ActionButton
         icon={
@@ -408,6 +417,7 @@ const ActionPanel: React.FC = () => {
             defaultMessage="actionPanel.export"
           />
         }
+        onClick={() => showNotImplemented('')}
       />
       <ActionButton
         icon={
@@ -426,6 +436,7 @@ const ActionPanel: React.FC = () => {
             defaultMessage="actionPanel.import"
           />
         }
+        onClick={() => showNotImplemented('')}
       />
       <ActionButton
         icon={

+ 15 - 1
src/pages/view/components/FunctionArea.tsx

@@ -5,6 +5,7 @@ import { useDispatch } from 'react-redux';
 import { setAction } from '@/states/view/functionAreaSlice';
 import { switchToMeasurementPanel } from '@/states/panelSwitchSliceForView';
 import Icon from '@/components/Icon';
+import { showNotImplemented } from '@/utils/notificationHelper';
 
 const FunctionButton = ({
   title,
@@ -18,6 +19,19 @@ const FunctionButton = ({
   const dispatch = useDispatch();
 
   const handleButtonClick = () => {
+    if(action==='AddMask'||
+      action==='Delete Digital Mask'||
+      action==='Crop Selected Area' ||
+      action in ['Delete Mask',
+        'Image Comparison','Zoom Image','Reset Cursor','Pan','Snapshot','Advanced Processing','Musician',
+        'Image Measurement',
+        'More',
+      ]
+    ){
+showNotImplemented('');
+return;
+    }
+    
     if (action === 'Image Measurement') {
       // 切换到测量面板
       dispatch(switchToMeasurementPanel());
@@ -94,7 +108,7 @@ const FunctionArea = () => {
       <FunctionButton
         title="Delete Digital Mask"
         action="Delete Digital Mask"
-        iconName="EraseMark"
+        iconName="EraseMark"        
       />
       <FunctionButton
         title="Adjust Brightness and Contrast"