|
|
@@ -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}
|