wangyue 3 years ago
parent
commit
8b89e73aa7
  1. 2
      web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js
  2. 6
      web/client/src/utils/webapi.js

2
web/client/src/sections/quanju/containers/footer/leadership/left/left-top.js

@ -15,7 +15,7 @@ const Lefttop = (props) => {
const [nums, setNums] = useState() const [nums, setNums] = useState()
useEffect(() => { useEffect(() => {
const shuju = dispatch(getGodshuju()).then((res) => { const shuju = dispatch(getGodshuju()).then((res) => {
// console.log(res); console.log(res);
setMass(res.payload.data.index) setMass(res.payload.data.index)
// setMass(70) // setMass(70)
setspeed(res.payload.data.speed) setspeed(res.payload.data.speed)

6
web/client/src/utils/webapi.js

@ -20,7 +20,7 @@ export const ApiTable = {
delUser: 'department/user/{userIds}', delUser: 'department/user/{userIds}',
resetPwd: 'department/user/{userId}/password', resetPwd: 'department/user/{userId}/password',
getgodshuju: "data/god_trans",
//用户权限 //用户权限
getResource: 'resource', getResource: 'resource',
@ -85,7 +85,7 @@ export const ApiTable = {
getRoadMaintenance: 'conserve/statistic', getRoadMaintenance: 'conserve/statistic',
//获取宣传数据 //获取宣传数据
getpropagata: 'publicity',putpropagata:'publicity',delpropagata:'/publicity/{publicityId}', getpropagata: 'publicity', putpropagata: 'publicity', delpropagata: '/publicity/{publicityId}',
// <<<<<<< HEAD // <<<<<<< HEAD
// //公交信息 // //公交信息
// getCircuit: 'bus/line', putCircuit: 'bus/line', delCircuit: 'bus/line/{lineId}', // getCircuit: 'bus/line', putCircuit: 'bus/line', delCircuit: 'bus/line/{lineId}',
@ -147,7 +147,7 @@ export const ApiTable = {
getSpecificVehicle: 'vehicle/specific', putSpecificVehicle: 'vehicle/specific', delSpecificVehicle: 'vehicle/{vehicleId}/specific', getSpecificVehicle: 'vehicle/specific', putSpecificVehicle: 'vehicle/specific', delSpecificVehicle: 'vehicle/{vehicleId}/specific',
getHouseholds: 'vehicle/business', putHouseholds: 'vehicle/business', delHouseholds: 'vehicle/business/{businessId}', getHouseholds: 'vehicle/business', putHouseholds: 'vehicle/business', delHouseholds: 'vehicle/business/{businessId}',
getRoadway: 'road', getRoadway: 'road',
getShippingList:'vehicle/freight',putShippingList:'vehicle/freight', getShippingList: 'vehicle/freight', putShippingList: 'vehicle/freight',
// 获取运政统计 // 获取运政统计
getYunZheng: "transportation/statistic", getYunZheng: "transportation/statistic",

Loading…
Cancel
Save