feat: 修改首页
This commit is contained in:
@@ -12,7 +12,7 @@
|
||||
"build:pre": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=pre API_PREFIX=http://119.45.169.13:9900 umi build",
|
||||
"build:prod": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=prod umi build",
|
||||
"build:test:mgnt": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=test APP_BASE=/mgnt API_PREFIX=https://local.goflytec.com:9999 umi build",
|
||||
"build:pre:mgnt": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=pre APP_BASE=/mgnt API_PREFIX=https://local.goflytec.com:9900 umi build",
|
||||
"build:pre:mgnt": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=pre APP_BASE=/mgnt API_PREFIX=https://local.goflytec.com umi build",
|
||||
"build:prod:mgnt": "cross-env NODE_OPTIONS=--openssl-legacy-provider REACT_APP_ENV=prod APP_BASE=/mgnt umi build",
|
||||
"lint": "eslint --ext .ts,.tsx src",
|
||||
"tsc": "tsc --noEmit"
|
||||
|
||||
@@ -90,9 +90,10 @@ const TenantScopeFilter: React.FC<Props> = ({ onChanged, useSwitchTenant = false
|
||||
showSearch
|
||||
loading={loading}
|
||||
treeNodeFilterProp="title"
|
||||
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
|
||||
// 为避免被父容器(如卡片、图表)裁剪,提升弹层层级并挂载到 body
|
||||
dropdownStyle={{ maxHeight: 400, overflow: 'auto', zIndex: 9999 as any }}
|
||||
dropdownMatchSelectWidth
|
||||
getPopupContainer={(trigger) => (trigger?.parentElement as HTMLElement) || document.body}
|
||||
getPopupContainer={() => document.body}
|
||||
placeholder="选择租户(含子租户)"
|
||||
value={tenantId}
|
||||
onChange={(val) => setTenantId(val)}
|
||||
|
||||
@@ -100,7 +100,9 @@ const TenantSelector: React.FC<TenantSelectorProps> = ({
|
||||
showSearch
|
||||
treeNodeFilterProp='title'
|
||||
loading={loading}
|
||||
dropdownStyle={{ maxHeight: 400, overflow: 'auto' }}
|
||||
// 为避免被父容器(如卡片、图表)裁剪,提升弹层层级并挂载到 body
|
||||
dropdownStyle={{ maxHeight: 400, overflow: 'auto', zIndex: 9999 as any }}
|
||||
getPopupContainer={() => document.body}
|
||||
placeholder='选择租户(含子租户)'
|
||||
treeData={toTreeData(tree)}
|
||||
allowClear
|
||||
@@ -116,4 +118,3 @@ const TenantSelector: React.FC<TenantSelectorProps> = ({
|
||||
};
|
||||
|
||||
export default TenantSelector;
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import React, { useEffect, useRef, useState } from 'react';
|
||||
import { Card, Space, Typography, Row, Col, Button, message, DatePicker, Segmented, List, Tag, Statistic, Grid, Slider, InputNumber } from 'antd';
|
||||
import { ReloadOutlined } from '@ant-design/icons';
|
||||
import { Line, Pie } from '@ant-design/plots';
|
||||
@@ -333,7 +333,7 @@ const Welcome: React.FC = () => {
|
||||
<Statistic value={netIncomeYuan} precision={2} valueStyle={{ fontWeight: 600, whiteSpace: 'nowrap' }} />
|
||||
</Col>
|
||||
</Row>
|
||||
|
||||
|
||||
</Space>
|
||||
</Card>
|
||||
</Col>
|
||||
|
||||
Reference in New Issue
Block a user