趋势分析页面标题修改

main
wangyunfei888 1 month ago
parent ddeafd1288
commit e65be6e07e

@ -133,21 +133,34 @@ const CurveAnalysis = () => {
<div className={styles.topRow}> <div className={styles.topRow}>
<div className={styles.panel}> <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 /> <ReactECharts option={trendOption} style={{ height: 320 }} notMerge lazyUpdate />
</div> </div>
<div className={styles.panel}> <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 /> <ReactECharts option={levelOption} style={{ height: 320 }} notMerge lazyUpdate />
</div> </div>
</div> </div>
<div className={styles.bottomRow}> <div className={styles.bottomRow}>
<div className={styles.panel}> <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 /> <ReactECharts option={typeOption} style={{ height: 280 }} notMerge lazyUpdate />
</div> </div>
<div className={styles.panel}> <div className={styles.panel}>
<div className={styles.panelHeader}>
<span className={styles.panelHeaderIcon} />
<span>风险处理率</span>
</div>
<ReactECharts option={gaugeOption} style={{ height: 280 }} notMerge lazyUpdate /> <ReactECharts option={gaugeOption} style={{ height: 280 }} notMerge lazyUpdate />
</div> </div>
</div> </div>

@ -2,80 +2,124 @@
display: flex; display: flex;
flex-direction: column; flex-direction: column;
gap: 12px; gap: 12px;
padding: 10px; // padding: 10px;
background: #f7f8fb; background: transparent;
height: 100%; height: 100%;
box-sizing: border-box; box-sizing: border-box;
}
.filtersRow { .filtersRow {
display: flex; display: flex;
flex-wrap: wrap; flex-wrap: wrap;
gap: 16px; gap: 16px;
align-items: center; align-items: center;
background: #fff; background: #fff;
padding: 12px 16px; padding: 12px 16px;
border-radius: 6px; // border-radius: 6px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04); // box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
font-size: 13px; font-size: 13px;
color: #666; color: #666;
}
.checkGroup { .checkGroup {
display: flex; display: flex;
gap: 10px; gap: 10px;
align-items: center; 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; display: flex;
gap: 8px; gap: 8px;
align-items: center; align-items: center;
}
.filterItem select, select {
.checkGroup select {
height: 30px; height: 30px;
border: 1px solid #d9d9d9; border: 1px solid #d9d9d9;
border-radius: 4px; border-radius: 4px;
padding: 0 8px; padding: 0 8px;
background: #fff; background: #fff;
} }
}
.topRow, .checkGroup select {
.bottomRow { height: 30px;
border: 1px solid #d9d9d9;
border-radius: 4px;
padding: 0 8px;
background: #fff;
}
}
.topRow,
.bottomRow {
display: grid; display: grid;
grid-template-columns: 2fr 1fr; grid-template-columns: 2fr 1fr;
gap: 12px; gap: 12px;
} }
.bottomRow { .bottomRow {
grid-template-columns: 2fr 1fr; grid-template-columns: 2fr 1fr;
} }
.panel { .panel {
background: #fff; background: #fff;
border-radius: 8px;
padding: 12px 12px 4px 12px; padding: 12px 12px 4px 12px;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
min-height: 260px; min-height: 260px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
}
.panelHeader { .panelHeader {
font-size: 14px; font-size: 14px;
font-weight: 600; font-weight: 600;
color: #333; color: #333;
margin-bottom: 4px; 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; display: inline-flex;
align-items: center; align-items: center;
gap: 4px; gap: 4px;
} }
input[type="checkbox"] { input[type="checkbox"] {
margin: 0; margin: 0;
}
} }

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

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

Loading…
Cancel
Save