趋势分析页面标题修改

main
wangyunfei888 1 month ago
parent ddeafd1288
commit e65be6e07e

@ -133,21 +133,34 @@ const CurveAnalysis = () => {
<div className={styles.topRow}>
<div className={styles.panel}>
<div className={styles.panelHeader}>月度风险趋势分析</div>
<div className={styles.panelHeader}>
<span className={styles.panelHeaderIcon} />
<span>月度风险趋势分析</span>
</div>
<ReactECharts option={trendOption} style={{ height: 320 }} notMerge lazyUpdate />
</div>
<div className={styles.panel}>
<div className={styles.panelHeader}>风险等级分布</div>
<div className={styles.panelHeader}>
<span className={styles.panelHeaderIcon} />
<span>风险等级分布</span>
</div>
<ReactECharts option={levelOption} style={{ height: 320 }} notMerge lazyUpdate />
</div>
</div>
<div className={styles.bottomRow}>
<div className={styles.panel}>
<div className={styles.panelHeader}>风险类型分布</div>
<div className={styles.panelHeader}>
<span className={styles.panelHeaderIcon} />
<span>风险类型分布</span>
</div>
<ReactECharts option={typeOption} style={{ height: 280 }} notMerge lazyUpdate />
</div>
<div className={styles.panel}>
<div className={styles.panelHeader}>
<span className={styles.panelHeaderIcon} />
<span>风险处理率</span>
</div>
<ReactECharts option={gaugeOption} style={{ height: 280 }} notMerge lazyUpdate />
</div>
</div>

@ -2,80 +2,124 @@
display: flex;
flex-direction: column;
gap: 12px;
padding: 10px;
background: #f7f8fb;
// padding: 10px;
background: transparent;
height: 100%;
box-sizing: border-box;
}
.filtersRow {
.filtersRow {
display: flex;
flex-wrap: wrap;
gap: 16px;
align-items: center;
background: #fff;
padding: 12px 16px;
border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
// border-radius: 6px;
// box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
font-size: 13px;
color: #666;
}
.checkGroup {
.checkGroup {
display: flex;
gap: 10px;
align-items: center;
}
.filterItem {
input[type="checkbox"] {
appearance: none;
width: 14px;
height: 14px;
margin: 0;
border: 1px solid #d9d9d9;
border-radius: 3px;
background: #fff;
position: relative;
cursor: pointer;
}
input[type="checkbox"]:checked {
background-color: rgba(0, 212, 138, 1);
border-color: rgba(0, 212, 138, 1);
}
input[type="checkbox"]:checked::after {
content: '';
position: absolute;
top: 1px;
left: 4px;
width: 4px;
height: 7px;
border: 2px solid #fff;
border-top: 0;
border-left: 0;
transform: rotate(45deg);
}
}
.filterItem {
display: flex;
gap: 8px;
align-items: center;
}
.filterItem select,
.checkGroup select {
select {
height: 30px;
border: 1px solid #d9d9d9;
border-radius: 4px;
padding: 0 8px;
background: #fff;
}
}
}
.topRow,
.bottomRow {
.checkGroup select {
height: 30px;
border: 1px solid #d9d9d9;
border-radius: 4px;
padding: 0 8px;
background: #fff;
}
}
.topRow,
.bottomRow {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 12px;
}
}
.bottomRow {
.bottomRow {
grid-template-columns: 2fr 1fr;
}
}
.panel {
.panel {
background: #fff;
border-radius: 8px;
padding: 12px 12px 4px 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
min-height: 260px;
display: flex;
flex-direction: column;
}
.panelHeader {
.panelHeader {
font-size: 14px;
font-weight: 600;
color: #333;
margin-bottom: 4px;
}
display: flex;
align-items: center;
gap: 6px;
.panelHeaderIcon {
width: 3px;
height: 16px;
background: rgba(0, 157, 111, 1);
}
}
}
label {
label {
display: inline-flex;
align-items: center;
gap: 4px;
}
}
input[type="checkbox"] {
input[type="checkbox"] {
margin: 0;
}
}

@ -10,7 +10,7 @@ const Fxwt = () => {
const menuItems = [
{ key: 'riskIssueBoard', label: '风险问题看板' },
{ key: 'riskMap', label: '风险地图' },
{ key: 'curveAnalysis', label: '曲式分析' }
{ key: 'curveAnalysis', label: '趋势分析' }
];
const renderContent = () => {

@ -7,9 +7,8 @@
flex-direction: column;
gap: 12px;
min-height: 100%;
}
.toolbar {
.toolbar {
display: flex;
align-items: center;
justify-content: space-between;
@ -17,22 +16,21 @@
border-radius: 10px;
padding: 10px 12px;
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
}
.toolbarFilters {
.toolbarFilters {
display: flex;
align-items: center;
gap: 10px;
flex-wrap: wrap;
justify-content: flex-end;
}
}
.filterLabel {
.filterLabel {
color: #666;
font-size: 13px;
}
}
.select {
.select {
width: 120px;
:global(.ant-select-selector) {
@ -40,33 +38,35 @@
height: 34px;
box-shadow: none !important;
}
}
}
}
.rowThree {
.rowThree {
display: grid;
grid-template-columns: repeat(3, 1fr);
gap: 12px;
}
}
.rowTwo {
.rowTwo {
display: grid;
grid-template-columns: 2fr 1fr;
gap: 12px;
}
}
.card,
.cardWide {
.card,
.cardWide {
background: #fff;
border-radius: 10px;
box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
padding: 10px 12px 6px;
display: flex;
flex-direction: column;
}
.cardTitle {
.cardTitle {
font-size: 14px;
font-weight: 600;
color: #333;
margin-bottom: 4px;
}
}
}

Loading…
Cancel
Save