Browse Source

(*)房屋租赁功能完善

master
peng.peng 1 year ago
parent
commit
1b9d53822c
  1. 6
      super-screen/client/src/sections/community-safty/components/basic-info.js
  2. 4
      super-screen/client/src/sections/community-safty/components/charts/pie.js
  3. 2
      super-screen/client/src/sections/community-safty/components/traffic-ranking.js
  4. 2
      super-screen/client/src/sections/community-safty/containers/gis.js

6
super-screen/client/src/sections/community-safty/components/basic-info.js

@ -16,7 +16,7 @@ function BasicInfo({ communtityInfo }) {
<div className='_basic_text'>
<span>区域面积</span>
<span className='_text_number_color'>1810.7km³</span>
<span className='_text_number_color'>1810.7km²</span>
</div>
<div className='_basic_text'>
@ -28,12 +28,12 @@ function BasicInfo({ communtityInfo }) {
<div className='_basic_row2'>
<div className='_item1'>
<span>社区数量</span>
<span>社区数量</span>
<span className='_number'>{communtity_data?.length}</span>
</div>
<div className='basicinterval' />
<div className='_item2'>
<span>房屋数量</span>
<span>廉租房</span>
<span className='_number'>{communtityInfo ? (communtityInfo?.inuse + communtityInfo?.unuse) : '-'}</span>
</div>
</div>

4
super-screen/client/src/sections/community-safty/components/charts/pie.js

@ -47,7 +47,7 @@ function RingChart(props) {
tooltip: {
...tooltip,
trigger: 'item',
formatter: '{b} : {c} ({d}%)',
formatter: '{b} : {c} ({d}%)',
position: ['10%', '40%'],
},
// 渐变色
@ -100,7 +100,7 @@ function RingChart(props) {
<div className="type-leagle-dot" style={{ background: RING_COLORS[index]?.linearGradientFrom }} />
<div className="type-leagle-label">{s.name}</div>
</div>
<div className="type-leagle-value">{s.value} <div style={{ textAlign: 'right', display: 'inline-block', width: 40, fontSize: 14, color: RING_COLORS[index]?.linearGradientFrom }}>{Math.round(s.value / total * 100)}%</div></div>
<div className="type-leagle-value">{s.value} <div style={{ textAlign: 'right', display: 'inline-block', width: 40, fontSize: 14, color: RING_COLORS[index]?.linearGradientFrom }}>{Math.round(s.value / total * 100)}%</div></div>
</div>
));

2
super-screen/client/src/sections/community-safty/components/traffic-ranking.js

@ -20,7 +20,7 @@ function DataTop5({ communtityInfo }) {
<div className='_traffic_ranking'>
<div className='_rank_title'>
<div className='_rank_item2'>社区名称</div>
<div className='_rank_item3'>户数<span style={{ fontSize: 14 }}>/</span></div>
<div className='_rank_item3'>户数 / <span style={{ fontSize: 14 }}></span></div>
</div>
<AutoRollComponent canScroll={true} content={content} data={[]} divHeight={200} divId={`community-right-bottom`} />

2
super-screen/client/src/sections/community-safty/containers/gis.js

@ -9,7 +9,7 @@ import './gis.less'
const MAPDOMID = 'fs-amap-container';
let map = null;
const TYPES = {
1: '消栓',
1: '消栓',
2: '水箱',
3: '烟感',
4: '配电箱'

Loading…
Cancel
Save