Browse Source

图片路径修改

release_0.0.4
‘lijianhao’ 3 years ago
parent
commit
db9977073b
  1. 23
      web/client/src/sections/quanju/actions/example.js
  2. 2
      web/client/src/sections/quanju/containers/footer/conserve/chart/pie-chart.js
  3. 15
      web/client/src/sections/quanju/containers/footer/conserve/index.js
  4. 4
      web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js
  5. 4
      web/client/src/sections/quanju/containers/footer/conserve/left/left-top.js
  6. 2
      web/client/src/sections/quanju/containers/footer/conserve/right/right-center.js
  7. 2
      web/client/src/sections/quanju/containers/footer/conserve/right/right-top.js

23
web/client/src/sections/quanju/actions/example.js

@ -123,3 +123,26 @@ export function getGodshuju() {
// >>>>>>> 385f017aeac33adc39a31e75faf6254a1a881d16
});
}
//获取路政列表
export function getHighwayList() {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'GET_HIGHWAYS',
url: ApiTable.getHighways,
msg: { error: '获取路政列表失败' },
reducer: { name: 'highways' }
});
}
//获取道路养护统计及列表
export function getRoadMaintenanceList() {
return dispatch => basicAction({
type: 'get',
dispatch: dispatch,
actionType: 'GET_ROAD_MAINTENANCES',
url: ApiTable.getRoadMaintenance,
msg: { error: '获取道路养护列表失败' },
reducer: { name: 'roadMaintenances' }
});
}

2
web/client/src/sections/quanju/containers/footer/conserve/chart/pie-chart.js

@ -62,7 +62,7 @@ const PieChart = (props) => {
{
type: 'image',
style: {
image: 'assets/images/quanju/chart-circle.png',
image: '/assets/images/quanju/chart-circle.png',
width: 110,
height: 110,
align: 'center',

15
web/client/src/sections/quanju/containers/footer/conserve/index.js

@ -19,24 +19,25 @@ const Conserve = (props) => {
setLoading(false)
setRoadData(res.payload.data || {})
})
dispatch(getHighways()).then(res => {
dispatch(getHighways()).then(res =>{
setHighwaysData(res.payload.data || [])
})
dispatch(getRoadMaintenances()).then(res => {
dispatch(getRoadMaintenances()).then(res =>{
setRoadMaintenances(res.payload.data || [])
})
}, [])
return (
<div style={{ width: '100%', height: '100%', }}>
<div style={{ display: 'flex', width: '100%', height: '100%', justifyContent: 'space-between' }}>
<Left roadData={roadData} loading={loading} />
<Right highwaysData={highwaysData} roadMaintenances={roadMaintenances} />
</div>
<div style={{ width: '100%', height: '100%', }}>
<div style={{ display: 'flex', width: '100%', height: '100%', justifyContent: 'space-between' }}>
<Left roadData={roadData} loading={loading} />
<Right highwaysData={highwaysData} roadMaintenances={roadMaintenances}/>
</div>
</div>
)
}
function mapStateToProps(state) {
// const { auth } = state;
return {

4
web/client/src/sections/quanju/containers/footer/conserve/left/left-center.js

@ -227,8 +227,8 @@ const LeftCenter = (props) => {
<Row align='middle' style={{ padding: '10px 3% 0px 15px' }}>
<Col span={15}>
<img src='assets/images/quanju/kelvhua_icon.png' alt='icon' style={{ width: '26%' }} />
<span style={{ color: '#C2EEFF', marginLeft: 5 }}>可绿化里程总数</span>
<img src='/assets/images/quanju/kelvhua_icon.png' alt='icon' style={{ width: '26%' }} />
<span style={{ color: '#C2EEFF', marginLeft: 5, textShadow: '0px 0px 4px #07B9FE' }}>可绿化里程总数</span>
</Col>
<Col span={9} style={{ fontSize: 24, fontFamily: 'YouSheBiaoTiHei', color: '#fff' }}>{totalData.toFixed(3) || 0}</Col>
</Row>

4
web/client/src/sections/quanju/containers/footer/conserve/left/left-top.js

@ -204,13 +204,13 @@ const LeftTop = (props) => {
<div ref={frequentlyChartRef} style={{ width: "50%" }}></div>
</div>
<img src='assets/images/quanju/circle.png' style={{
<img src='/assets/images/quanju/circle.png' style={{
position: 'absolute',
left: '23%',
top: '66%',
zIndex: 999
}} />
<img src='assets/images/quanju/circle.png' style={{
<img src='/assets/images/quanju/circle.png' style={{
position: 'absolute',
right: '27%',
top: '66%',

2
web/client/src/sections/quanju/containers/footer/conserve/right/right-center.js

@ -42,7 +42,7 @@ const RightCenter = (props) => {
{
item?.map(i => (
<div style={{ display: 'flex', width: '50%' }} key={i.id}>
<img src={i.icon} alt='icon' style={{ width: '36%', height: '100%' }} />
<img src={'/'+i.icon} alt='icon' style={{ width: '36%', height: '100%' }} />
<div style={{ marginLeft: 10 }}>
<div style={textStyle}>{i.name}</div>
<div style={numStyle}>{`${i.count}`}</div>

2
web/client/src/sections/quanju/containers/footer/conserve/right/right-top.js

@ -46,7 +46,7 @@ const RightTop = (props) => {
{
item?.map(i => (
<div style={{ display: 'flex', width: '50%' }} key={i.id}>
<img src={i.icon} alt='icon' style={{ width: '36%', height: '100%' }} />
<img src={'/' + i.icon} alt='icon' style={{ width: '36%', height: '100%' }} />
<div style={{ marginLeft: 10 }}>
<div style={textStyle}>{i.name}</div>
<div style={numStyle}>{`${i.count}${i.unit}`}</div>

Loading…
Cancel
Save