From d2764525a5ab82dd3f3feefdb97ee1557e1f9a52 Mon Sep 17 00:00:00 2001 From: xingyongchun Date: Fri, 12 Aug 2022 09:47:49 +0800 Subject: [PATCH 1/5] tijiao --- api/log/development.log | 105 +++++ .../src/sections/fillion/actions/infor.js | 22 + .../components/highways/highwaysdata.js | 14 +- .../fillion/components/operationalTable.js | 98 ++++- web/client/src/utils/webapi.js | 2 + web/log/development.txt | 385 ++++++++++++++++++ 6 files changed, 601 insertions(+), 25 deletions(-) diff --git a/api/log/development.log b/api/log/development.log index bfbe3a7a..bfe7a236 100644 --- a/api/log/development.log +++ b/api/log/development.log @@ -10817,8 +10817,113 @@ headers: {} 2022-07-30 17:48:40.152 - info: [FS-AUTH] Inject auth and api mv into router. <<<<<<< Updated upstream >>>>>>> d8f96cea72338cf7a61dea293bd6d0cd5da48bb0 +<<<<<<< Updated upstream ======= 2022-08-11 09:02:08.616 - debug: [FS-LOGGER] Init. 2022-08-11 09:02:08.699 - info: [FS-ATTACHMENT] Inject attachment mw into router. 2022-08-11 09:02:08.699 - info: [FS-AUTH] Inject auth and api mv into router. >>>>>>> Stashed changes +======= +2022-08-11 17:14:25.395 - debug: [FS-LOGGER] Init. +2022-08-11 17:14:25.473 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-08-11 17:14:25.473 - info: [FS-AUTH] Inject auth and api mv into router. +2022-08-11 17:14:25.482 - error: [app] +{ + message: "Unexpected token '<<'", + stack: 'f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\controllers\\data\\index.js:84\n' + + '<<<<<<< HEAD\n' + + '^^\n' + + '\n' + + "SyntaxError: Unexpected token '<<'\n" + + ' at wrapSafe (internal/modules/cjs/loader.js:915:16)\n' + + ' at Module._compile (internal/modules/cjs/loader.js:963:27)\n' + + ' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' + + ' at Module.load (internal/modules/cjs/loader.js:863:32)\n' + + ' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' + + ' at Module.require (internal/modules/cjs/loader.js:887:19)\n' + + ' at require (internal/modules/cjs/helpers.js:74:18)\n' + + ' at Object. (f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' + + ' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' + + ' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' + + ' at Module.load (internal/modules/cjs/loader.js:863:32)\n' + + ' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' + + ' at Module.require (internal/modules/cjs/loader.js:887:19)\n' + + ' at require (internal/modules/cjs/helpers.js:74:18)\n' + + ' at f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\index.js:11:17\n' + + ' at Array.forEach ()\n' + + ' at f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\index.js:9:60\n' + + ' at Array.forEach ()\n' + + ' at module.exports (f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\index.js:7:31)\n' + + ' at Object.module.exports.entry (f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\index.js:21:14)\n' + + ' at f:\\项目\\sihao\\Highways4Good\\api\\node_modules\\fs-web-server-scaffold\\index.js:74:20\n' + + ' at Array.forEach ()' +} +2022-08-12 09:36:43.511 - debug: [FS-LOGGER] Init. +2022-08-12 09:36:43.599 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-08-12 09:36:43.599 - info: [FS-AUTH] Inject auth and api mv into router. +2022-08-12 09:36:43.608 - error: [app] +{ + message: "Unexpected token '<<'", + stack: 'f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\controllers\\data\\index.js:84\n' + + '<<<<<<< HEAD\n' + + '^^\n' + + '\n' + + "SyntaxError: Unexpected token '<<'\n" + + ' at wrapSafe (internal/modules/cjs/loader.js:915:16)\n' + + ' at Module._compile (internal/modules/cjs/loader.js:963:27)\n' + + ' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' + + ' at Module.load (internal/modules/cjs/loader.js:863:32)\n' + + ' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' + + ' at Module.require (internal/modules/cjs/loader.js:887:19)\n' + + ' at require (internal/modules/cjs/helpers.js:74:18)\n' + + ' at Object. (f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' + + ' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' + + ' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' + + ' at Module.load (internal/modules/cjs/loader.js:863:32)\n' + + ' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' + + ' at Module.require (internal/modules/cjs/loader.js:887:19)\n' + + ' at require (internal/modules/cjs/helpers.js:74:18)\n' + + ' at f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\index.js:11:17\n' + + ' at Array.forEach ()\n' + + ' at f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\index.js:9:60\n' + + ' at Array.forEach ()\n' + + ' at module.exports (f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\index.js:7:31)\n' + + ' at Object.module.exports.entry (f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\index.js:21:14)\n' + + ' at f:\\项目\\sihao\\Highways4Good\\api\\node_modules\\fs-web-server-scaffold\\index.js:74:20\n' + + ' at Array.forEach ()' +} +2022-08-12 09:38:24.609 - debug: [FS-LOGGER] Init. +2022-08-12 09:38:24.681 - info: [FS-ATTACHMENT] Inject attachment mw into router. +2022-08-12 09:38:24.681 - info: [FS-AUTH] Inject auth and api mv into router. +2022-08-12 09:38:24.690 - error: [app] +{ + message: "Unexpected token '<<'", + stack: 'f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\controllers\\data\\index.js:84\n' + + '<<<<<<< HEAD\n' + + '^^\n' + + '\n' + + "SyntaxError: Unexpected token '<<'\n" + + ' at wrapSafe (internal/modules/cjs/loader.js:915:16)\n' + + ' at Module._compile (internal/modules/cjs/loader.js:963:27)\n' + + ' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' + + ' at Module.load (internal/modules/cjs/loader.js:863:32)\n' + + ' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' + + ' at Module.require (internal/modules/cjs/loader.js:887:19)\n' + + ' at require (internal/modules/cjs/helpers.js:74:18)\n' + + ' at Object. (f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\data\\index.js:10:19)\n' + + ' at Module._compile (internal/modules/cjs/loader.js:999:30)\n' + + ' at Object.Module._extensions..js (internal/modules/cjs/loader.js:1027:10)\n' + + ' at Module.load (internal/modules/cjs/loader.js:863:32)\n' + + ' at Function.Module._load (internal/modules/cjs/loader.js:708:14)\n' + + ' at Module.require (internal/modules/cjs/loader.js:887:19)\n' + + ' at require (internal/modules/cjs/helpers.js:74:18)\n' + + ' at f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\index.js:11:17\n' + + ' at Array.forEach ()\n' + + ' at f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\index.js:9:60\n' + + ' at Array.forEach ()\n' + + ' at module.exports (f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\routes\\index.js:7:31)\n' + + ' at Object.module.exports.entry (f:\\项目\\sihao\\Highways4Good\\api\\app\\lib\\index.js:21:14)\n' + + ' at f:\\项目\\sihao\\Highways4Good\\api\\node_modules\\fs-web-server-scaffold\\index.js:74:20\n' + + ' at Array.forEach ()' +} +>>>>>>> Stashed changes diff --git a/web/client/src/sections/fillion/actions/infor.js b/web/client/src/sections/fillion/actions/infor.js index e0f884a4..d8b5fcd8 100644 --- a/web/client/src/sections/fillion/actions/infor.js +++ b/web/client/src/sections/fillion/actions/infor.js @@ -367,4 +367,26 @@ export function delPropagata(query) { msg: { option: '删除宣传视频信息' }, // reducer: { name: 'reportstatistic' } }); +} + +export function getShippingList(query) { + return dispatch => basicAction({ + type: 'get', + dispatch: dispatch, + query: query, + actionType: 'GET_SHIPPING_LIST', + url: ApiTable.getShippingList, + msg: { error: '获取货运信息失败' }, + }); +} + +export function putShippingList(query) { + return dispatch => basicAction({ + type: 'put', + dispatch: dispatch, + data: query, + actionType: 'PUT_SHIPPING_LIST', + url: ApiTable.putShippingList, + msg: { error: '编辑货运信息失败' }, + }); } \ No newline at end of file diff --git a/web/client/src/sections/fillion/components/highways/highwaysdata.js b/web/client/src/sections/fillion/components/highways/highwaysdata.js index c5bc3851..e25fb43b 100644 --- a/web/client/src/sections/fillion/components/highways/highwaysdata.js +++ b/web/client/src/sections/fillion/components/highways/highwaysdata.js @@ -47,7 +47,7 @@ const HightModal = (props) => { }} initialValues={recortd} > - {typecard == 'compile' ? + {/* {typecard == 'compile' ? */} { /> - : - {/* */} - } + {/* : + vfdscfd + } */} {/* : '' diff --git a/web/client/src/sections/fillion/components/operationalTable.js b/web/client/src/sections/fillion/components/operationalTable.js index a028fb07..39f2dbe1 100644 --- a/web/client/src/sections/fillion/components/operationalTable.js +++ b/web/client/src/sections/fillion/components/operationalTable.js @@ -3,7 +3,7 @@ import { connect } from 'react-redux'; import { Spin, Button, Popconfirm, Badge } from 'antd'; import ProTable from '@ant-design/pro-table'; import './protable.less' -import { getOperaTional, getSpecificVehicle, getHouseholds, delSpecificVehicle, delHouseholds } from "../actions/infor" +import { getOperaTional, getSpecificVehicle, getHouseholds, delSpecificVehicle, delHouseholds,getShippingList } from "../actions/infor" import UserModal from './infor/details'; import HightModal from './highways/highwaysdata'; @@ -131,7 +131,61 @@ const OperaTionalTable = (props) => { } }, - ], tab2: [ + ], + tab2: [ + { + title: '类型', + dataIndex: 'placeName', + fixed: 'left', + width: 120, + options: 1, + backgroundColor: "#ffffff", + search: false, + + fieldProps: { + + placeholder: '请输入道路名称进行搜索', + getPopupContainer: (triggerNode) => triggerNode.parentNode, + }, + render: (dom, record) => { + return record.name + }, + }, + { + title: '数量', + search: false, + dataIndex: 'containers', + + fixed: 'left', + width: 120, + render: (dom, record) => { + return record.count + }, + fieldProps: { + getPopupContainer: (triggerNode) => triggerNode.parentNode, + } + }, + { + title: '操作', + dataIndex: 'creatTime', + valueType: 'dateTimeRange', + hideInSearch: true, + width: 160, + fixed: 'right', + render: (dom, record) => { + return
+ + } + }, + + ], + tab3: [ { title: '业户名称', dataIndex: 'placeName', @@ -751,7 +805,7 @@ const OperaTionalTable = (props) => { ); }, }, - ], tab3: [ + ], tab4: [ { title: '业户名称', dataIndex: 'placeName', @@ -1384,7 +1438,7 @@ const OperaTionalTable = (props) => { ); }, }, - ], tab4: [ + ], tab5: [ { title: '业户名称', dataIndex: 'placeName', @@ -1860,7 +1914,7 @@ const OperaTionalTable = (props) => { { setRewkeys('keyun') }}>客运{activeKey === 'tab1'}, }, - { + { key: 'tab2', + label: { + setRewkeys('huoyun') + }}>货运{activeKey === 'tab2'}, + }, + { + key: 'tab3', label: { { setRewkeys('chuzu') } - }}>出租车{activeKey === 'tab2'}, + }}>出租车{activeKey === 'tab3'}, }, { - key: 'tab3', + key: 'tab4', label: { { setRewkeys('weihuo') } - }}>危险货运{activeKey === 'tab3'}, + }}>危险货运{activeKey === 'tab4'}, }, { - key: 'tab4', + key: 'tab5', label: { setDifferentiate('business') setRewkeys('yehu') - }}>业户{activeKey === 'tab4'}, - - }, + }}>业户{activeKey === 'tab5'}, + } ], }, }} @@ -1911,7 +1970,7 @@ const OperaTionalTable = (props) => { rowKey='id' // alwaysShowAlert // tableAlertRender={true} - rowSelection={rewkeys == 'keyun' ? false : { + rowSelection={rewkeys == 'keyun'||rewkeys == 'huoyun' ? false : { selectedRowKeys: rowSelected, onChange: (selectedRowKeys) => { setRowSelected(selectedRowKeys); @@ -1933,6 +1992,15 @@ const OperaTionalTable = (props) => { ...res, total: res.payload.data ? res.payload.data.count : 0 } + }if (rewkeys == 'huoyun') { + const query = {} + setRowSelected([]); + const res = await dispatch(getShippingList(query)); + setCounts(res.payload.data) + return { + ...res, + total: res.payload.data ? res.payload.data.count : 0 + } } if (rewkeys == 'chuzu') { const query = { @@ -1977,7 +2045,7 @@ const OperaTionalTable = (props) => { defaultCollapsed: false, optionRender: (searchConfig, formProps, dom) => [ ...dom.reverse(), - ['tab2', 'tab3', 'tab4'].includes(activeKey) ? { props.exports(rowSelected, differentiate, genre) }}> + ['tab3', 'tab4', 'tab5'].includes(activeKey) ? { props.exports(rowSelected, differentiate, genre) }}>