diff --git a/src/api/app.js b/src/api/app.js index d556d7c..91a9721 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -10,7 +10,7 @@ }) } -// 批量导出 +// 下载apk export function downloadApk(url) { return request({ url: 'static/'+url, diff --git a/src/api/app.js b/src/api/app.js index d556d7c..91a9721 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -10,7 +10,7 @@ }) } -// 批量导出 +// 下载apk export function downloadApk(url) { return request({ url: 'static/'+url, diff --git a/src/api/index.js b/src/api/index.js deleted file mode 100644 index 2e89ee5..0000000 --- a/src/api/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import axios from 'axios'; - -const config = { - timeout: 0, - withCredentials: true, // cookie -} -const ajaxInstance = axios.create(config); - -export function payment (url, params) { - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} - -export function patientList (params) { - let url = 'http://test.jlrcare.com/doctor/service/patient/getAllPatientByUserId' - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} diff --git a/src/api/app.js b/src/api/app.js index d556d7c..91a9721 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -10,7 +10,7 @@ }) } -// 批量导出 +// 下载apk export function downloadApk(url) { return request({ url: 'static/'+url, diff --git a/src/api/index.js b/src/api/index.js deleted file mode 100644 index 2e89ee5..0000000 --- a/src/api/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import axios from 'axios'; - -const config = { - timeout: 0, - withCredentials: true, // cookie -} -const ajaxInstance = axios.create(config); - -export function payment (url, params) { - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} - -export function patientList (params) { - let url = 'http://test.jlrcare.com/doctor/service/patient/getAllPatientByUserId' - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} diff --git a/src/api/job.js b/src/api/job.js index 7f55c0c..c6d8314 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -2,6 +2,26 @@ * 告警工单管理接口 */ import request from '@/utils/request' + +// 查询工单状态,字典值 +export function getJobStatus(params) { + return request({ + url: 'dict/code/jobStatus', + method: 'get', + params + }) +} + +// 告警内容列表,字典值 +export function getAlarmContentType(alarmType) { + return request({ + url: 'alarm/contentType', + method: 'get', + params: { + alarmType: alarmType + } + }) +} // 告警工单查询 export function getJobList(params) { return request({ @@ -11,6 +31,33 @@ }) } +// 全部工单查询接口,工单搜索功能用 +export function getJobSearchList(params) { + return request({ + url: 'job/searchList', + method: 'get', + params + }) +} + +// 超时未接收工单查询 +export function getOvertimeGetList(params) { + return request({ + url: 'job/overtimeGetList', + method: 'get', + params + }) +} + +// 超时未处理工单查询 +export function getOvertimeHandleList(params) { + return request({ + url: 'job/overtimeHandleList', + method: 'get', + params + }) +} + // 工单详情 export function getJobInfo(jobId) { return request({ @@ -21,15 +68,7 @@ } }) } -// 批量导出 -export function batchExportJob(params) { - return request({ - url: 'well/batchExport', - method: 'get', - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} + //根据工单状态统计工单数量 export function countByJobStatus() { return request({ diff --git a/src/api/app.js b/src/api/app.js index d556d7c..91a9721 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -10,7 +10,7 @@ }) } -// 批量导出 +// 下载apk export function downloadApk(url) { return request({ url: 'static/'+url, diff --git a/src/api/index.js b/src/api/index.js deleted file mode 100644 index 2e89ee5..0000000 --- a/src/api/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import axios from 'axios'; - -const config = { - timeout: 0, - withCredentials: true, // cookie -} -const ajaxInstance = axios.create(config); - -export function payment (url, params) { - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} - -export function patientList (params) { - let url = 'http://test.jlrcare.com/doctor/service/patient/getAllPatientByUserId' - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} diff --git a/src/api/job.js b/src/api/job.js index 7f55c0c..c6d8314 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -2,6 +2,26 @@ * 告警工单管理接口 */ import request from '@/utils/request' + +// 查询工单状态,字典值 +export function getJobStatus(params) { + return request({ + url: 'dict/code/jobStatus', + method: 'get', + params + }) +} + +// 告警内容列表,字典值 +export function getAlarmContentType(alarmType) { + return request({ + url: 'alarm/contentType', + method: 'get', + params: { + alarmType: alarmType + } + }) +} // 告警工单查询 export function getJobList(params) { return request({ @@ -11,6 +31,33 @@ }) } +// 全部工单查询接口,工单搜索功能用 +export function getJobSearchList(params) { + return request({ + url: 'job/searchList', + method: 'get', + params + }) +} + +// 超时未接收工单查询 +export function getOvertimeGetList(params) { + return request({ + url: 'job/overtimeGetList', + method: 'get', + params + }) +} + +// 超时未处理工单查询 +export function getOvertimeHandleList(params) { + return request({ + url: 'job/overtimeHandleList', + method: 'get', + params + }) +} + // 工单详情 export function getJobInfo(jobId) { return request({ @@ -21,15 +68,7 @@ } }) } -// 批量导出 -export function batchExportJob(params) { - return request({ - url: 'well/batchExport', - method: 'get', - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} + //根据工单状态统计工单数量 export function countByJobStatus() { return request({ diff --git a/src/api/well.js b/src/api/well.js index bcd0735..f20310c 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -1,17 +1,16 @@ /** - * 闸井管理接口 + * 窨井管理接口 */ import request from '@/utils/request' -// 闸井查询 +// 窨井查询 export function getWellList(params) { - console.log('getWellList') return request({ url: 'well/list', method: 'get', params }) } -// 获取闸井详情 +// 获取窨井详情 export function getWellInfo(id) { return request({ url: 'well/info', @@ -22,7 +21,7 @@ }) } -// 闸井类别 +// 窨井类别 export function getWellType(params) { return request({ url: 'dict/code/sluicewellType', @@ -42,7 +41,7 @@ }) } -// 根据布防状态统计闸井数量接口 +// 根据布防状态统计窨井数量接口 export function countByBfzt() { return request({ url: 'well/countByBfzt', @@ -60,6 +59,7 @@ } }) } +// 获取字典值 export function dict(code){ return request({ url: 'dict/code/'+code, diff --git a/src/api/app.js b/src/api/app.js index d556d7c..91a9721 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -10,7 +10,7 @@ }) } -// 批量导出 +// 下载apk export function downloadApk(url) { return request({ url: 'static/'+url, diff --git a/src/api/index.js b/src/api/index.js deleted file mode 100644 index 2e89ee5..0000000 --- a/src/api/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import axios from 'axios'; - -const config = { - timeout: 0, - withCredentials: true, // cookie -} -const ajaxInstance = axios.create(config); - -export function payment (url, params) { - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} - -export function patientList (params) { - let url = 'http://test.jlrcare.com/doctor/service/patient/getAllPatientByUserId' - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} diff --git a/src/api/job.js b/src/api/job.js index 7f55c0c..c6d8314 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -2,6 +2,26 @@ * 告警工单管理接口 */ import request from '@/utils/request' + +// 查询工单状态,字典值 +export function getJobStatus(params) { + return request({ + url: 'dict/code/jobStatus', + method: 'get', + params + }) +} + +// 告警内容列表,字典值 +export function getAlarmContentType(alarmType) { + return request({ + url: 'alarm/contentType', + method: 'get', + params: { + alarmType: alarmType + } + }) +} // 告警工单查询 export function getJobList(params) { return request({ @@ -11,6 +31,33 @@ }) } +// 全部工单查询接口,工单搜索功能用 +export function getJobSearchList(params) { + return request({ + url: 'job/searchList', + method: 'get', + params + }) +} + +// 超时未接收工单查询 +export function getOvertimeGetList(params) { + return request({ + url: 'job/overtimeGetList', + method: 'get', + params + }) +} + +// 超时未处理工单查询 +export function getOvertimeHandleList(params) { + return request({ + url: 'job/overtimeHandleList', + method: 'get', + params + }) +} + // 工单详情 export function getJobInfo(jobId) { return request({ @@ -21,15 +68,7 @@ } }) } -// 批量导出 -export function batchExportJob(params) { - return request({ - url: 'well/batchExport', - method: 'get', - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} + //根据工单状态统计工单数量 export function countByJobStatus() { return request({ diff --git a/src/api/well.js b/src/api/well.js index bcd0735..f20310c 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -1,17 +1,16 @@ /** - * 闸井管理接口 + * 窨井管理接口 */ import request from '@/utils/request' -// 闸井查询 +// 窨井查询 export function getWellList(params) { - console.log('getWellList') return request({ url: 'well/list', method: 'get', params }) } -// 获取闸井详情 +// 获取窨井详情 export function getWellInfo(id) { return request({ url: 'well/info', @@ -22,7 +21,7 @@ }) } -// 闸井类别 +// 窨井类别 export function getWellType(params) { return request({ url: 'dict/code/sluicewellType', @@ -42,7 +41,7 @@ }) } -// 根据布防状态统计闸井数量接口 +// 根据布防状态统计窨井数量接口 export function countByBfzt() { return request({ url: 'well/countByBfzt', @@ -60,6 +59,7 @@ } }) } +// 获取字典值 export function dict(code){ return request({ url: 'dict/code/'+code, diff --git a/src/components/plus/payment/Payment.vue b/src/components/plus/payment/Payment.vue deleted file mode 100644 index f5777e1..0000000 --- a/src/components/plus/payment/Payment.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/api/app.js b/src/api/app.js index d556d7c..91a9721 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -10,7 +10,7 @@ }) } -// 批量导出 +// 下载apk export function downloadApk(url) { return request({ url: 'static/'+url, diff --git a/src/api/index.js b/src/api/index.js deleted file mode 100644 index 2e89ee5..0000000 --- a/src/api/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import axios from 'axios'; - -const config = { - timeout: 0, - withCredentials: true, // cookie -} -const ajaxInstance = axios.create(config); - -export function payment (url, params) { - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} - -export function patientList (params) { - let url = 'http://test.jlrcare.com/doctor/service/patient/getAllPatientByUserId' - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} diff --git a/src/api/job.js b/src/api/job.js index 7f55c0c..c6d8314 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -2,6 +2,26 @@ * 告警工单管理接口 */ import request from '@/utils/request' + +// 查询工单状态,字典值 +export function getJobStatus(params) { + return request({ + url: 'dict/code/jobStatus', + method: 'get', + params + }) +} + +// 告警内容列表,字典值 +export function getAlarmContentType(alarmType) { + return request({ + url: 'alarm/contentType', + method: 'get', + params: { + alarmType: alarmType + } + }) +} // 告警工单查询 export function getJobList(params) { return request({ @@ -11,6 +31,33 @@ }) } +// 全部工单查询接口,工单搜索功能用 +export function getJobSearchList(params) { + return request({ + url: 'job/searchList', + method: 'get', + params + }) +} + +// 超时未接收工单查询 +export function getOvertimeGetList(params) { + return request({ + url: 'job/overtimeGetList', + method: 'get', + params + }) +} + +// 超时未处理工单查询 +export function getOvertimeHandleList(params) { + return request({ + url: 'job/overtimeHandleList', + method: 'get', + params + }) +} + // 工单详情 export function getJobInfo(jobId) { return request({ @@ -21,15 +68,7 @@ } }) } -// 批量导出 -export function batchExportJob(params) { - return request({ - url: 'well/batchExport', - method: 'get', - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} + //根据工单状态统计工单数量 export function countByJobStatus() { return request({ diff --git a/src/api/well.js b/src/api/well.js index bcd0735..f20310c 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -1,17 +1,16 @@ /** - * 闸井管理接口 + * 窨井管理接口 */ import request from '@/utils/request' -// 闸井查询 +// 窨井查询 export function getWellList(params) { - console.log('getWellList') return request({ url: 'well/list', method: 'get', params }) } -// 获取闸井详情 +// 获取窨井详情 export function getWellInfo(id) { return request({ url: 'well/info', @@ -22,7 +21,7 @@ }) } -// 闸井类别 +// 窨井类别 export function getWellType(params) { return request({ url: 'dict/code/sluicewellType', @@ -42,7 +41,7 @@ }) } -// 根据布防状态统计闸井数量接口 +// 根据布防状态统计窨井数量接口 export function countByBfzt() { return request({ url: 'well/countByBfzt', @@ -60,6 +59,7 @@ } }) } +// 获取字典值 export function dict(code){ return request({ url: 'dict/code/'+code, diff --git a/src/components/plus/payment/Payment.vue b/src/components/plus/payment/Payment.vue deleted file mode 100644 index f5777e1..0000000 --- a/src/components/plus/payment/Payment.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/router/modules/router.js b/src/router/modules/router.js index 637f198..dd43349 100644 --- a/src/router/modules/router.js +++ b/src/router/modules/router.js @@ -231,51 +231,11 @@ } ] -export const plusRouters = [ - { - path: '/plus/camera', - name: 'camera', - component: () => import('@/components/plus/camera/Camera') - }, - { - path: '/plus/geolocation', - name: 'geolocation', - component: () => import('@/components/plus/geolocation/Geolocation') - }, - { - path: '/plus/accelerometer', - name: 'accelerometer', - component: () => import('@/components/plus/accelerometer/Accelerometer') - }, - { - path: '/plus/resumeCallback', - name: 'resumeCallback', - component: () => import('@/components/plus/resumeCallback/ResumeCallback') - }, - { - path: '/plus/payment', - name: 'payment', - component: () => import('@/components/plus/payment/Payment') - }, - { - path: '/plus/router', - name: 'router', - component: () => import('@/components/plus/router/Router'), - children: [ - { - path: 'routerChildren:id', - component: () => import('@/components/plus/router/RouterChildren') - }, - ] - } -] - export const routers = [ indexRouter, loginRouter, sliderRouter, advertisementRouter, ...uiRouters, - ...plusRouters, ...wellRouters ] diff --git a/src/api/app.js b/src/api/app.js index d556d7c..91a9721 100644 --- a/src/api/app.js +++ b/src/api/app.js @@ -10,7 +10,7 @@ }) } -// 批量导出 +// 下载apk export function downloadApk(url) { return request({ url: 'static/'+url, diff --git a/src/api/index.js b/src/api/index.js deleted file mode 100644 index 2e89ee5..0000000 --- a/src/api/index.js +++ /dev/null @@ -1,20 +0,0 @@ -import axios from 'axios'; - -const config = { - timeout: 0, - withCredentials: true, // cookie -} -const ajaxInstance = axios.create(config); - -export function payment (url, params) { - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} - -export function patientList (params) { - let url = 'http://test.jlrcare.com/doctor/service/patient/getAllPatientByUserId' - return ajaxInstance.post(url, params).then((res) => { - return Promise.resolve(res.data) - }) -} diff --git a/src/api/job.js b/src/api/job.js index 7f55c0c..c6d8314 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -2,6 +2,26 @@ * 告警工单管理接口 */ import request from '@/utils/request' + +// 查询工单状态,字典值 +export function getJobStatus(params) { + return request({ + url: 'dict/code/jobStatus', + method: 'get', + params + }) +} + +// 告警内容列表,字典值 +export function getAlarmContentType(alarmType) { + return request({ + url: 'alarm/contentType', + method: 'get', + params: { + alarmType: alarmType + } + }) +} // 告警工单查询 export function getJobList(params) { return request({ @@ -11,6 +31,33 @@ }) } +// 全部工单查询接口,工单搜索功能用 +export function getJobSearchList(params) { + return request({ + url: 'job/searchList', + method: 'get', + params + }) +} + +// 超时未接收工单查询 +export function getOvertimeGetList(params) { + return request({ + url: 'job/overtimeGetList', + method: 'get', + params + }) +} + +// 超时未处理工单查询 +export function getOvertimeHandleList(params) { + return request({ + url: 'job/overtimeHandleList', + method: 'get', + params + }) +} + // 工单详情 export function getJobInfo(jobId) { return request({ @@ -21,15 +68,7 @@ } }) } -// 批量导出 -export function batchExportJob(params) { - return request({ - url: 'well/batchExport', - method: 'get', - params, - responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob - }) -} + //根据工单状态统计工单数量 export function countByJobStatus() { return request({ diff --git a/src/api/well.js b/src/api/well.js index bcd0735..f20310c 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -1,17 +1,16 @@ /** - * 闸井管理接口 + * 窨井管理接口 */ import request from '@/utils/request' -// 闸井查询 +// 窨井查询 export function getWellList(params) { - console.log('getWellList') return request({ url: 'well/list', method: 'get', params }) } -// 获取闸井详情 +// 获取窨井详情 export function getWellInfo(id) { return request({ url: 'well/info', @@ -22,7 +21,7 @@ }) } -// 闸井类别 +// 窨井类别 export function getWellType(params) { return request({ url: 'dict/code/sluicewellType', @@ -42,7 +41,7 @@ }) } -// 根据布防状态统计闸井数量接口 +// 根据布防状态统计窨井数量接口 export function countByBfzt() { return request({ url: 'well/countByBfzt', @@ -60,6 +59,7 @@ } }) } +// 获取字典值 export function dict(code){ return request({ url: 'dict/code/'+code, diff --git a/src/components/plus/payment/Payment.vue b/src/components/plus/payment/Payment.vue deleted file mode 100644 index f5777e1..0000000 --- a/src/components/plus/payment/Payment.vue +++ /dev/null @@ -1,155 +0,0 @@ - - - - - diff --git a/src/router/modules/router.js b/src/router/modules/router.js index 637f198..dd43349 100644 --- a/src/router/modules/router.js +++ b/src/router/modules/router.js @@ -231,51 +231,11 @@ } ] -export const plusRouters = [ - { - path: '/plus/camera', - name: 'camera', - component: () => import('@/components/plus/camera/Camera') - }, - { - path: '/plus/geolocation', - name: 'geolocation', - component: () => import('@/components/plus/geolocation/Geolocation') - }, - { - path: '/plus/accelerometer', - name: 'accelerometer', - component: () => import('@/components/plus/accelerometer/Accelerometer') - }, - { - path: '/plus/resumeCallback', - name: 'resumeCallback', - component: () => import('@/components/plus/resumeCallback/ResumeCallback') - }, - { - path: '/plus/payment', - name: 'payment', - component: () => import('@/components/plus/payment/Payment') - }, - { - path: '/plus/router', - name: 'router', - component: () => import('@/components/plus/router/Router'), - children: [ - { - path: 'routerChildren:id', - component: () => import('@/components/plus/router/RouterChildren') - }, - ] - } -] - export const routers = [ indexRouter, loginRouter, sliderRouter, advertisementRouter, ...uiRouters, - ...plusRouters, ...wellRouters ] diff --git a/src/router/router.js b/src/router/router.js index 0f0c6d7..8e7ecb5 100644 --- a/src/router/router.js +++ b/src/router/router.js @@ -172,11 +172,6 @@ component: () => import('components/plus/resumeCallback/ResumeCallback') }, { - path: '/plus/payment', - name: 'payment', - component: () => import('components/plus/payment/Payment') - }, - { path: '/plus/router', name: 'router', component: () => import('components/plus/router/Router'),