Browse Source

回退至 787cfe34d8

release_0.0.1
巴林闲侠 3 years ago
parent
commit
2cef06a15c
  1. 3
      web/client/.vscode/settings.json
  2. 1599
      web/client/src/sections/fillion/components/bridgeTable.js
  3. 1599
      web/client/src/sections/fillion/components/enforceTable.js
  4. 1599
      web/client/src/sections/fillion/components/highwaysTable.js
  5. 3701
      web/client/src/sections/fillion/components/operationalTable.js
  6. 9
      web/client/src/sections/fillion/components/protable.less
  7. 2464
      web/client/src/sections/fillion/components/publicTable.js
  8. 3631
      web/client/src/sections/fillion/components/transportationTable.js
  9. 42
      web/client/src/sections/fillion/containers/bridge.js
  10. 42
      web/client/src/sections/fillion/containers/enforce.js
  11. 42
      web/client/src/sections/fillion/containers/highways.js
  12. 42
      web/client/src/sections/fillion/containers/operational.js
  13. 42
      web/client/src/sections/fillion/containers/public.js
  14. 42
      web/client/src/sections/fillion/containers/transportation.js

3
web/client/.vscode/settings.json

@ -0,0 +1,3 @@
{
"git.ignoreLimitWarning": true
}

1599
web/client/src/sections/fillion/components/bridgeTable.js

File diff suppressed because it is too large

1599
web/client/src/sections/fillion/components/enforceTable.js

File diff suppressed because it is too large

1599
web/client/src/sections/fillion/components/highwaysTable.js

File diff suppressed because it is too large

3701
web/client/src/sections/fillion/components/operationalTable.js

File diff suppressed because it is too large

9
web/client/src/sections/fillion/components/protable.less

@ -0,0 +1,9 @@
.protable-transpor{
.ant-table-cell-fix-left{
background-color: #ffffff !important;
}
.ant-table-cell-fix-right{
background-color: #ffffff !important;
}
}

2464
web/client/src/sections/fillion/components/publicTable.js

File diff suppressed because it is too large

3631
web/client/src/sections/fillion/components/transportationTable.js

File diff suppressed because it is too large

42
web/client/src/sections/fillion/containers/bridge.js

@ -0,0 +1,42 @@
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import '../style.less';
import { getDepMessage, getReportStatistic } from "../actions/infor"
import BridgeTable from '../components/bridgeTable';
const superagent = require('superagent');
const infor = (props) => {
const { dispatch, user } = props
const [data, setData] = useState()
useEffect(() => {
// dispatch(getDepMessage())
dispatch(getReportStatistic())
setData(props)
}, []);
//批量导出
const exports = (ids, counts) => {
// console.log(user);
let reportIds = [];
if (ids.length)
reportIds = ids
else
reportIds = (counts || {}).ids || [];
superagent.post('/_report/http')
.send({ id: reportIds.map(i => Number(i)) }).end((err, res) => {
const resTextIs = res.text.split('/').pop()
window.open(
'/_api/' +
`attachments?src=files/${resTextIs}&filename=${encodeURIComponent(resTextIs)}&token=${user.token}`)
})
}
return (
<> <BridgeTable data={data} exports={exports} />
</>
)
}
function mapStateToProps(state) {
const { auth } = state
return {
user: auth.user,
}
}
export default connect(mapStateToProps)(infor);

42
web/client/src/sections/fillion/containers/enforce.js

@ -0,0 +1,42 @@
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import '../style.less';
import { getDepMessage, getReportStatistic } from "../actions/infor"
import EnforceTable from '../components/enforceTable';
const superagent = require('superagent');
const enforce = (props) => {
const { dispatch, user } = props
const [data, setData] = useState()
useEffect(() => {
// dispatch(getDepMessage())
dispatch(getReportStatistic())
setData(props)
}, []);
//批量导出
const exports = (ids, counts) => {
// console.log(user);
let reportIds = [];
if (ids.length)
reportIds = ids
else
reportIds = (counts || {}).ids || [];
superagent.post('/_report/http')
.send({ id: reportIds.map(i => Number(i)) }).end((err, res) => {
const resTextIs = res.text.split('/').pop()
window.open(
'/_api/' +
`attachments?src=files/${resTextIs}&filename=${encodeURIComponent(resTextIs)}&token=${user.token}`)
})
}
return (
<> <EnforceTable data={data} exports={exports} />
</>
)
}
function mapStateToProps(state) {
const { auth } = state
return {
user: auth.user,
}
}
export default connect(mapStateToProps)(enforce);

42
web/client/src/sections/fillion/containers/highways.js

@ -0,0 +1,42 @@
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import '../style.less';
import { getDepMessage, getReportStatistic } from "../actions/infor"
import HighwaysTable from '../components/highwaysTable';
const superagent = require('superagent');
const highways = (props) => {
const { dispatch, user } = props
const [data, setData] = useState()
useEffect(() => {
// dispatch(getDepMessage())
dispatch(getReportStatistic())
setData(props)
}, []);
//批量导出
const exports = (ids, counts) => {
// console.log(user);
let reportIds = [];
if (ids.length)
reportIds = ids
else
reportIds = (counts || {}).ids || [];
superagent.post('/_report/http')
.send({ id: reportIds.map(i => Number(i)) }).end((err, res) => {
const resTextIs = res.text.split('/').pop()
window.open(
'/_api/' +
`attachments?src=files/${resTextIs}&filename=${encodeURIComponent(resTextIs)}&token=${user.token}`)
})
}
return (
<> <HighwaysTable data={data} exports={exports} />
</>
)
}
function mapStateToProps(state) {
const { auth } = state
return {
user: auth.user,
}
}
export default connect(mapStateToProps)(highways);

42
web/client/src/sections/fillion/containers/operational.js

@ -0,0 +1,42 @@
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import '../style.less';
import { getDepMessage, getReportStatistic } from "../actions/infor"
import OperaTionalTable from '../components/operationalTable';
const superagent = require('superagent');
const operational = (props) => {
const { dispatch, user } = props
const [data, setData] = useState()
useEffect(() => {
// dispatch(getDepMessage())
dispatch(getReportStatistic())
setData(props)
}, []);
//批量导出
const exports = (ids, counts) => {
// console.log(user);
let reportIds = [];
if (ids.length)
reportIds = ids
else
reportIds = (counts || {}).ids || [];
superagent.post('/_report/http')
.send({ id: reportIds.map(i => Number(i)) }).end((err, res) => {
const resTextIs = res.text.split('/').pop()
window.open(
'/_api/' +
`attachments?src=files/${resTextIs}&filename=${encodeURIComponent(resTextIs)}&token=${user.token}`)
})
}
return (
<> <OperaTionalTable data={data} exports={exports} />
</>
)
}
function mapStateToProps(state) {
const { auth } = state
return {
user: auth.user,
}
}
export default connect(mapStateToProps)(operational);

42
web/client/src/sections/fillion/containers/public.js

@ -0,0 +1,42 @@
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import '../style.less';
import { getDepMessage, getReportStatistic } from "../actions/infor"
import PublicTable from '../components/publicTable';
const superagent = require('superagent');
const Public = (props) => {
const { dispatch, user } = props
const [data, setData] = useState()
useEffect(() => {
// dispatch(getDepMessage())
dispatch(getReportStatistic())
setData(props)
}, []);
//批量导出
const exports = (ids, counts) => {
// console.log(user);
let reportIds = [];
if (ids.length)
reportIds = ids
else
reportIds = (counts || {}).ids || [];
superagent.post('/_report/http')
.send({ id: reportIds.map(i => Number(i)) }).end((err, res) => {
const resTextIs = res.text.split('/').pop()
window.open(
'/_api/' +
`attachments?src=files/${resTextIs}&filename=${encodeURIComponent(resTextIs)}&token=${user.token}`)
})
}
return (
<> <PublicTable data={data} exports={exports} />
</>
)
}
function mapStateToProps(state) {
const { auth } = state
return {
user: auth.user,
}
}
export default connect(mapStateToProps)(Public);

42
web/client/src/sections/fillion/containers/transportation.js

@ -0,0 +1,42 @@
import React, { useEffect, useState } from 'react';
import { connect } from 'react-redux';
import '../style.less';
import { getDepMessage, getReportStatistic } from "../actions/infor"
import TransporTationTable from '../components/transportationTable';
const superagent = require('superagent');
const transportation = (props) => {
const { dispatch, user } = props
const [data, setData] = useState()
useEffect(() => {
// dispatch(getDepMessage())
dispatch(getReportStatistic())
setData(props)
}, []);
//批量导出
const exports = (ids, counts) => {
// console.log(user);
let reportIds = [];
if (ids.length)
reportIds = ids
else
reportIds = (counts || {}).ids || [];
superagent.post('/_report/http')
.send({ id: reportIds.map(i => Number(i)) }).end((err, res) => {
const resTextIs = res.text.split('/').pop()
window.open(
'/_api/' +
`attachments?src=files/${resTextIs}&filename=${encodeURIComponent(resTextIs)}&token=${user.token}`)
})
}
return (
<> <TransporTationTable data={data} exports={exports} />
</>
)
}
function mapStateToProps(state) {
const { auth } = state
return {
user: auth.user,
}
}
export default connect(mapStateToProps)(transportation);
Loading…
Cancel
Save