diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/src/api/common.js b/src/api/common.js index 0d04929..76caba7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -19,7 +19,7 @@ const param = new FormData() param.append('file', fileobj.file) return request({ - url: 'imageUpload', + url: 'fileUpload', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/src/api/common.js b/src/api/common.js index 0d04929..76caba7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -19,7 +19,7 @@ const param = new FormData() param.append('file', fileobj.file) return request({ - url: 'imageUpload', + url: 'fileUpload', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param diff --git a/src/api/sanitation/car.js b/src/api/sanitation/car.js index 8abcfec..0133751 100644 --- a/src/api/sanitation/car.js +++ b/src/api/sanitation/car.js @@ -16,13 +16,11 @@ }) } // 车辆查询 -export function getCarList(pid) { +export function getCarList(params) { return request({ - url: '/car/busCarInfo/list', + url: '/car/busCarPosition/list', method: 'get', - params: { - pid: pid - } + params }) } // 车辆详情 @@ -52,10 +50,10 @@ // 删除车辆机构 export function delCar(ids) { return request({ - url: '/car/busCarInfo/delete', + url: '/car/busCarInfo/batchDelete', method: 'post', params: { - ids + busCarInfoIds: ids }, paramsSerializer: params => { return qs.stringify(params, { indices: false }) @@ -85,3 +83,12 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 车辆查询 +export function getCarJobRecords(params) { + return request({ + url: '/sanitation/carJobRecord/listPage', + method: 'get', + params + }) +} diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/src/api/common.js b/src/api/common.js index 0d04929..76caba7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -19,7 +19,7 @@ const param = new FormData() param.append('file', fileobj.file) return request({ - url: 'imageUpload', + url: 'fileUpload', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param diff --git a/src/api/sanitation/car.js b/src/api/sanitation/car.js index 8abcfec..0133751 100644 --- a/src/api/sanitation/car.js +++ b/src/api/sanitation/car.js @@ -16,13 +16,11 @@ }) } // 车辆查询 -export function getCarList(pid) { +export function getCarList(params) { return request({ - url: '/car/busCarInfo/list', + url: '/car/busCarPosition/list', method: 'get', - params: { - pid: pid - } + params }) } // 车辆详情 @@ -52,10 +50,10 @@ // 删除车辆机构 export function delCar(ids) { return request({ - url: '/car/busCarInfo/delete', + url: '/car/busCarInfo/batchDelete', method: 'post', params: { - ids + busCarInfoIds: ids }, paramsSerializer: params => { return qs.stringify(params, { indices: false }) @@ -85,3 +83,12 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 车辆查询 +export function getCarJobRecords(params) { + return request({ + url: '/sanitation/carJobRecord/listPage', + method: 'get', + params + }) +} diff --git a/src/api/sanitation/staff.js b/src/api/sanitation/staff.js index 46fa8f0..f215ea6 100644 --- a/src/api/sanitation/staff.js +++ b/src/api/sanitation/staff.js @@ -82,7 +82,7 @@ // 人员出勤记录查询 export function getAttendanceList(params) { return request({ - url: '/sanitation/stuff/attendanceList', + url: '/sanitation/staff/attendanceList', method: 'get', params }) diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/src/api/common.js b/src/api/common.js index 0d04929..76caba7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -19,7 +19,7 @@ const param = new FormData() param.append('file', fileobj.file) return request({ - url: 'imageUpload', + url: 'fileUpload', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param diff --git a/src/api/sanitation/car.js b/src/api/sanitation/car.js index 8abcfec..0133751 100644 --- a/src/api/sanitation/car.js +++ b/src/api/sanitation/car.js @@ -16,13 +16,11 @@ }) } // 车辆查询 -export function getCarList(pid) { +export function getCarList(params) { return request({ - url: '/car/busCarInfo/list', + url: '/car/busCarPosition/list', method: 'get', - params: { - pid: pid - } + params }) } // 车辆详情 @@ -52,10 +50,10 @@ // 删除车辆机构 export function delCar(ids) { return request({ - url: '/car/busCarInfo/delete', + url: '/car/busCarInfo/batchDelete', method: 'post', params: { - ids + busCarInfoIds: ids }, paramsSerializer: params => { return qs.stringify(params, { indices: false }) @@ -85,3 +83,12 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 车辆查询 +export function getCarJobRecords(params) { + return request({ + url: '/sanitation/carJobRecord/listPage', + method: 'get', + params + }) +} diff --git a/src/api/sanitation/staff.js b/src/api/sanitation/staff.js index 46fa8f0..f215ea6 100644 --- a/src/api/sanitation/staff.js +++ b/src/api/sanitation/staff.js @@ -82,7 +82,7 @@ // 人员出勤记录查询 export function getAttendanceList(params) { return request({ - url: '/sanitation/stuff/attendanceList', + url: '/sanitation/staff/attendanceList', method: 'get', params }) diff --git a/src/api/sanitation/statistics.js b/src/api/sanitation/statistics.js new file mode 100644 index 0000000..6dc667f --- /dev/null +++ b/src/api/sanitation/statistics.js @@ -0,0 +1,44 @@ + +/** + * 考核统计接口 + */ +import request from '@/utils/request' +// 人员出勤统计 +export function getAttendancePercent(params) { + return request({ + url: '/sanitation/stuff/attendancePercent', + method: 'get', + params + }) +} +// 公厕保洁次数统计 +export function getToiletJobCount(params) { + return request({ + url: '/sanitation/statistic/toilet/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getTransferJobCount(params) { + return request({ + url: '/sanitation/statistic/transfer/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getCleanJobCount(params) { + return request({ + url: '/sanitation/statistic/clean/jobCount', + method: 'get', + params + }) +} +// 人员/设施统计 +export function getSingleCount(type) { + return request({ + url: '/sanitation/statistic/' + type, + method: 'get' + }) +} diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/src/api/common.js b/src/api/common.js index 0d04929..76caba7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -19,7 +19,7 @@ const param = new FormData() param.append('file', fileobj.file) return request({ - url: 'imageUpload', + url: 'fileUpload', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param diff --git a/src/api/sanitation/car.js b/src/api/sanitation/car.js index 8abcfec..0133751 100644 --- a/src/api/sanitation/car.js +++ b/src/api/sanitation/car.js @@ -16,13 +16,11 @@ }) } // 车辆查询 -export function getCarList(pid) { +export function getCarList(params) { return request({ - url: '/car/busCarInfo/list', + url: '/car/busCarPosition/list', method: 'get', - params: { - pid: pid - } + params }) } // 车辆详情 @@ -52,10 +50,10 @@ // 删除车辆机构 export function delCar(ids) { return request({ - url: '/car/busCarInfo/delete', + url: '/car/busCarInfo/batchDelete', method: 'post', params: { - ids + busCarInfoIds: ids }, paramsSerializer: params => { return qs.stringify(params, { indices: false }) @@ -85,3 +83,12 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 车辆查询 +export function getCarJobRecords(params) { + return request({ + url: '/sanitation/carJobRecord/listPage', + method: 'get', + params + }) +} diff --git a/src/api/sanitation/staff.js b/src/api/sanitation/staff.js index 46fa8f0..f215ea6 100644 --- a/src/api/sanitation/staff.js +++ b/src/api/sanitation/staff.js @@ -82,7 +82,7 @@ // 人员出勤记录查询 export function getAttendanceList(params) { return request({ - url: '/sanitation/stuff/attendanceList', + url: '/sanitation/staff/attendanceList', method: 'get', params }) diff --git a/src/api/sanitation/statistics.js b/src/api/sanitation/statistics.js new file mode 100644 index 0000000..6dc667f --- /dev/null +++ b/src/api/sanitation/statistics.js @@ -0,0 +1,44 @@ + +/** + * 考核统计接口 + */ +import request from '@/utils/request' +// 人员出勤统计 +export function getAttendancePercent(params) { + return request({ + url: '/sanitation/stuff/attendancePercent', + method: 'get', + params + }) +} +// 公厕保洁次数统计 +export function getToiletJobCount(params) { + return request({ + url: '/sanitation/statistic/toilet/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getTransferJobCount(params) { + return request({ + url: '/sanitation/statistic/transfer/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getCleanJobCount(params) { + return request({ + url: '/sanitation/statistic/clean/jobCount', + method: 'get', + params + }) +} +// 人员/设施统计 +export function getSingleCount(type) { + return request({ + url: '/sanitation/statistic/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/toilet.js b/src/api/sanitation/toilet.js index 0828bb4..04bc9dd 100644 --- a/src/api/sanitation/toilet.js +++ b/src/api/sanitation/toilet.js @@ -83,3 +83,24 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 公厕保洁记录查询 +export function getToiletJobRecords(params) { + return request({ + url: '/sanitation/toilet/jobRecord', + method: 'get', + params + }) +} + +// 批量导出 +export function batchExportToiletJobRecords(params, config) { + return request({ + url: '/sanitation/toilet/exportJobRecord', + method: 'get', + timeout: 120000, + params, + ...config, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/src/api/common.js b/src/api/common.js index 0d04929..76caba7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -19,7 +19,7 @@ const param = new FormData() param.append('file', fileobj.file) return request({ - url: 'imageUpload', + url: 'fileUpload', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param diff --git a/src/api/sanitation/car.js b/src/api/sanitation/car.js index 8abcfec..0133751 100644 --- a/src/api/sanitation/car.js +++ b/src/api/sanitation/car.js @@ -16,13 +16,11 @@ }) } // 车辆查询 -export function getCarList(pid) { +export function getCarList(params) { return request({ - url: '/car/busCarInfo/list', + url: '/car/busCarPosition/list', method: 'get', - params: { - pid: pid - } + params }) } // 车辆详情 @@ -52,10 +50,10 @@ // 删除车辆机构 export function delCar(ids) { return request({ - url: '/car/busCarInfo/delete', + url: '/car/busCarInfo/batchDelete', method: 'post', params: { - ids + busCarInfoIds: ids }, paramsSerializer: params => { return qs.stringify(params, { indices: false }) @@ -85,3 +83,12 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 车辆查询 +export function getCarJobRecords(params) { + return request({ + url: '/sanitation/carJobRecord/listPage', + method: 'get', + params + }) +} diff --git a/src/api/sanitation/staff.js b/src/api/sanitation/staff.js index 46fa8f0..f215ea6 100644 --- a/src/api/sanitation/staff.js +++ b/src/api/sanitation/staff.js @@ -82,7 +82,7 @@ // 人员出勤记录查询 export function getAttendanceList(params) { return request({ - url: '/sanitation/stuff/attendanceList', + url: '/sanitation/staff/attendanceList', method: 'get', params }) diff --git a/src/api/sanitation/statistics.js b/src/api/sanitation/statistics.js new file mode 100644 index 0000000..6dc667f --- /dev/null +++ b/src/api/sanitation/statistics.js @@ -0,0 +1,44 @@ + +/** + * 考核统计接口 + */ +import request from '@/utils/request' +// 人员出勤统计 +export function getAttendancePercent(params) { + return request({ + url: '/sanitation/stuff/attendancePercent', + method: 'get', + params + }) +} +// 公厕保洁次数统计 +export function getToiletJobCount(params) { + return request({ + url: '/sanitation/statistic/toilet/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getTransferJobCount(params) { + return request({ + url: '/sanitation/statistic/transfer/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getCleanJobCount(params) { + return request({ + url: '/sanitation/statistic/clean/jobCount', + method: 'get', + params + }) +} +// 人员/设施统计 +export function getSingleCount(type) { + return request({ + url: '/sanitation/statistic/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/toilet.js b/src/api/sanitation/toilet.js index 0828bb4..04bc9dd 100644 --- a/src/api/sanitation/toilet.js +++ b/src/api/sanitation/toilet.js @@ -83,3 +83,24 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 公厕保洁记录查询 +export function getToiletJobRecords(params) { + return request({ + url: '/sanitation/toilet/jobRecord', + method: 'get', + params + }) +} + +// 批量导出 +export function batchExportToiletJobRecords(params, config) { + return request({ + url: '/sanitation/toilet/exportJobRecord', + method: 'get', + timeout: 120000, + params, + ...config, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/sanitation/wastebin.js b/src/api/sanitation/wastebin.js index f4bc6bc..ce32cbe 100644 --- a/src/api/sanitation/wastebin.js +++ b/src/api/sanitation/wastebin.js @@ -33,7 +33,7 @@ // 修改垃圾桶机构 export function updateWastebin(params) { return request({ - url: '/sanitation/area/update', + url: '/sanitation/wastebin/update', method: 'post', params }) diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/src/api/common.js b/src/api/common.js index 0d04929..76caba7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -19,7 +19,7 @@ const param = new FormData() param.append('file', fileobj.file) return request({ - url: 'imageUpload', + url: 'fileUpload', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param diff --git a/src/api/sanitation/car.js b/src/api/sanitation/car.js index 8abcfec..0133751 100644 --- a/src/api/sanitation/car.js +++ b/src/api/sanitation/car.js @@ -16,13 +16,11 @@ }) } // 车辆查询 -export function getCarList(pid) { +export function getCarList(params) { return request({ - url: '/car/busCarInfo/list', + url: '/car/busCarPosition/list', method: 'get', - params: { - pid: pid - } + params }) } // 车辆详情 @@ -52,10 +50,10 @@ // 删除车辆机构 export function delCar(ids) { return request({ - url: '/car/busCarInfo/delete', + url: '/car/busCarInfo/batchDelete', method: 'post', params: { - ids + busCarInfoIds: ids }, paramsSerializer: params => { return qs.stringify(params, { indices: false }) @@ -85,3 +83,12 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 车辆查询 +export function getCarJobRecords(params) { + return request({ + url: '/sanitation/carJobRecord/listPage', + method: 'get', + params + }) +} diff --git a/src/api/sanitation/staff.js b/src/api/sanitation/staff.js index 46fa8f0..f215ea6 100644 --- a/src/api/sanitation/staff.js +++ b/src/api/sanitation/staff.js @@ -82,7 +82,7 @@ // 人员出勤记录查询 export function getAttendanceList(params) { return request({ - url: '/sanitation/stuff/attendanceList', + url: '/sanitation/staff/attendanceList', method: 'get', params }) diff --git a/src/api/sanitation/statistics.js b/src/api/sanitation/statistics.js new file mode 100644 index 0000000..6dc667f --- /dev/null +++ b/src/api/sanitation/statistics.js @@ -0,0 +1,44 @@ + +/** + * 考核统计接口 + */ +import request from '@/utils/request' +// 人员出勤统计 +export function getAttendancePercent(params) { + return request({ + url: '/sanitation/stuff/attendancePercent', + method: 'get', + params + }) +} +// 公厕保洁次数统计 +export function getToiletJobCount(params) { + return request({ + url: '/sanitation/statistic/toilet/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getTransferJobCount(params) { + return request({ + url: '/sanitation/statistic/transfer/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getCleanJobCount(params) { + return request({ + url: '/sanitation/statistic/clean/jobCount', + method: 'get', + params + }) +} +// 人员/设施统计 +export function getSingleCount(type) { + return request({ + url: '/sanitation/statistic/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/toilet.js b/src/api/sanitation/toilet.js index 0828bb4..04bc9dd 100644 --- a/src/api/sanitation/toilet.js +++ b/src/api/sanitation/toilet.js @@ -83,3 +83,24 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 公厕保洁记录查询 +export function getToiletJobRecords(params) { + return request({ + url: '/sanitation/toilet/jobRecord', + method: 'get', + params + }) +} + +// 批量导出 +export function batchExportToiletJobRecords(params, config) { + return request({ + url: '/sanitation/toilet/exportJobRecord', + method: 'get', + timeout: 120000, + params, + ...config, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/sanitation/wastebin.js b/src/api/sanitation/wastebin.js index f4bc6bc..ce32cbe 100644 --- a/src/api/sanitation/wastebin.js +++ b/src/api/sanitation/wastebin.js @@ -33,7 +33,7 @@ // 修改垃圾桶机构 export function updateWastebin(params) { return request({ - url: '/sanitation/area/update', + url: '/sanitation/wastebin/update', method: 'post', params }) diff --git a/src/assets/global_images/toiletPhoto.png b/src/assets/global_images/toiletPhoto.png new file mode 100644 index 0000000..15d08e2 --- /dev/null +++ b/src/assets/global_images/toiletPhoto.png Binary files differ diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/src/api/common.js b/src/api/common.js index 0d04929..76caba7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -19,7 +19,7 @@ const param = new FormData() param.append('file', fileobj.file) return request({ - url: 'imageUpload', + url: 'fileUpload', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param diff --git a/src/api/sanitation/car.js b/src/api/sanitation/car.js index 8abcfec..0133751 100644 --- a/src/api/sanitation/car.js +++ b/src/api/sanitation/car.js @@ -16,13 +16,11 @@ }) } // 车辆查询 -export function getCarList(pid) { +export function getCarList(params) { return request({ - url: '/car/busCarInfo/list', + url: '/car/busCarPosition/list', method: 'get', - params: { - pid: pid - } + params }) } // 车辆详情 @@ -52,10 +50,10 @@ // 删除车辆机构 export function delCar(ids) { return request({ - url: '/car/busCarInfo/delete', + url: '/car/busCarInfo/batchDelete', method: 'post', params: { - ids + busCarInfoIds: ids }, paramsSerializer: params => { return qs.stringify(params, { indices: false }) @@ -85,3 +83,12 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 车辆查询 +export function getCarJobRecords(params) { + return request({ + url: '/sanitation/carJobRecord/listPage', + method: 'get', + params + }) +} diff --git a/src/api/sanitation/staff.js b/src/api/sanitation/staff.js index 46fa8f0..f215ea6 100644 --- a/src/api/sanitation/staff.js +++ b/src/api/sanitation/staff.js @@ -82,7 +82,7 @@ // 人员出勤记录查询 export function getAttendanceList(params) { return request({ - url: '/sanitation/stuff/attendanceList', + url: '/sanitation/staff/attendanceList', method: 'get', params }) diff --git a/src/api/sanitation/statistics.js b/src/api/sanitation/statistics.js new file mode 100644 index 0000000..6dc667f --- /dev/null +++ b/src/api/sanitation/statistics.js @@ -0,0 +1,44 @@ + +/** + * 考核统计接口 + */ +import request from '@/utils/request' +// 人员出勤统计 +export function getAttendancePercent(params) { + return request({ + url: '/sanitation/stuff/attendancePercent', + method: 'get', + params + }) +} +// 公厕保洁次数统计 +export function getToiletJobCount(params) { + return request({ + url: '/sanitation/statistic/toilet/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getTransferJobCount(params) { + return request({ + url: '/sanitation/statistic/transfer/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getCleanJobCount(params) { + return request({ + url: '/sanitation/statistic/clean/jobCount', + method: 'get', + params + }) +} +// 人员/设施统计 +export function getSingleCount(type) { + return request({ + url: '/sanitation/statistic/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/toilet.js b/src/api/sanitation/toilet.js index 0828bb4..04bc9dd 100644 --- a/src/api/sanitation/toilet.js +++ b/src/api/sanitation/toilet.js @@ -83,3 +83,24 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 公厕保洁记录查询 +export function getToiletJobRecords(params) { + return request({ + url: '/sanitation/toilet/jobRecord', + method: 'get', + params + }) +} + +// 批量导出 +export function batchExportToiletJobRecords(params, config) { + return request({ + url: '/sanitation/toilet/exportJobRecord', + method: 'get', + timeout: 120000, + params, + ...config, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/sanitation/wastebin.js b/src/api/sanitation/wastebin.js index f4bc6bc..ce32cbe 100644 --- a/src/api/sanitation/wastebin.js +++ b/src/api/sanitation/wastebin.js @@ -33,7 +33,7 @@ // 修改垃圾桶机构 export function updateWastebin(params) { return request({ - url: '/sanitation/area/update', + url: '/sanitation/wastebin/update', method: 'post', params }) diff --git a/src/assets/global_images/toiletPhoto.png b/src/assets/global_images/toiletPhoto.png new file mode 100644 index 0000000..15d08e2 --- /dev/null +++ b/src/assets/global_images/toiletPhoto.png Binary files differ diff --git a/src/assets/global_images/transferStationPhoto.png b/src/assets/global_images/transferStationPhoto.png new file mode 100644 index 0000000..9967c96 --- /dev/null +++ b/src/assets/global_images/transferStationPhoto.png Binary files differ diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/src/api/common.js b/src/api/common.js index 0d04929..76caba7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -19,7 +19,7 @@ const param = new FormData() param.append('file', fileobj.file) return request({ - url: 'imageUpload', + url: 'fileUpload', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param diff --git a/src/api/sanitation/car.js b/src/api/sanitation/car.js index 8abcfec..0133751 100644 --- a/src/api/sanitation/car.js +++ b/src/api/sanitation/car.js @@ -16,13 +16,11 @@ }) } // 车辆查询 -export function getCarList(pid) { +export function getCarList(params) { return request({ - url: '/car/busCarInfo/list', + url: '/car/busCarPosition/list', method: 'get', - params: { - pid: pid - } + params }) } // 车辆详情 @@ -52,10 +50,10 @@ // 删除车辆机构 export function delCar(ids) { return request({ - url: '/car/busCarInfo/delete', + url: '/car/busCarInfo/batchDelete', method: 'post', params: { - ids + busCarInfoIds: ids }, paramsSerializer: params => { return qs.stringify(params, { indices: false }) @@ -85,3 +83,12 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 车辆查询 +export function getCarJobRecords(params) { + return request({ + url: '/sanitation/carJobRecord/listPage', + method: 'get', + params + }) +} diff --git a/src/api/sanitation/staff.js b/src/api/sanitation/staff.js index 46fa8f0..f215ea6 100644 --- a/src/api/sanitation/staff.js +++ b/src/api/sanitation/staff.js @@ -82,7 +82,7 @@ // 人员出勤记录查询 export function getAttendanceList(params) { return request({ - url: '/sanitation/stuff/attendanceList', + url: '/sanitation/staff/attendanceList', method: 'get', params }) diff --git a/src/api/sanitation/statistics.js b/src/api/sanitation/statistics.js new file mode 100644 index 0000000..6dc667f --- /dev/null +++ b/src/api/sanitation/statistics.js @@ -0,0 +1,44 @@ + +/** + * 考核统计接口 + */ +import request from '@/utils/request' +// 人员出勤统计 +export function getAttendancePercent(params) { + return request({ + url: '/sanitation/stuff/attendancePercent', + method: 'get', + params + }) +} +// 公厕保洁次数统计 +export function getToiletJobCount(params) { + return request({ + url: '/sanitation/statistic/toilet/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getTransferJobCount(params) { + return request({ + url: '/sanitation/statistic/transfer/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getCleanJobCount(params) { + return request({ + url: '/sanitation/statistic/clean/jobCount', + method: 'get', + params + }) +} +// 人员/设施统计 +export function getSingleCount(type) { + return request({ + url: '/sanitation/statistic/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/toilet.js b/src/api/sanitation/toilet.js index 0828bb4..04bc9dd 100644 --- a/src/api/sanitation/toilet.js +++ b/src/api/sanitation/toilet.js @@ -83,3 +83,24 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 公厕保洁记录查询 +export function getToiletJobRecords(params) { + return request({ + url: '/sanitation/toilet/jobRecord', + method: 'get', + params + }) +} + +// 批量导出 +export function batchExportToiletJobRecords(params, config) { + return request({ + url: '/sanitation/toilet/exportJobRecord', + method: 'get', + timeout: 120000, + params, + ...config, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/sanitation/wastebin.js b/src/api/sanitation/wastebin.js index f4bc6bc..ce32cbe 100644 --- a/src/api/sanitation/wastebin.js +++ b/src/api/sanitation/wastebin.js @@ -33,7 +33,7 @@ // 修改垃圾桶机构 export function updateWastebin(params) { return request({ - url: '/sanitation/area/update', + url: '/sanitation/wastebin/update', method: 'post', params }) diff --git a/src/assets/global_images/toiletPhoto.png b/src/assets/global_images/toiletPhoto.png new file mode 100644 index 0000000..15d08e2 --- /dev/null +++ b/src/assets/global_images/toiletPhoto.png Binary files differ diff --git a/src/assets/global_images/transferStationPhoto.png b/src/assets/global_images/transferStationPhoto.png new file mode 100644 index 0000000..9967c96 --- /dev/null +++ b/src/assets/global_images/transferStationPhoto.png Binary files differ diff --git a/src/assets/icons/icon-position.png b/src/assets/icons/icon-position.png new file mode 100644 index 0000000..7444038 --- /dev/null +++ b/src/assets/icons/icon-position.png Binary files differ diff --git a/config/index.js b/config/index.js index 8abd37a..40fc3b6 100644 --- a/config/index.js +++ b/config/index.js @@ -69,7 +69,7 @@ * then assetsPublicPath should be set to "/bar/". * In most cases please use '/' !!! */ - assetsPublicPath: '/', + assetsPublicPath: '/sanitation', /** * Source Maps diff --git a/config/prod.env.js b/config/prod.env.js index a0dc3de..f44a651 100644 --- a/config/prod.env.js +++ b/config/prod.env.js @@ -2,5 +2,5 @@ module.exports = { NODE_ENV: '"production"', // BASE_API: '"http://119.254.103.80:14537"', - BASE_API: '"http://192.168.8.201:8083"' + BASE_API: '"http://111.198.10.15:11409"' } diff --git a/src/api/common.js b/src/api/common.js index 0d04929..76caba7 100644 --- a/src/api/common.js +++ b/src/api/common.js @@ -19,7 +19,7 @@ const param = new FormData() param.append('file', fileobj.file) return request({ - url: 'imageUpload', + url: 'fileUpload', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param diff --git a/src/api/sanitation/car.js b/src/api/sanitation/car.js index 8abcfec..0133751 100644 --- a/src/api/sanitation/car.js +++ b/src/api/sanitation/car.js @@ -16,13 +16,11 @@ }) } // 车辆查询 -export function getCarList(pid) { +export function getCarList(params) { return request({ - url: '/car/busCarInfo/list', + url: '/car/busCarPosition/list', method: 'get', - params: { - pid: pid - } + params }) } // 车辆详情 @@ -52,10 +50,10 @@ // 删除车辆机构 export function delCar(ids) { return request({ - url: '/car/busCarInfo/delete', + url: '/car/busCarInfo/batchDelete', method: 'post', params: { - ids + busCarInfoIds: ids }, paramsSerializer: params => { return qs.stringify(params, { indices: false }) @@ -85,3 +83,12 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 车辆查询 +export function getCarJobRecords(params) { + return request({ + url: '/sanitation/carJobRecord/listPage', + method: 'get', + params + }) +} diff --git a/src/api/sanitation/staff.js b/src/api/sanitation/staff.js index 46fa8f0..f215ea6 100644 --- a/src/api/sanitation/staff.js +++ b/src/api/sanitation/staff.js @@ -82,7 +82,7 @@ // 人员出勤记录查询 export function getAttendanceList(params) { return request({ - url: '/sanitation/stuff/attendanceList', + url: '/sanitation/staff/attendanceList', method: 'get', params }) diff --git a/src/api/sanitation/statistics.js b/src/api/sanitation/statistics.js new file mode 100644 index 0000000..6dc667f --- /dev/null +++ b/src/api/sanitation/statistics.js @@ -0,0 +1,44 @@ + +/** + * 考核统计接口 + */ +import request from '@/utils/request' +// 人员出勤统计 +export function getAttendancePercent(params) { + return request({ + url: '/sanitation/stuff/attendancePercent', + method: 'get', + params + }) +} +// 公厕保洁次数统计 +export function getToiletJobCount(params) { + return request({ + url: '/sanitation/statistic/toilet/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getTransferJobCount(params) { + return request({ + url: '/sanitation/statistic/transfer/jobCount', + method: 'get', + params + }) +} +// 垃圾清运次数统计 +export function getCleanJobCount(params) { + return request({ + url: '/sanitation/statistic/clean/jobCount', + method: 'get', + params + }) +} +// 人员/设施统计 +export function getSingleCount(type) { + return request({ + url: '/sanitation/statistic/' + type, + method: 'get' + }) +} diff --git a/src/api/sanitation/toilet.js b/src/api/sanitation/toilet.js index 0828bb4..04bc9dd 100644 --- a/src/api/sanitation/toilet.js +++ b/src/api/sanitation/toilet.js @@ -83,3 +83,24 @@ responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob }) } + +// 公厕保洁记录查询 +export function getToiletJobRecords(params) { + return request({ + url: '/sanitation/toilet/jobRecord', + method: 'get', + params + }) +} + +// 批量导出 +export function batchExportToiletJobRecords(params, config) { + return request({ + url: '/sanitation/toilet/exportJobRecord', + method: 'get', + timeout: 120000, + params, + ...config, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/sanitation/wastebin.js b/src/api/sanitation/wastebin.js index f4bc6bc..ce32cbe 100644 --- a/src/api/sanitation/wastebin.js +++ b/src/api/sanitation/wastebin.js @@ -33,7 +33,7 @@ // 修改垃圾桶机构 export function updateWastebin(params) { return request({ - url: '/sanitation/area/update', + url: '/sanitation/wastebin/update', method: 'post', params }) diff --git a/src/assets/global_images/toiletPhoto.png b/src/assets/global_images/toiletPhoto.png new file mode 100644 index 0000000..15d08e2 --- /dev/null +++ b/src/assets/global_images/toiletPhoto.png Binary files differ diff --git a/src/assets/global_images/transferStationPhoto.png b/src/assets/global_images/transferStationPhoto.png new file mode 100644 index 0000000..9967c96 --- /dev/null +++ b/src/assets/global_images/transferStationPhoto.png Binary files differ diff --git a/src/assets/icons/icon-position.png b/src/assets/icons/icon-position.png new file mode 100644 index 0000000..7444038 --- /dev/null +++ b/src/assets/icons/icon-position.png Binary files differ diff --git a/src/layout/components/AppHeader.vue b/src/layout/components/AppHeader.vue index 87f58c4..8a01533 100644 --- a/src/layout/components/AppHeader.vue +++ b/src/layout/components/AppHeader.vue @@ -1,7 +1,7 @@