趋势分析页面标题修改

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