From 8b89e73aa7f88f7ce73ec69bf3737db3ef0a5bca Mon Sep 17 00:00:00 2001 From: wangyue Date: Fri, 12 Aug 2022 17:08:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../footer/leadership/left/left-top.js | 2 +- web/client/src/utils/webapi.js | 26 +++++++++---------- 2 files changed, 14 insertions(+), 14 deletions(-) diff --git a/web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js b/web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js index efcae283..eb209605 100644 --- a/web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js +++ b/web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js @@ -15,7 +15,7 @@ const Lefttop = (props) => { const [nums, setNums] = useState() useEffect(() => { const shuju = dispatch(getGodshuju()).then((res) => { - // console.log(res); + console.log(res); setMass(res.payload.data.index) // setMass(70) setspeed(res.payload.data.speed) diff --git a/web/client/src/utils/webapi.js b/web/client/src/utils/webapi.js index 6730c74a..5388196c 100644 --- a/web/client/src/utils/webapi.js +++ b/web/client/src/utils/webapi.js @@ -20,7 +20,7 @@ export const ApiTable = { delUser: 'department/user/{userIds}', resetPwd: 'department/user/{userId}/password', - + getgodshuju: "data/god_trans", //用户权限 getResource: 'resource', @@ -84,16 +84,16 @@ export const ApiTable = { //获取道路养护统计及列表 getRoadMaintenance: 'conserve/statistic', - //获取宣传数据 - getpropagata: 'publicity',putpropagata:'publicity',delpropagata:'/publicity/{publicityId}', - // <<<<<<< HEAD - // //公交信息 - // getCircuit: 'bus/line', putCircuit: 'bus/line', delCircuit: 'bus/line/{lineId}', - // getVehicle: 'bus/car', putVehicle: 'bus/car', delVehicle: 'bus/car/{carId}', - // ======= - //公交信息 - getCircuit: 'bus/line', putCircuit: 'bus/line', delCircuit: 'bus/line/{lineId}', - getVehicle: 'bus/car', putVehicle: 'bus/car', delVehicle: 'bus/car/{carId}', + //获取宣传数据 + getpropagata: 'publicity', putpropagata: 'publicity', delpropagata: '/publicity/{publicityId}', + // <<<<<<< HEAD + // //公交信息 + // getCircuit: 'bus/line', putCircuit: 'bus/line', delCircuit: 'bus/line/{lineId}', + // getVehicle: 'bus/car', putVehicle: 'bus/car', delVehicle: 'bus/car/{carId}', + // ======= + //公交信息 + getCircuit: 'bus/line', putCircuit: 'bus/line', delCircuit: 'bus/line/{lineId}', + getVehicle: 'bus/car', putVehicle: 'bus/car', delVehicle: 'bus/car/{carId}', @@ -147,8 +147,8 @@ export const ApiTable = { getSpecificVehicle: 'vehicle/specific', putSpecificVehicle: 'vehicle/specific', delSpecificVehicle: 'vehicle/{vehicleId}/specific', getHouseholds: 'vehicle/business', putHouseholds: 'vehicle/business', delHouseholds: 'vehicle/business/{businessId}', getRoadway: 'road', - getShippingList:'vehicle/freight',putShippingList:'vehicle/freight', - + getShippingList: 'vehicle/freight', putShippingList: 'vehicle/freight', + // 获取运政统计 getYunZheng: "transportation/statistic", //桥梁管理