Skip to content
Snippets Groups Projects
Commit 34e0d33a authored by 汤绍坚's avatar 汤绍坚
Browse files

tsj: 修改统览大屏故障

parent 15b42385
No related branches found
No related tags found
No related merge requests found
Showing with 62 additions and 18 deletions
...@@ -25,6 +25,15 @@ const IndustrySystem = () => { ...@@ -25,6 +25,15 @@ const IndustrySystem = () => {
}, },
], ],
}, },
{
name: '城研院',
sub: [
{
name: '成都市城市综合管理数据资源中心',
url: '',
},
],
},
{ {
name: '执法总队', name: '执法总队',
sub: [ sub: [
......
...@@ -15,7 +15,7 @@ const SignStatus = () => { ...@@ -15,7 +15,7 @@ const SignStatus = () => {
}, },
{ {
name: '预警态', name: '预警态',
pre: '(85分下)', pre: '(85分下)',
desc: '提示问题积压或处置效率下降,需要加大治理力度。', desc: '提示问题积压或处置效率下降,需要加大治理力度。',
color: 'rgb(255, 162, 80)', color: 'rgb(255, 162, 80)',
}, },
......
...@@ -35,7 +35,17 @@ const CityRealTimeCQI: React.FC = () => { ...@@ -35,7 +35,17 @@ const CityRealTimeCQI: React.FC = () => {
}; };
services.Physicalsign.getComparisonIndexInstance(params).then((res) => { services.Physicalsign.getComparisonIndexInstance(params).then((res) => {
if (res.code === 200) { if (res.code === 200) {
setCqiData(res.data); console.log(res.data);
let isAdjust = true;
if (isAdjust && res.data.currentIndex?.indexs) {
const indexs = res.data.currentIndex.indexs.map((item: any) =>
item.name === '美观' ? { ...item, value: '--' } : item
);
const updatedData = { ...res.data, currentIndex: { ...res.data.currentIndex, indexs } };
setCqiData(updatedData);
} else {
setCqiData(res.data);
}
} }
}); });
}; };
......
...@@ -13,7 +13,7 @@ const HighFrequencyArea: React.FC<{ ...@@ -13,7 +13,7 @@ const HighFrequencyArea: React.FC<{
</Space> </Space>
<div className={styles.wrap}> <div className={styles.wrap}>
{areaStatistics.map((item, index) => ( {areaStatistics.map((item, index) => (
<div className={styles.litsItem}> <div className={styles.litsItem} key={index}>
<Flex justify="space-between"> <Flex justify="space-between">
<div className={styles.name}>{item.name}</div> <div className={styles.name}>{item.name}</div>
<Space size={10} className={styles.numBox}> <Space size={10} className={styles.numBox}>
......
...@@ -67,7 +67,7 @@ const HighFrequencyType: React.FC<{ ...@@ -67,7 +67,7 @@ const HighFrequencyType: React.FC<{
<div className={styles.wrap}> <div className={styles.wrap}>
{categoryStatistics.map((item, index) => ( {categoryStatistics.map((item, index) => (
<div className={styles.litsItem}> <div className={styles.litsItem} key={index}>
<Flex justify="space-between"> <Flex justify="space-between">
<div className={styles.name}>{item.name}</div> <div className={styles.name}>{item.name}</div>
<Space size={10} className={styles.numBox}> <Space size={10} className={styles.numBox}>
......
...@@ -2,8 +2,6 @@ ...@@ -2,8 +2,6 @@
width: 100%; width: 100%;
height: 100%; height: 100%;
border-radius: 40px; border-radius: 40px;
background: linear-gradient(180deg, rgba(27, 50, 89, 0.3), rgba(27, 50, 89, 0) 100%);
padding: 20px;
} }
.wrap .content { .wrap .content {
flex: 1; flex: 1;
...@@ -15,18 +13,24 @@ ...@@ -15,18 +13,24 @@
text-align: center; text-align: center;
} }
.wrap .content .card .numCard { .wrap .content .card .numCard {
padding: 20px;
width: 115px; width: 115px;
height: 112px; height: 112px;
border-radius: 10px; border-radius: 10px;
background: rgba(67, 113, 180, 0.3); background: rgba(67, 113, 180, 0.3);
text-align: center; text-align: center;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
color: #bccee9; color: #bccee9;
cursor: pointer; cursor: pointer;
} }
.wrap .content .card .numCard .name { .wrap .content .card .numCard .name {
font-size: 14px; font-family: D-DIN;
font-size: 18px;
font-weight: 400; font-weight: 400;
line-height: 1; line-height: 18px;
} }
.wrap .content .center { .wrap .content .center {
width: 557px; width: 557px;
...@@ -41,10 +45,18 @@ ...@@ -41,10 +45,18 @@
align-items: center; align-items: center;
gap: 2vh; gap: 2vh;
font-size: clamp(14px, 1.8vh, 18px); font-size: clamp(14px, 1.8vh, 18px);
font-weight: 700; font-weight: 400;
color: #fff; color: #fff;
} }
.wrap .content .totalName {
font-family: '微软雅黑';
font-size: 18px;
font-weight: 700;
line-height: 24px;
}
.wrap .content .unit { .wrap .content .unit {
font-family: '微软雅黑';
font-size: 14px;
font-weight: 400; font-weight: 400;
color: #bccee9; color: #bccee9;
} }
...@@ -54,6 +66,6 @@ ...@@ -54,6 +66,6 @@
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
background-clip: text; background-clip: text;
font-family: D-DIN; font-family: D-DIN;
font-size: clamp(20px, 2.5vh, 30px); font-size: 26px;
font-weight: 700; font-weight: 700;
} }
...@@ -18,6 +18,7 @@ ...@@ -18,6 +18,7 @@
text-align: center; text-align: center;
.numCard { .numCard {
padding: 20px;
width: 115px; width: 115px;
height: 112px; height: 112px;
...@@ -36,9 +37,11 @@ ...@@ -36,9 +37,11 @@
.name { .name {
// font-size: clamp(14px, 1.8vh, 18px); // font-size: clamp(14px, 1.8vh, 18px);
font-size: 14px; font-family: D-DIN;
font-size: 18px;
font-weight: 400; font-weight: 400;
line-height: 1; line-height: 18px;
// line-height: 1;
} }
} }
} }
...@@ -64,11 +67,20 @@ ...@@ -64,11 +67,20 @@
align-items: center; align-items: center;
gap: 2vh; gap: 2vh;
font-size: clamp(14px, 1.8vh, 18px); font-size: clamp(14px, 1.8vh, 18px);
font-weight: 700; font-weight: 400;
color: #fff; color: #fff;
} }
.totalName {
font-family: '微软雅黑';
font-size: 18px;
font-weight: 700;
line-height: 24px;
}
.unit { .unit {
font-family: '微软雅黑';
font-size: 14px;
font-weight: 400; font-weight: 400;
color: #bccee9; color: #bccee9;
} }
...@@ -84,7 +96,8 @@ ...@@ -84,7 +96,8 @@
-webkit-text-fill-color: transparent; -webkit-text-fill-color: transparent;
background-clip: text; background-clip: text;
font-family: D-DIN; font-family: D-DIN;
font-size: clamp(20px, 2.5vh, 30px); font-size: 26px;
// font-size: clamp(20px, 2.5vh, 30px);
font-weight: 700; font-weight: 700;
} }
} }
......
...@@ -86,11 +86,11 @@ const Problem: React.FC = () => { ...@@ -86,11 +86,11 @@ const Problem: React.FC = () => {
}, },
}, },
{ {
name: '', name: '',
value: statisticsData.otherSourceNum, value: statisticsData.otherSourceNum,
modalConf: { modalConf: {
type: 'otherEvent', type: 'otherEvent',
title: '处置渠道', title: '处置渠道',
isOther: '1', isOther: '1',
}, },
}, },
...@@ -238,7 +238,7 @@ const Problem: React.FC = () => { ...@@ -238,7 +238,7 @@ const Problem: React.FC = () => {
style={{ cursor: 'pointer' }} style={{ cursor: 'pointer' }}
onClick={handleGeneralSituationClick} onClick={handleGeneralSituationClick}
> >
<span>事件总量</span> <span className={styles.totalName}>事件总量</span>
<Statistic value={statisticsData.total} formatter={formatter} /> <Statistic value={statisticsData.total} formatter={formatter} />
<span></span> <span></span>
</Space> </Space>
......
...@@ -46,7 +46,7 @@ const ResourceElements: React.FC = () => { ...@@ -46,7 +46,7 @@ const ResourceElements: React.FC = () => {
return ( return (
<div className={styles.container}> <div className={styles.container}>
<div className={styles.title}> <div className={styles.title}>
<span>资源要素</span> <span>城管资源要素</span>
</div> </div>
<div className={styles.content}> <div className={styles.content}>
{cards.map((card) => ( {cards.map((card) => (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment