From f3fe55f98c59dffc647a6440b2d236bea4440676 Mon Sep 17 00:00:00 2001 From: kongdeqiang <123456> Date: 星期五, 10 二月 2023 17:03:32 +0800 Subject: [PATCH] 提交更新 --- src/api/open.js | 61 +++++++++++++++++++++++++++++- 1 files changed, 58 insertions(+), 3 deletions(-) diff --git a/src/api/open.js b/src/api/open.js index a5c103d..ca481b8 100644 --- a/src/api/open.js +++ b/src/api/open.js @@ -1,5 +1,5 @@ // 缁熶竴璇锋眰璺緞鍓嶇紑鍦╨ibs/axios.js涓慨鏀� -import { getRequest, getNoAuthRequest, postNoAuthRequest, postRequest, putRequest } from '@/libs/axios'; +import { getRequest, getNoAuthRequest, postNoAuthRequest, postRequest, putRequest, getmethod } from '@/libs/axios'; // 璁よ瘉 @@ -18,7 +18,6 @@ export const token = (params) => { return getNoAuthRequest('/oauth2/token', params) } - // 鑾峰彇闅忔満secretKey @@ -225,4 +224,60 @@ //鏌ヨ璁㈠崟璇勪环 export const getOrderEvaluate = (params) => { return getRequest('/orderTask/getByPage', params) -} \ No newline at end of file +} + +//鏌ヨ杩濈珷璁板綍 +export const getViolation = (params) => { + return getRequest('/violation/getByPage', params) +} + +//娣诲姞淇敼杩濈珷璁板綍 +export const editViolation = (params) => { + return postRequest('/violation/insertOrUpdate', params) +} + +// 鍒犻櫎杩濈珷璁板綍 +export const deleteViolation = (params) => { + return postRequest('/violation/delByIds', params) +} + +// 鏌ヨ杩濈珷璁板綍 +export const getDrivingRecord = (params) => { + return getRequest('/drivingRecord/getByPage', params) +} + +// 鏌ヨ鐗囧尯鎵�鏈� +export const getAllArea = (params) => { + return getRequest('/area/getAll', params) +} + +export const getAllByAreaId = (params) => { + return getRequest('/areaMap/getAllById', params) +} + +export const addAreaMap = (params) => { + return postRequest('/areaMap/insertOrUpdate', params) +} + +export const delAreaMap = (params) => { + return postRequest('/areaMap/delById2', params) +} + +//鏌ヨ杩濈珷璁板綍 +export const findPageOrderTask2 = (params) => { + return getRequest('/orderTask2/getByPage', params) +} + +//閰嶉�佷俊鎭粺璁¤〃 +//鑾峰彇鎵�鏈夌鏀剁粺璁″垪琛ㄤ俊鎭� +export const getSignList = (pageNum, pageSize, carName, sendDateStart, sendDateEnd) => { + return getRequest(`/signCount/selectBySign?pageSize=${pageSize}&pageNum=${pageNum}&carName=${carName}&sendDateStart=${sendDateStart}&sendDateEnd=${sendDateEnd}`) +} +export const getSignByMonth = (pageNum, pageSize, carName,StatisticalType) => { + return getRequest(`/signCount/selectBySign?pageSize=${pageSize}&pageNum=${pageNum}&carName=${carName}&StatisticalType=${StatisticalType}`) +} +// 绛炬敹缁熻瀵煎嚭鍒楄〃 +export const outExcel = (pageNum, pageSize, carName, sendDateStart, sendDateEnd) => { + return getmethod(`/signCount/outExcels?pageSize=${pageSize}&pageNum=${pageNum}&carName=${carName}&sendDateStart=${sendDateStart}&sendDateEnd=${sendDateEnd}`) +} + -- Gitblit v1.9.1