diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/overview.js b/src/api/overview.js index d1853dd..2e62e69 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -5,7 +5,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/overview/wellList', + url: 'overview/wellList', method: 'get', params }) @@ -13,27 +13,17 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/overview/wellInfo', + url: 'overview/wellInfo', method: 'get', params: { id: id } }) } - -export function getWellByCode(wellCode) { - return request({ - url: 'smartwell/well/getWellByCode', - method: 'get', - params: { - wellCode: wellCode - } - }) -} // 获取报警列表 export function getAlarmsNow(params) { return request({ - url: 'smartwell/overview/alarmNow', + url: 'overview/alarmNow', method: 'get', params }) @@ -42,7 +32,7 @@ // 某井报警信息 export function getWellAlarms(id) { return request({ - url: 'smartwell/overview/alarmsByWell', + url: 'overview/alarmsByWell', method: 'get', params: { id: id diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/overview.js b/src/api/overview.js index d1853dd..2e62e69 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -5,7 +5,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/overview/wellList', + url: 'overview/wellList', method: 'get', params }) @@ -13,27 +13,17 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/overview/wellInfo', + url: 'overview/wellInfo', method: 'get', params: { id: id } }) } - -export function getWellByCode(wellCode) { - return request({ - url: 'smartwell/well/getWellByCode', - method: 'get', - params: { - wellCode: wellCode - } - }) -} // 获取报警列表 export function getAlarmsNow(params) { return request({ - url: 'smartwell/overview/alarmNow', + url: 'overview/alarmNow', method: 'get', params }) @@ -42,7 +32,7 @@ // 某井报警信息 export function getWellAlarms(id) { return request({ - url: 'smartwell/overview/alarmsByWell', + url: 'overview/alarmsByWell', method: 'get', params: { id: id diff --git a/src/api/system/area.js b/src/api/system/area.js index 9d3b9a4..76d8bf9 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -14,7 +14,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: '/config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/overview.js b/src/api/overview.js index d1853dd..2e62e69 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -5,7 +5,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/overview/wellList', + url: 'overview/wellList', method: 'get', params }) @@ -13,27 +13,17 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/overview/wellInfo', + url: 'overview/wellInfo', method: 'get', params: { id: id } }) } - -export function getWellByCode(wellCode) { - return request({ - url: 'smartwell/well/getWellByCode', - method: 'get', - params: { - wellCode: wellCode - } - }) -} // 获取报警列表 export function getAlarmsNow(params) { return request({ - url: 'smartwell/overview/alarmNow', + url: 'overview/alarmNow', method: 'get', params }) @@ -42,7 +32,7 @@ // 某井报警信息 export function getWellAlarms(id) { return request({ - url: 'smartwell/overview/alarmsByWell', + url: 'overview/alarmsByWell', method: 'get', params: { id: id diff --git a/src/api/system/area.js b/src/api/system/area.js index 9d3b9a4..76d8bf9 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -14,7 +14,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: '/config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/tempconfig.js b/src/api/tempconfig.js index cd70c42..dc4530c 100644 --- a/src/api/tempconfig.js +++ b/src/api/tempconfig.js @@ -5,7 +5,7 @@ // 温湿度配置查询 export function getTempConfigList(params) { return request({ - url: 'smartwell/busConfig/tempConfig/list', + url: 'busConfig/tempConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改温湿度配置 export function editTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/config', + url: 'busConfig/tempConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/tempConfig/batchImport', + url: 'busConfig/tempConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/batchExport', + url: 'busConfig/tempConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/overview.js b/src/api/overview.js index d1853dd..2e62e69 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -5,7 +5,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/overview/wellList', + url: 'overview/wellList', method: 'get', params }) @@ -13,27 +13,17 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/overview/wellInfo', + url: 'overview/wellInfo', method: 'get', params: { id: id } }) } - -export function getWellByCode(wellCode) { - return request({ - url: 'smartwell/well/getWellByCode', - method: 'get', - params: { - wellCode: wellCode - } - }) -} // 获取报警列表 export function getAlarmsNow(params) { return request({ - url: 'smartwell/overview/alarmNow', + url: 'overview/alarmNow', method: 'get', params }) @@ -42,7 +32,7 @@ // 某井报警信息 export function getWellAlarms(id) { return request({ - url: 'smartwell/overview/alarmsByWell', + url: 'overview/alarmsByWell', method: 'get', params: { id: id diff --git a/src/api/system/area.js b/src/api/system/area.js index 9d3b9a4..76d8bf9 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -14,7 +14,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: '/config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/tempconfig.js b/src/api/tempconfig.js index cd70c42..dc4530c 100644 --- a/src/api/tempconfig.js +++ b/src/api/tempconfig.js @@ -5,7 +5,7 @@ // 温湿度配置查询 export function getTempConfigList(params) { return request({ - url: 'smartwell/busConfig/tempConfig/list', + url: 'busConfig/tempConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改温湿度配置 export function editTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/config', + url: 'busConfig/tempConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/tempConfig/batchImport', + url: 'busConfig/tempConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/batchExport', + url: 'busConfig/tempConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/well.js b/src/api/well.js index 3d70e52..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -7,7 +7,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/well/list', + url: 'well/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/well/info', + url: 'well/info', method: 'get', params: { id: id @@ -26,7 +26,7 @@ // 井类别 export function getWellType(params) { return request({ - url: 'smartwell/dict/code/sluicewellType', + url: 'dict/code/sluicewellType', method: 'get', params }) @@ -35,7 +35,7 @@ // 添加井 export function addWell(params) { return request({ - url: 'smartwell/well/add', + url: 'well/add', method: 'post', params }) @@ -43,7 +43,7 @@ // 修改井 export function updateWell(params) { return request({ - url: 'smartwell/well/update', + url: 'well/update', method: 'post', params }) @@ -51,7 +51,7 @@ // 删除井 export function delWell(ids) { return request({ - url: 'smartwell/well/delete', + url: 'well/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/well/batchImport', + url: 'well/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -75,7 +75,7 @@ // 批量导出 export function batchExportWell(params, config) { return request({ - url: 'smartwell/well/batchExport', + url: 'well/batchExport', method: 'get', timeout: 120000, params, @@ -86,7 +86,7 @@ // export function batchExportWell(params) { // return request({ -// url: 'smartwell/well/batchExport', +// url: 'well/batchExport', // method: 'get', // timeout: 120000, // params, @@ -96,7 +96,7 @@ // 获取某井内监控数据 export function watchDataByWell(id) { return request({ - url: 'smartwell/well/watchDataByWell', + url: 'well/watchDataByWell', method: 'get', params: { id: id @@ -106,7 +106,7 @@ // 布防撤防 export function bfcf(wellId, bfzt) { return request({ - url: 'smartwell/well/bfcf', + url: 'well/bfcf', method: 'post', params: { wellId: wellId, @@ -117,7 +117,7 @@ // 井批量布防 export function batchBfcf(params) { return request({ - url: 'smartwell/well/batchBfcf', + url: 'well/batchBfcf', method: 'post', params }) @@ -126,7 +126,7 @@ // 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get' }) } @@ -134,7 +134,7 @@ // 单个井查询 export function getWellOne(params) { return request({ - url: 'smartwell/well/selectOne', + url: 'well/selectOne', method: 'get', params }) diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/overview.js b/src/api/overview.js index d1853dd..2e62e69 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -5,7 +5,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/overview/wellList', + url: 'overview/wellList', method: 'get', params }) @@ -13,27 +13,17 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/overview/wellInfo', + url: 'overview/wellInfo', method: 'get', params: { id: id } }) } - -export function getWellByCode(wellCode) { - return request({ - url: 'smartwell/well/getWellByCode', - method: 'get', - params: { - wellCode: wellCode - } - }) -} // 获取报警列表 export function getAlarmsNow(params) { return request({ - url: 'smartwell/overview/alarmNow', + url: 'overview/alarmNow', method: 'get', params }) @@ -42,7 +32,7 @@ // 某井报警信息 export function getWellAlarms(id) { return request({ - url: 'smartwell/overview/alarmsByWell', + url: 'overview/alarmsByWell', method: 'get', params: { id: id diff --git a/src/api/system/area.js b/src/api/system/area.js index 9d3b9a4..76d8bf9 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -14,7 +14,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: '/config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/tempconfig.js b/src/api/tempconfig.js index cd70c42..dc4530c 100644 --- a/src/api/tempconfig.js +++ b/src/api/tempconfig.js @@ -5,7 +5,7 @@ // 温湿度配置查询 export function getTempConfigList(params) { return request({ - url: 'smartwell/busConfig/tempConfig/list', + url: 'busConfig/tempConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改温湿度配置 export function editTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/config', + url: 'busConfig/tempConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/tempConfig/batchImport', + url: 'busConfig/tempConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/batchExport', + url: 'busConfig/tempConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/well.js b/src/api/well.js index 3d70e52..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -7,7 +7,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/well/list', + url: 'well/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/well/info', + url: 'well/info', method: 'get', params: { id: id @@ -26,7 +26,7 @@ // 井类别 export function getWellType(params) { return request({ - url: 'smartwell/dict/code/sluicewellType', + url: 'dict/code/sluicewellType', method: 'get', params }) @@ -35,7 +35,7 @@ // 添加井 export function addWell(params) { return request({ - url: 'smartwell/well/add', + url: 'well/add', method: 'post', params }) @@ -43,7 +43,7 @@ // 修改井 export function updateWell(params) { return request({ - url: 'smartwell/well/update', + url: 'well/update', method: 'post', params }) @@ -51,7 +51,7 @@ // 删除井 export function delWell(ids) { return request({ - url: 'smartwell/well/delete', + url: 'well/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/well/batchImport', + url: 'well/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -75,7 +75,7 @@ // 批量导出 export function batchExportWell(params, config) { return request({ - url: 'smartwell/well/batchExport', + url: 'well/batchExport', method: 'get', timeout: 120000, params, @@ -86,7 +86,7 @@ // export function batchExportWell(params) { // return request({ -// url: 'smartwell/well/batchExport', +// url: 'well/batchExport', // method: 'get', // timeout: 120000, // params, @@ -96,7 +96,7 @@ // 获取某井内监控数据 export function watchDataByWell(id) { return request({ - url: 'smartwell/well/watchDataByWell', + url: 'well/watchDataByWell', method: 'get', params: { id: id @@ -106,7 +106,7 @@ // 布防撤防 export function bfcf(wellId, bfzt) { return request({ - url: 'smartwell/well/bfcf', + url: 'well/bfcf', method: 'post', params: { wellId: wellId, @@ -117,7 +117,7 @@ // 井批量布防 export function batchBfcf(params) { return request({ - url: 'smartwell/well/batchBfcf', + url: 'well/batchBfcf', method: 'post', params }) @@ -126,7 +126,7 @@ // 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get' }) } @@ -134,7 +134,7 @@ // 单个井查询 export function getWellOne(params) { return request({ - url: 'smartwell/well/selectOne', + url: 'well/selectOne', method: 'get', params }) diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index 07ee165..16e55f0 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -71,7 +71,7 @@ .card-panel-icon-wrapper { float: left; - margin: 14px 0 0 14px; + margin: 14px 0 0 10px; padding: 16px; transition: all 0.38s ease-out; border-radius: 6px; diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/overview.js b/src/api/overview.js index d1853dd..2e62e69 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -5,7 +5,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/overview/wellList', + url: 'overview/wellList', method: 'get', params }) @@ -13,27 +13,17 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/overview/wellInfo', + url: 'overview/wellInfo', method: 'get', params: { id: id } }) } - -export function getWellByCode(wellCode) { - return request({ - url: 'smartwell/well/getWellByCode', - method: 'get', - params: { - wellCode: wellCode - } - }) -} // 获取报警列表 export function getAlarmsNow(params) { return request({ - url: 'smartwell/overview/alarmNow', + url: 'overview/alarmNow', method: 'get', params }) @@ -42,7 +32,7 @@ // 某井报警信息 export function getWellAlarms(id) { return request({ - url: 'smartwell/overview/alarmsByWell', + url: 'overview/alarmsByWell', method: 'get', params: { id: id diff --git a/src/api/system/area.js b/src/api/system/area.js index 9d3b9a4..76d8bf9 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -14,7 +14,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: '/config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/tempconfig.js b/src/api/tempconfig.js index cd70c42..dc4530c 100644 --- a/src/api/tempconfig.js +++ b/src/api/tempconfig.js @@ -5,7 +5,7 @@ // 温湿度配置查询 export function getTempConfigList(params) { return request({ - url: 'smartwell/busConfig/tempConfig/list', + url: 'busConfig/tempConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改温湿度配置 export function editTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/config', + url: 'busConfig/tempConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/tempConfig/batchImport', + url: 'busConfig/tempConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/batchExport', + url: 'busConfig/tempConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/well.js b/src/api/well.js index 3d70e52..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -7,7 +7,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/well/list', + url: 'well/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/well/info', + url: 'well/info', method: 'get', params: { id: id @@ -26,7 +26,7 @@ // 井类别 export function getWellType(params) { return request({ - url: 'smartwell/dict/code/sluicewellType', + url: 'dict/code/sluicewellType', method: 'get', params }) @@ -35,7 +35,7 @@ // 添加井 export function addWell(params) { return request({ - url: 'smartwell/well/add', + url: 'well/add', method: 'post', params }) @@ -43,7 +43,7 @@ // 修改井 export function updateWell(params) { return request({ - url: 'smartwell/well/update', + url: 'well/update', method: 'post', params }) @@ -51,7 +51,7 @@ // 删除井 export function delWell(ids) { return request({ - url: 'smartwell/well/delete', + url: 'well/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/well/batchImport', + url: 'well/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -75,7 +75,7 @@ // 批量导出 export function batchExportWell(params, config) { return request({ - url: 'smartwell/well/batchExport', + url: 'well/batchExport', method: 'get', timeout: 120000, params, @@ -86,7 +86,7 @@ // export function batchExportWell(params) { // return request({ -// url: 'smartwell/well/batchExport', +// url: 'well/batchExport', // method: 'get', // timeout: 120000, // params, @@ -96,7 +96,7 @@ // 获取某井内监控数据 export function watchDataByWell(id) { return request({ - url: 'smartwell/well/watchDataByWell', + url: 'well/watchDataByWell', method: 'get', params: { id: id @@ -106,7 +106,7 @@ // 布防撤防 export function bfcf(wellId, bfzt) { return request({ - url: 'smartwell/well/bfcf', + url: 'well/bfcf', method: 'post', params: { wellId: wellId, @@ -117,7 +117,7 @@ // 井批量布防 export function batchBfcf(params) { return request({ - url: 'smartwell/well/batchBfcf', + url: 'well/batchBfcf', method: 'post', params }) @@ -126,7 +126,7 @@ // 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get' }) } @@ -134,7 +134,7 @@ // 单个井查询 export function getWellOne(params) { return request({ - url: 'smartwell/well/selectOne', + url: 'well/selectOne', method: 'get', params }) diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index 07ee165..16e55f0 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -71,7 +71,7 @@ .card-panel-icon-wrapper { float: left; - margin: 14px 0 0 14px; + margin: 14px 0 0 10px; padding: 16px; transition: all 0.38s ease-out; border-radius: 6px; diff --git a/src/icons/svg/icon-order.svg b/src/icons/svg/icon-order.svg new file mode 100644 index 0000000..62d7666 --- /dev/null +++ b/src/icons/svg/icon-order.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/overview.js b/src/api/overview.js index d1853dd..2e62e69 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -5,7 +5,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/overview/wellList', + url: 'overview/wellList', method: 'get', params }) @@ -13,27 +13,17 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/overview/wellInfo', + url: 'overview/wellInfo', method: 'get', params: { id: id } }) } - -export function getWellByCode(wellCode) { - return request({ - url: 'smartwell/well/getWellByCode', - method: 'get', - params: { - wellCode: wellCode - } - }) -} // 获取报警列表 export function getAlarmsNow(params) { return request({ - url: 'smartwell/overview/alarmNow', + url: 'overview/alarmNow', method: 'get', params }) @@ -42,7 +32,7 @@ // 某井报警信息 export function getWellAlarms(id) { return request({ - url: 'smartwell/overview/alarmsByWell', + url: 'overview/alarmsByWell', method: 'get', params: { id: id diff --git a/src/api/system/area.js b/src/api/system/area.js index 9d3b9a4..76d8bf9 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -14,7 +14,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: '/config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/tempconfig.js b/src/api/tempconfig.js index cd70c42..dc4530c 100644 --- a/src/api/tempconfig.js +++ b/src/api/tempconfig.js @@ -5,7 +5,7 @@ // 温湿度配置查询 export function getTempConfigList(params) { return request({ - url: 'smartwell/busConfig/tempConfig/list', + url: 'busConfig/tempConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改温湿度配置 export function editTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/config', + url: 'busConfig/tempConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/tempConfig/batchImport', + url: 'busConfig/tempConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/batchExport', + url: 'busConfig/tempConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/well.js b/src/api/well.js index 3d70e52..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -7,7 +7,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/well/list', + url: 'well/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/well/info', + url: 'well/info', method: 'get', params: { id: id @@ -26,7 +26,7 @@ // 井类别 export function getWellType(params) { return request({ - url: 'smartwell/dict/code/sluicewellType', + url: 'dict/code/sluicewellType', method: 'get', params }) @@ -35,7 +35,7 @@ // 添加井 export function addWell(params) { return request({ - url: 'smartwell/well/add', + url: 'well/add', method: 'post', params }) @@ -43,7 +43,7 @@ // 修改井 export function updateWell(params) { return request({ - url: 'smartwell/well/update', + url: 'well/update', method: 'post', params }) @@ -51,7 +51,7 @@ // 删除井 export function delWell(ids) { return request({ - url: 'smartwell/well/delete', + url: 'well/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/well/batchImport', + url: 'well/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -75,7 +75,7 @@ // 批量导出 export function batchExportWell(params, config) { return request({ - url: 'smartwell/well/batchExport', + url: 'well/batchExport', method: 'get', timeout: 120000, params, @@ -86,7 +86,7 @@ // export function batchExportWell(params) { // return request({ -// url: 'smartwell/well/batchExport', +// url: 'well/batchExport', // method: 'get', // timeout: 120000, // params, @@ -96,7 +96,7 @@ // 获取某井内监控数据 export function watchDataByWell(id) { return request({ - url: 'smartwell/well/watchDataByWell', + url: 'well/watchDataByWell', method: 'get', params: { id: id @@ -106,7 +106,7 @@ // 布防撤防 export function bfcf(wellId, bfzt) { return request({ - url: 'smartwell/well/bfcf', + url: 'well/bfcf', method: 'post', params: { wellId: wellId, @@ -117,7 +117,7 @@ // 井批量布防 export function batchBfcf(params) { return request({ - url: 'smartwell/well/batchBfcf', + url: 'well/batchBfcf', method: 'post', params }) @@ -126,7 +126,7 @@ // 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get' }) } @@ -134,7 +134,7 @@ // 单个井查询 export function getWellOne(params) { return request({ - url: 'smartwell/well/selectOne', + url: 'well/selectOne', method: 'get', params }) diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index 07ee165..16e55f0 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -71,7 +71,7 @@ .card-panel-icon-wrapper { float: left; - margin: 14px 0 0 14px; + margin: 14px 0 0 10px; padding: 16px; transition: all 0.38s ease-out; border-radius: 6px; diff --git a/src/icons/svg/icon-order.svg b/src/icons/svg/icon-order.svg new file mode 100644 index 0000000..62d7666 --- /dev/null +++ b/src/icons/svg/icon-order.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/icon-sysconfig.svg b/src/icons/svg/icon-sysconfig.svg new file mode 100644 index 0000000..a440324 --- /dev/null +++ b/src/icons/svg/icon-sysconfig.svg @@ -0,0 +1 @@ + diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/overview.js b/src/api/overview.js index d1853dd..2e62e69 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -5,7 +5,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/overview/wellList', + url: 'overview/wellList', method: 'get', params }) @@ -13,27 +13,17 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/overview/wellInfo', + url: 'overview/wellInfo', method: 'get', params: { id: id } }) } - -export function getWellByCode(wellCode) { - return request({ - url: 'smartwell/well/getWellByCode', - method: 'get', - params: { - wellCode: wellCode - } - }) -} // 获取报警列表 export function getAlarmsNow(params) { return request({ - url: 'smartwell/overview/alarmNow', + url: 'overview/alarmNow', method: 'get', params }) @@ -42,7 +32,7 @@ // 某井报警信息 export function getWellAlarms(id) { return request({ - url: 'smartwell/overview/alarmsByWell', + url: 'overview/alarmsByWell', method: 'get', params: { id: id diff --git a/src/api/system/area.js b/src/api/system/area.js index 9d3b9a4..76d8bf9 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -14,7 +14,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: '/config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/tempconfig.js b/src/api/tempconfig.js index cd70c42..dc4530c 100644 --- a/src/api/tempconfig.js +++ b/src/api/tempconfig.js @@ -5,7 +5,7 @@ // 温湿度配置查询 export function getTempConfigList(params) { return request({ - url: 'smartwell/busConfig/tempConfig/list', + url: 'busConfig/tempConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改温湿度配置 export function editTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/config', + url: 'busConfig/tempConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/tempConfig/batchImport', + url: 'busConfig/tempConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/batchExport', + url: 'busConfig/tempConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/well.js b/src/api/well.js index 3d70e52..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -7,7 +7,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/well/list', + url: 'well/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/well/info', + url: 'well/info', method: 'get', params: { id: id @@ -26,7 +26,7 @@ // 井类别 export function getWellType(params) { return request({ - url: 'smartwell/dict/code/sluicewellType', + url: 'dict/code/sluicewellType', method: 'get', params }) @@ -35,7 +35,7 @@ // 添加井 export function addWell(params) { return request({ - url: 'smartwell/well/add', + url: 'well/add', method: 'post', params }) @@ -43,7 +43,7 @@ // 修改井 export function updateWell(params) { return request({ - url: 'smartwell/well/update', + url: 'well/update', method: 'post', params }) @@ -51,7 +51,7 @@ // 删除井 export function delWell(ids) { return request({ - url: 'smartwell/well/delete', + url: 'well/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/well/batchImport', + url: 'well/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -75,7 +75,7 @@ // 批量导出 export function batchExportWell(params, config) { return request({ - url: 'smartwell/well/batchExport', + url: 'well/batchExport', method: 'get', timeout: 120000, params, @@ -86,7 +86,7 @@ // export function batchExportWell(params) { // return request({ -// url: 'smartwell/well/batchExport', +// url: 'well/batchExport', // method: 'get', // timeout: 120000, // params, @@ -96,7 +96,7 @@ // 获取某井内监控数据 export function watchDataByWell(id) { return request({ - url: 'smartwell/well/watchDataByWell', + url: 'well/watchDataByWell', method: 'get', params: { id: id @@ -106,7 +106,7 @@ // 布防撤防 export function bfcf(wellId, bfzt) { return request({ - url: 'smartwell/well/bfcf', + url: 'well/bfcf', method: 'post', params: { wellId: wellId, @@ -117,7 +117,7 @@ // 井批量布防 export function batchBfcf(params) { return request({ - url: 'smartwell/well/batchBfcf', + url: 'well/batchBfcf', method: 'post', params }) @@ -126,7 +126,7 @@ // 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get' }) } @@ -134,7 +134,7 @@ // 单个井查询 export function getWellOne(params) { return request({ - url: 'smartwell/well/selectOne', + url: 'well/selectOne', method: 'get', params }) diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index 07ee165..16e55f0 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -71,7 +71,7 @@ .card-panel-icon-wrapper { float: left; - margin: 14px 0 0 14px; + margin: 14px 0 0 10px; padding: 16px; transition: all 0.38s ease-out; border-radius: 6px; diff --git a/src/icons/svg/icon-order.svg b/src/icons/svg/icon-order.svg new file mode 100644 index 0000000..62d7666 --- /dev/null +++ b/src/icons/svg/icon-order.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/icon-sysconfig.svg b/src/icons/svg/icon-sysconfig.svg new file mode 100644 index 0000000..a440324 --- /dev/null +++ b/src/icons/svg/icon-sysconfig.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/icon-water.svg b/src/icons/svg/icon-water.svg new file mode 100644 index 0000000..8191643 --- /dev/null +++ b/src/icons/svg/icon-water.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/overview.js b/src/api/overview.js index d1853dd..2e62e69 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -5,7 +5,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/overview/wellList', + url: 'overview/wellList', method: 'get', params }) @@ -13,27 +13,17 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/overview/wellInfo', + url: 'overview/wellInfo', method: 'get', params: { id: id } }) } - -export function getWellByCode(wellCode) { - return request({ - url: 'smartwell/well/getWellByCode', - method: 'get', - params: { - wellCode: wellCode - } - }) -} // 获取报警列表 export function getAlarmsNow(params) { return request({ - url: 'smartwell/overview/alarmNow', + url: 'overview/alarmNow', method: 'get', params }) @@ -42,7 +32,7 @@ // 某井报警信息 export function getWellAlarms(id) { return request({ - url: 'smartwell/overview/alarmsByWell', + url: 'overview/alarmsByWell', method: 'get', params: { id: id diff --git a/src/api/system/area.js b/src/api/system/area.js index 9d3b9a4..76d8bf9 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -14,7 +14,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: '/config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/tempconfig.js b/src/api/tempconfig.js index cd70c42..dc4530c 100644 --- a/src/api/tempconfig.js +++ b/src/api/tempconfig.js @@ -5,7 +5,7 @@ // 温湿度配置查询 export function getTempConfigList(params) { return request({ - url: 'smartwell/busConfig/tempConfig/list', + url: 'busConfig/tempConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改温湿度配置 export function editTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/config', + url: 'busConfig/tempConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/tempConfig/batchImport', + url: 'busConfig/tempConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/batchExport', + url: 'busConfig/tempConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/well.js b/src/api/well.js index 3d70e52..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -7,7 +7,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/well/list', + url: 'well/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/well/info', + url: 'well/info', method: 'get', params: { id: id @@ -26,7 +26,7 @@ // 井类别 export function getWellType(params) { return request({ - url: 'smartwell/dict/code/sluicewellType', + url: 'dict/code/sluicewellType', method: 'get', params }) @@ -35,7 +35,7 @@ // 添加井 export function addWell(params) { return request({ - url: 'smartwell/well/add', + url: 'well/add', method: 'post', params }) @@ -43,7 +43,7 @@ // 修改井 export function updateWell(params) { return request({ - url: 'smartwell/well/update', + url: 'well/update', method: 'post', params }) @@ -51,7 +51,7 @@ // 删除井 export function delWell(ids) { return request({ - url: 'smartwell/well/delete', + url: 'well/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/well/batchImport', + url: 'well/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -75,7 +75,7 @@ // 批量导出 export function batchExportWell(params, config) { return request({ - url: 'smartwell/well/batchExport', + url: 'well/batchExport', method: 'get', timeout: 120000, params, @@ -86,7 +86,7 @@ // export function batchExportWell(params) { // return request({ -// url: 'smartwell/well/batchExport', +// url: 'well/batchExport', // method: 'get', // timeout: 120000, // params, @@ -96,7 +96,7 @@ // 获取某井内监控数据 export function watchDataByWell(id) { return request({ - url: 'smartwell/well/watchDataByWell', + url: 'well/watchDataByWell', method: 'get', params: { id: id @@ -106,7 +106,7 @@ // 布防撤防 export function bfcf(wellId, bfzt) { return request({ - url: 'smartwell/well/bfcf', + url: 'well/bfcf', method: 'post', params: { wellId: wellId, @@ -117,7 +117,7 @@ // 井批量布防 export function batchBfcf(params) { return request({ - url: 'smartwell/well/batchBfcf', + url: 'well/batchBfcf', method: 'post', params }) @@ -126,7 +126,7 @@ // 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get' }) } @@ -134,7 +134,7 @@ // 单个井查询 export function getWellOne(params) { return request({ - url: 'smartwell/well/selectOne', + url: 'well/selectOne', method: 'get', params }) diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index 07ee165..16e55f0 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -71,7 +71,7 @@ .card-panel-icon-wrapper { float: left; - margin: 14px 0 0 14px; + margin: 14px 0 0 10px; padding: 16px; transition: all 0.38s ease-out; border-radius: 6px; diff --git a/src/icons/svg/icon-order.svg b/src/icons/svg/icon-order.svg new file mode 100644 index 0000000..62d7666 --- /dev/null +++ b/src/icons/svg/icon-order.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/icon-sysconfig.svg b/src/icons/svg/icon-sysconfig.svg new file mode 100644 index 0000000..a440324 --- /dev/null +++ b/src/icons/svg/icon-sysconfig.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/icon-water.svg b/src/icons/svg/icon-water.svg new file mode 100644 index 0000000..8191643 --- /dev/null +++ b/src/icons/svg/icon-water.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 75b7d2a..05ae8d5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -254,68 +254,68 @@ } ] }, - // { - // path: 'system', - // component: Layout, - // redirect: '/resource', - // name: 'System', - // alwaysShow: true, - // meta: { - // title: '系统管理', - // icon: 'icon-config', // 图标 - // permission: ['/system']// 权限名称 - // }, - // children: [ - // { - // path: '/resource', - // name: 'Resource', - // component: () => import('@/views/system/resource/listResource'), - // meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } - // }, - // { - // path: '/dict', - // name: 'Dict', - // component: () => import('@/views/system/dict/listDict'), - // meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } - // }, - // { - // path: '/area', - // name: 'Area', - // component: () => import('@/views/system/area/listArea'), - // meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } - // }, - // { - // path: '/dept', - // name: 'Dept', - // component: () => import('@/views/system/dept/listDept'), - // meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } - // }, - // { - // path: '/role', - // component: () => import('@/views/system/role/listRole'), // Parent router-view - // name: 'Role', - // meta: { title: '角色管理', permission: ['/role/list'] } - // }, - // { - // path: '/user', - // component: () => import('@/views/system/user/listUser'), // Parent router-view - // name: 'User', - // meta: { title: '用户管理', permission: ['/mgr/list'] } - // }, - // { - // path: '/log', - // component: () => import('@/views/system/log/listLog'), // Parent router-view - // name: 'Log', - // meta: { title: '日志管理', permission: ['/log/list'] } - // }, - // { - // path: '/loginLog', - // component: () => import('@/views/system/log/loginLog'), // Parent router-view - // name: 'LoginLog', - // meta: { title: '登录日志', permission: ['/loginLog/list'] } - // } - // ] - // }, + { + path: 'system', + component: Layout, + redirect: '/resource', + name: 'System', + alwaysShow: true, + meta: { + title: '系统管理', + icon: 'icon-config', // 图标 + permission: ['/system']// 权限名称 + }, + children: [ + { + path: '/resource', + name: 'Resource', + component: () => import('@/views/system/resource/listResource'), + meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } + }, + { + path: '/dict', + name: 'Dict', + component: () => import('@/views/system/dict/listDict'), + meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } + }, + { + path: '/area', + name: 'Area', + component: () => import('@/views/system/area/listArea'), + meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } + }, + { + path: '/dept', + name: 'Dept', + component: () => import('@/views/system/dept/listDept'), + meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } + }, + { + path: '/role', + component: () => import('@/views/system/role/listRole'), // Parent router-view + name: 'Role', + meta: { title: '角色管理', permission: ['/role/list'] } + }, + { + path: '/user', + component: () => import('@/views/system/user/listUser'), // Parent router-view + name: 'User', + meta: { title: '用户管理', permission: ['/mgr/list'] } + }, + { + path: '/log', + component: () => import('@/views/system/log/listLog'), // Parent router-view + name: 'Log', + meta: { title: '日志管理', permission: ['/log/list'] } + }, + { + path: '/loginLog', + component: () => import('@/views/system/log/loginLog'), // Parent router-view + name: 'LoginLog', + meta: { title: '登录日志', permission: ['/loginLog/list'] } + } + ] + }, { path: 'systemConfig', component: Layout, diff --git a/src/api/alarm.js b/src/api/alarm.js index 498d531..37f7c3e 100644 --- a/src/api/alarm.js +++ b/src/api/alarm.js @@ -5,7 +5,7 @@ // 告警查询 export function getAlarmList(params) { return request({ - url: 'smartwell/alarm/list', + url: 'alarm/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警类别 export function getAlarmType(params) { return request({ - url: 'smartwell/dict/code/alarmType', + url: 'dict/code/alarmType', method: 'get', params }) @@ -23,7 +23,7 @@ // 告警内容列表 export function getAlarmContentType(alarmType) { return request({ - url: 'smartwell/alarm/contentType', + url: 'alarm/contentType', method: 'get', params: { alarmType: alarmType @@ -33,7 +33,7 @@ // 获取某井内监控数据 export function watchDataByAlarm(id) { return request({ - url: 'smartwell/well/watchDataByAlarm', + url: 'well/watchDataByAlarm', method: 'get', params: { id: id @@ -44,7 +44,7 @@ // 批量导出 export function batchExportAlarm(params) { return request({ - url: 'smartwell/alarm/export', + url: 'alarm/export', method: 'get', timeout: 120000, params, @@ -54,7 +54,7 @@ // 取消报警 export function cancelAlarm(params) { return request({ - url: 'smartwell/alarm/cancelAlarm', + url: 'alarm/cancelAlarm', method: 'post', params }) @@ -63,7 +63,7 @@ // 批量删除告警 export function batchCancel(params) { return request({ - url: 'smartwell/alarm/batchCancel', + url: 'alarm/batchCancel', method: 'post', params }) diff --git a/src/api/alarmRule.js b/src/api/alarmRule.js index a6fb344..0304ecb 100644 --- a/src/api/alarmRule.js +++ b/src/api/alarmRule.js @@ -5,7 +5,7 @@ // 告警规则查询 export function getAlarmRuleList(params) { return request({ - url: 'smartwell/alarmRule/list', + url: 'alarmRule/list', method: 'get', params }) @@ -13,7 +13,7 @@ // 修改告警规则 export function updateAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/update', + url: 'alarmRule/update', method: 'post', params }) @@ -22,7 +22,7 @@ // 告警规则查询 export function getAlarmLevelList(params) { return request({ - url: 'smartwell/alarm/levelList', + url: 'alarm/levelList', method: 'get', params }) @@ -30,7 +30,7 @@ // 告警规则查询 export function getAlarmLevelByType(params) { return request({ - url: 'smartwell/alarm/levelByType', + url: 'alarm/levelByType', method: 'get', params }) @@ -39,7 +39,7 @@ // 修改告警规则 export function updateAlarmLevel(params) { return request({ - url: 'smartwell/alarm/configLevel', + url: 'alarm/configLevel', method: 'post', data: params }) @@ -47,7 +47,7 @@ // 新增告警规则 export function addAlarmRule(params) { return request({ - url: 'smartwell/alarmRule/add', + url: 'alarmRule/add', method: 'post', params }) @@ -55,7 +55,7 @@ // 删除告警规则 export function delAlarmRule(id) { return request({ - url: 'smartwell/alarmRule/delete', + url: 'alarmRule/delete', method: 'post', params: { id: id @@ -65,7 +65,7 @@ // 待配置告警规则的设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/alarmRule/getNoAlarmDevice', + url: 'alarmRule/getNoAlarmDevice', method: 'get' }) } diff --git a/src/api/area.js b/src/api/area.js index f4d9e16..974ce81 100644 --- a/src/api/area.js +++ b/src/api/area.js @@ -23,7 +23,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: 'config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/concentrator.js b/src/api/concentrator.js index f3c9997..9013bdf 100644 --- a/src/api/concentrator.js +++ b/src/api/concentrator.js @@ -6,7 +6,7 @@ // 集中器查询 export function getConcenList(params) { return request({ - url: 'smartwell/concentrator/list', + url: 'concentrator/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加集中器 export function addConcen(params) { return request({ - url: 'smartwell/concentrator/add', + url: 'concentrator/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改集中器 export function updateConcen(params) { return request({ - url: 'smartwell/concentrator/update', + url: 'concentrator/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除集中器 export function delConcen(ids) { return request({ - url: 'smartwell/concentrator/delete', + url: 'concentrator/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/concentrator/batchImport', + url: 'concentrator/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportConcen(params) { return request({ - url: 'smartwell/concentrator/batchExport', + url: 'concentrator/batchExport', method: 'get', timeout: 120000, params, @@ -65,7 +65,7 @@ // 在线状态 export function getStatusType(params) { return request({ - url: 'smartwell/dict/code/onlineStatus', + url: 'dict/code/onlineStatus', method: 'get', params }) diff --git a/src/api/data.js b/src/api/data.js index 27c73bb..db5c8d0 100644 --- a/src/api/data.js +++ b/src/api/data.js @@ -5,7 +5,7 @@ // 井盖数据查询 export function getWellData(params) { return request({ - url: 'smartwell/welldata/list', + url: 'welldata/list', method: 'get', params }) @@ -13,15 +13,25 @@ // 液位数据查询 export function getLiquidData(params) { return request({ - url: 'smartwell/liquiddata/list', + url: 'liquiddata/list', method: 'get', params }) } + +// 物位数据查询 +export function getObjectData(params) { + return request({ + url: 'objectdata/list', + method: 'get', + params + }) +} + // 燃气数据查询 export function getGasData(params) { return request({ - url: 'smartwell/gasdata/list', + url: 'gasdata/list', method: 'get', params }) @@ -29,7 +39,7 @@ // 开挖数据查询 export function getDigData(params) { return request({ - url: 'smartwell/digdata/list', + url: 'digdata/list', method: 'get', params }) @@ -37,7 +47,7 @@ // 有害气体数据查询 export function getHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/list', + url: 'harmfuldata/list', method: 'get', params }) @@ -45,15 +55,16 @@ // 温湿度数据查询 export function getTempData(params) { return request({ - url: 'smartwell/tempdata/list', + url: 'tempdata/list', method: 'get', params }) } + // 井盖定位监测仪数据查询 export function getWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/list', + url: 'welllocadata/list', method: 'get', params }) @@ -61,7 +72,7 @@ // 噪声记录仪数据查询 export function getNoiseData(params) { return request({ - url: 'smartwell/noisedata/list', + url: 'noisedata/list', method: 'get', params }) @@ -70,7 +81,7 @@ // 批量导出井盖数据 export function batchExportWellData(params) { return request({ - url: 'smartwell/welldata/export', + url: 'welldata/export', method: 'get', timeout: 120000, params, @@ -81,7 +92,7 @@ // 批量导出液位数据 export function batchExportLiquidData(params) { return request({ - url: 'smartwell/liquiddata/export', + url: 'liquiddata/export', method: 'get', timeout: 120000, params, @@ -89,10 +100,20 @@ }) } +// 批量导出液位数据 +export function batchExportOjectData(params) { + return request({ + url: 'objectdata/export', + method: 'get', + timeout: 120000, + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} // 批量导出燃气数据 export function batchExportGasData(params) { return request({ - url: 'smartwell/gasdata/export', + url: 'gasdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -103,7 +124,7 @@ // 批量导出开挖数据 export function batchExportDigData(params) { return request({ - url: 'smartwell/digdata/export', + url: 'digdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -114,7 +135,7 @@ // 批量导出温湿度数据 export function batchExportTempData(params) { return request({ - url: 'smartwell/tempdata/export', + url: 'tempdata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -125,7 +146,7 @@ // 批量导出有害气体数据 export function batchExportHarmfulData(params) { return request({ - url: 'smartwell/harmfuldata/export', + url: 'harmfuldata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -136,7 +157,7 @@ // 批量导出井盖定位监测仪数据 export function batchExportWellLocaData(params) { return request({ - url: 'smartwell/welllocadata/export', + url: 'welllocadata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -147,7 +168,7 @@ // 噪声记录仪数据导出 export function batchExportNoiseData(params) { return request({ - url: 'smartwell/noisedata/export', + url: 'noisedata/export', method: 'get', timeout: 120000, // 120s,2分钟 params, @@ -155,3 +176,22 @@ }) } +// 温度压力数据查询 +export function getTempPressData(params) { + return request({ + url: 'temppressdata/list', + method: 'get', + params + }) +} + +// 温度压力数据导出 +export function batchExportTempPressData(params) { + return request({ + url: 'temppressdata/export', + method: 'get', + timeout: 120000, // 120s,2分钟 + params, + responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob + }) +} diff --git a/src/api/dataStatics.js b/src/api/dataStatics.js index ff01a45..b96a05e 100644 --- a/src/api/dataStatics.js +++ b/src/api/dataStatics.js @@ -6,7 +6,7 @@ // 根据布防状态统计井数量 export function wellStaticByBfzt(params) { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get', params }) @@ -14,7 +14,7 @@ // 根据权属单位统计井数量 export function wellStaticByDept(params) { return request({ - url: 'smartwell/statics/wellStaticsByDept', + url: 'statics/wellStaticsByDept', method: 'get', params }) @@ -23,7 +23,7 @@ // 根据井类型统计井数量 export function wellStaticByType(params) { return request({ - url: 'smartwell/statics/wellStaticsByType', + url: 'statics/wellStaticsByType', method: 'get', params }) @@ -32,7 +32,7 @@ // 根据设备类型统计设备数量 export function deviceStaticsByType(params) { return request({ - url: 'smartwell/statics/deviceStaticsByType', + url: 'statics/deviceStaticsByType', method: 'get', params }) @@ -41,7 +41,7 @@ // 根据权属单位统计设备数量 export function deviceStaticsByDept(params) { return request({ - url: 'smartwell/statics/deviceStaticsByDept', + url: 'statics/deviceStaticsByDept', method: 'get', params }) @@ -50,7 +50,7 @@ // 根据在线状态统计设备数量 export function deviceStaticByStatus(params) { return request({ - url: 'smartwell/statics/deviceStaticsByStatus', + url: 'statics/deviceStaticsByStatus', method: 'get', params }) @@ -59,7 +59,7 @@ // 统计当前报警数 export function alarmNowStatic(params) { return request({ - url: 'smartwell/statics/alarmsNow', + url: 'statics/alarmsNow', method: 'get', params }) @@ -67,7 +67,7 @@ // 统计每日报警数 export function alarmStaticByDay(params) { return request({ - url: 'smartwell/statics/alarmsByDay', + url: 'statics/alarmsByDay', method: 'get', params }) @@ -76,7 +76,7 @@ // 根据权属单位进行报警统计查询 export function alarmStaticByDept(params) { return request({ - url: 'smartwell/statics/alarmsByDept', + url: 'statics/alarmsByDept', method: 'get', params }) @@ -85,7 +85,7 @@ // 根据权属单位统计工单数量 export function jobStaticsByDept(params) { return request({ - url: 'smartwell/statics/jobsByDept', + url: 'statics/jobsByDept', method: 'get', params }) diff --git a/src/api/device.js b/src/api/device.js index d97751d..1e22a69 100644 --- a/src/api/device.js +++ b/src/api/device.js @@ -7,7 +7,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/device/list', + url: 'device/list', method: 'get', params }) @@ -16,7 +16,7 @@ // 设备类别 export function getDeviceType(params) { return request({ - url: 'smartwell/device/type', + url: 'device/type', method: 'get', params }) @@ -25,7 +25,7 @@ // 设备型号 export function getDeviceModel(deviceType) { return request({ - url: 'smartwell/device/model', + url: 'device/model', method: 'get', params: { deviceType: deviceType @@ -36,7 +36,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/device/add', + url: 'device/add', method: 'post', params }) @@ -44,7 +44,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/device/update', + url: 'device/update', method: 'post', params }) @@ -52,7 +52,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/device/delete', + url: 'device/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/device/batchImport', + url: 'device/batchImport', method: 'post', timeout: 240000, headers: { 'Content-Type': 'multipart/form-data' }, @@ -76,7 +76,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/device/batchExport', + url: 'device/batchExport', method: 'get', timeout: 120000, params, diff --git a/src/api/digconfig.js b/src/api/digconfig.js index d3e42fc..3725e71 100644 --- a/src/api/digconfig.js +++ b/src/api/digconfig.js @@ -5,7 +5,7 @@ // 开挖配置查询 export function getDigConfigList(params) { return request({ - url: 'smartwell/busConfig/digConfig/list', + url: 'busConfig/digConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改开挖配置 export function editDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/config', + url: 'busConfig/digConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/digConfig/batchImport', + url: 'busConfig/digConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportDigConfig(params) { return request({ - url: 'smartwell/busConfig/digConfig/batchExport', + url: 'busConfig/digConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/gasconfig.js b/src/api/gasconfig.js index 642aeea..fc15077 100644 --- a/src/api/gasconfig.js +++ b/src/api/gasconfig.js @@ -5,7 +5,7 @@ // 燃气配置查询 export function getGasConfigList(params) { return request({ - url: 'smartwell/busConfig/gasConfig/list', + url: 'busConfig/gasConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改燃气配置 export function editGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/config', + url: 'busConfig/gasConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/gasConfig/batchImport', + url: 'busConfig/gasConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportGasConfig(params) { return request({ - url: 'smartwell/busConfig/gasConfig/batchExport', + url: 'busConfig/gasConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/harmfulconfig.js b/src/api/harmfulconfig.js index 62e3270..5d34347 100644 --- a/src/api/harmfulconfig.js +++ b/src/api/harmfulconfig.js @@ -5,7 +5,7 @@ // 有害气体配置查询 export function getHarmfulConfigList(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/list', + url: 'busConfig/harmfulConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改有害气体配置 export function editHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/config', + url: 'busConfig/harmfulConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/harmfulConfig/batchImport', + url: 'busConfig/harmfulConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportHarmfulConfig(params) { return request({ - url: 'smartwell/busConfig/harmfulConfig/batchExport', + url: 'busConfig/harmfulConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/job.js b/src/api/job.js index b0884ea..1ec49a2 100644 --- a/src/api/job.js +++ b/src/api/job.js @@ -6,7 +6,7 @@ // 查询工单状态 export function getJobStatus(params) { return request({ - url: 'smartwell/dict/code/jobStatus', + url: 'dict/code/jobStatus', method: 'get', params }) @@ -14,7 +14,7 @@ // 告警工单查询 export function getJobList(params) { return request({ - url: 'smartwell/job/list', + url: 'job/list', method: 'get', params }) @@ -23,7 +23,7 @@ // 超时未接单告警工单查询 export function getOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/overtimeGetList', + url: 'job/overtimeGetList', method: 'get', params }) @@ -32,7 +32,7 @@ // 超时未处理告警工单查询 export function getOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/overtimeHandleList', + url: 'job/overtimeHandleList', method: 'get', params }) @@ -40,7 +40,7 @@ // 处理工单 export function handleJob(id) { return request({ - url: 'smartwell/job/handleJob', + url: 'job/handleJob', method: 'post', params: { id: id @@ -51,7 +51,7 @@ // 工单详情 export function getJobInfo(jobId) { return request({ - url: 'smartwell/job/info', + url: 'job/info', method: 'get', params: { id: jobId @@ -61,7 +61,7 @@ // 批量导出 export function batchExportJob(params) { return request({ - url: 'smartwell/job/export', + url: 'job/export', method: 'get', timeout: 120000, params, @@ -72,7 +72,7 @@ // 批量导出超时未接单工单 export function exportOvertimeGetJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeGetList', + url: 'job/exportOvertimeGetList', method: 'get', timeout: 120000, params, @@ -83,7 +83,7 @@ // 批量导出超时未处理工单 export function exportOvertimeHandleJobList(params) { return request({ - url: 'smartwell/job/exportOvertimeHandleList', + url: 'job/exportOvertimeHandleList', method: 'get', timeout: 120000, params, @@ -94,7 +94,7 @@ // 根据工单状态统计工单数量 export function jobCountByStatus(params) { return request({ - url: 'smartwell/job/countByJobStatus', + url: 'job/countByJobStatus', method: 'get', params }) diff --git a/src/api/liquidconfig.js b/src/api/liquidconfig.js index 2df9593..fcf5aca 100644 --- a/src/api/liquidconfig.js +++ b/src/api/liquidconfig.js @@ -5,7 +5,7 @@ // 液位配置查询 export function getLiquidConfigList(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/list', + url: 'busConfig/liquidConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改液位配置 export function editLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/config', + url: 'busConfig/liquidConfig/config', method: 'post', params }) @@ -23,7 +23,7 @@ // 根据设备编号,设备类型,设备配置状态获取设备列表 export function getDeviceSimpleList(deviceType, configStatus) { return request({ - url: 'smartwell/device/listByConfig', + url: 'device/listByConfig', method: 'get', params: { deviceType: deviceType, @@ -37,7 +37,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/liquidConfig/batchImport', + url: 'busConfig/liquidConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -46,7 +46,7 @@ // 批量导出 export function batchExportLiquidConfig(params) { return request({ - url: 'smartwell/busConfig/liquidConfig/batchExport', + url: 'busConfig/liquidConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/login.js b/src/api/login.js index 376457c..5d69126 100644 --- a/src/api/login.js +++ b/src/api/login.js @@ -15,11 +15,10 @@ }) } // 获取用户权限(菜单、按钮) -export function getMenus(params) { +export function getMenus() { return request({ url: '/user/permission', - method: 'get', - params: params + method: 'get' }) } // 登出 @@ -50,7 +49,7 @@ // 获取业务权限 export function getBizPerm(token) { return request({ - url: 'smartwell/config/getAuthorByDept', + url: '/config/getAuthorByDept', method: 'get', params: { token } }) diff --git a/src/api/nbdevice.js b/src/api/nbdevice.js index 6553c14..51ca444 100644 --- a/src/api/nbdevice.js +++ b/src/api/nbdevice.js @@ -6,7 +6,7 @@ // 设备查询 export function getDeviceList(params) { return request({ - url: 'smartwell/nbdevice/list', + url: 'nbdevice/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 添加设备 export function addDevice(params) { return request({ - url: 'smartwell/nbdevice/add', + url: 'nbdevice/add', method: 'post', params }) @@ -23,7 +23,7 @@ // 修改设备 export function updateDevice(params) { return request({ - url: 'smartwell/nbdevice/update', + url: 'nbdevice/update', method: 'post', params }) @@ -31,7 +31,7 @@ // 删除设备 export function delDevice(ids) { return request({ - url: 'smartwell/nbdevice/delete', + url: 'nbdevice/delete', method: 'post', params: { ids: ids @@ -45,7 +45,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/nbdevice/batchImport', + url: 'nbdevice/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -54,7 +54,7 @@ // 批量导出 export function batchExportDevice(params) { return request({ - url: 'smartwell/nbdevice/batchExport', + url: 'nbdevice/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/noiseconfig.js b/src/api/noiseconfig.js index 1ab03fa..66d6d9a 100644 --- a/src/api/noiseconfig.js +++ b/src/api/noiseconfig.js @@ -5,7 +5,7 @@ // 噪声配置查询 export function getNoiseConfigList(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/list', + url: 'busConfig/noiseConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改噪声配置 export function editNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/config', + url: 'busConfig/noiseConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/noiseConfig/batchImport', + url: 'busConfig/noiseConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportNoiseConfig(params) { return request({ - url: 'smartwell/busConfig/noiseConfig/batchExport', + url: 'busConfig/noiseConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/overview.js b/src/api/overview.js index d1853dd..2e62e69 100644 --- a/src/api/overview.js +++ b/src/api/overview.js @@ -5,7 +5,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/overview/wellList', + url: 'overview/wellList', method: 'get', params }) @@ -13,27 +13,17 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/overview/wellInfo', + url: 'overview/wellInfo', method: 'get', params: { id: id } }) } - -export function getWellByCode(wellCode) { - return request({ - url: 'smartwell/well/getWellByCode', - method: 'get', - params: { - wellCode: wellCode - } - }) -} // 获取报警列表 export function getAlarmsNow(params) { return request({ - url: 'smartwell/overview/alarmNow', + url: 'overview/alarmNow', method: 'get', params }) @@ -42,7 +32,7 @@ // 某井报警信息 export function getWellAlarms(id) { return request({ - url: 'smartwell/overview/alarmsByWell', + url: 'overview/alarmsByWell', method: 'get', params: { id: id diff --git a/src/api/system/area.js b/src/api/system/area.js index 9d3b9a4..76d8bf9 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -14,7 +14,7 @@ // 根据部门找其默认区域 export function getAreaByDept(deptid) { return request({ - url: 'smartwell/config/getAreaByDept', + url: '/config/getAreaByDept', method: 'get', params: { deptId: deptid diff --git a/src/api/tempconfig.js b/src/api/tempconfig.js index cd70c42..dc4530c 100644 --- a/src/api/tempconfig.js +++ b/src/api/tempconfig.js @@ -5,7 +5,7 @@ // 温湿度配置查询 export function getTempConfigList(params) { return request({ - url: 'smartwell/busConfig/tempConfig/list', + url: 'busConfig/tempConfig/list', method: 'get', params }) @@ -14,7 +14,7 @@ // 修改温湿度配置 export function editTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/config', + url: 'busConfig/tempConfig/config', method: 'post', params }) @@ -25,7 +25,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/busConfig/tempConfig/batchImport', + url: 'busConfig/tempConfig/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -34,7 +34,7 @@ // 批量导出 export function batchExportTempConfig(params) { return request({ - url: 'smartwell/busConfig/tempConfig/batchExport', + url: 'busConfig/tempConfig/batchExport', method: 'get', params, responseType: 'blob' // 这一步也很关键,一定要加上 responseType 值为 blob diff --git a/src/api/well.js b/src/api/well.js index 3d70e52..7251853 100644 --- a/src/api/well.js +++ b/src/api/well.js @@ -7,7 +7,7 @@ // 井查询 export function getWellList(params) { return request({ - url: 'smartwell/well/list', + url: 'well/list', method: 'get', params }) @@ -15,7 +15,7 @@ // 获取井详情 export function getWellInfo(id) { return request({ - url: 'smartwell/well/info', + url: 'well/info', method: 'get', params: { id: id @@ -26,7 +26,7 @@ // 井类别 export function getWellType(params) { return request({ - url: 'smartwell/dict/code/sluicewellType', + url: 'dict/code/sluicewellType', method: 'get', params }) @@ -35,7 +35,7 @@ // 添加井 export function addWell(params) { return request({ - url: 'smartwell/well/add', + url: 'well/add', method: 'post', params }) @@ -43,7 +43,7 @@ // 修改井 export function updateWell(params) { return request({ - url: 'smartwell/well/update', + url: 'well/update', method: 'post', params }) @@ -51,7 +51,7 @@ // 删除井 export function delWell(ids) { return request({ - url: 'smartwell/well/delete', + url: 'well/delete', method: 'post', params: { ids: ids @@ -66,7 +66,7 @@ const param = new FormData() param.append('file', fileobj) return request({ - url: 'smartwell/well/batchImport', + url: 'well/batchImport', method: 'post', headers: { 'Content-Type': 'multipart/form-data' }, data: param @@ -75,7 +75,7 @@ // 批量导出 export function batchExportWell(params, config) { return request({ - url: 'smartwell/well/batchExport', + url: 'well/batchExport', method: 'get', timeout: 120000, params, @@ -86,7 +86,7 @@ // export function batchExportWell(params) { // return request({ -// url: 'smartwell/well/batchExport', +// url: 'well/batchExport', // method: 'get', // timeout: 120000, // params, @@ -96,7 +96,7 @@ // 获取某井内监控数据 export function watchDataByWell(id) { return request({ - url: 'smartwell/well/watchDataByWell', + url: 'well/watchDataByWell', method: 'get', params: { id: id @@ -106,7 +106,7 @@ // 布防撤防 export function bfcf(wellId, bfzt) { return request({ - url: 'smartwell/well/bfcf', + url: 'well/bfcf', method: 'post', params: { wellId: wellId, @@ -117,7 +117,7 @@ // 井批量布防 export function batchBfcf(params) { return request({ - url: 'smartwell/well/batchBfcf', + url: 'well/batchBfcf', method: 'post', params }) @@ -126,7 +126,7 @@ // 根据布防状态统计井数量 export function wellCountByBfzt() { return request({ - url: 'smartwell/well/countByBfzt', + url: 'well/countByBfzt', method: 'get' }) } @@ -134,7 +134,7 @@ // 单个井查询 export function getWellOne(params) { return request({ - url: 'smartwell/well/selectOne', + url: 'well/selectOne', method: 'get', params }) diff --git a/src/components/BigData/Card/index.vue b/src/components/BigData/Card/index.vue index 07ee165..16e55f0 100644 --- a/src/components/BigData/Card/index.vue +++ b/src/components/BigData/Card/index.vue @@ -71,7 +71,7 @@ .card-panel-icon-wrapper { float: left; - margin: 14px 0 0 14px; + margin: 14px 0 0 10px; padding: 16px; transition: all 0.38s ease-out; border-radius: 6px; diff --git a/src/icons/svg/icon-order.svg b/src/icons/svg/icon-order.svg new file mode 100644 index 0000000..62d7666 --- /dev/null +++ b/src/icons/svg/icon-order.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/icons/svg/icon-sysconfig.svg b/src/icons/svg/icon-sysconfig.svg new file mode 100644 index 0000000..a440324 --- /dev/null +++ b/src/icons/svg/icon-sysconfig.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/icon-water.svg b/src/icons/svg/icon-water.svg new file mode 100644 index 0000000..8191643 --- /dev/null +++ b/src/icons/svg/icon-water.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 75b7d2a..05ae8d5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -254,68 +254,68 @@ } ] }, - // { - // path: 'system', - // component: Layout, - // redirect: '/resource', - // name: 'System', - // alwaysShow: true, - // meta: { - // title: '系统管理', - // icon: 'icon-config', // 图标 - // permission: ['/system']// 权限名称 - // }, - // children: [ - // { - // path: '/resource', - // name: 'Resource', - // component: () => import('@/views/system/resource/listResource'), - // meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } - // }, - // { - // path: '/dict', - // name: 'Dict', - // component: () => import('@/views/system/dict/listDict'), - // meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } - // }, - // { - // path: '/area', - // name: 'Area', - // component: () => import('@/views/system/area/listArea'), - // meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } - // }, - // { - // path: '/dept', - // name: 'Dept', - // component: () => import('@/views/system/dept/listDept'), - // meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } - // }, - // { - // path: '/role', - // component: () => import('@/views/system/role/listRole'), // Parent router-view - // name: 'Role', - // meta: { title: '角色管理', permission: ['/role/list'] } - // }, - // { - // path: '/user', - // component: () => import('@/views/system/user/listUser'), // Parent router-view - // name: 'User', - // meta: { title: '用户管理', permission: ['/mgr/list'] } - // }, - // { - // path: '/log', - // component: () => import('@/views/system/log/listLog'), // Parent router-view - // name: 'Log', - // meta: { title: '日志管理', permission: ['/log/list'] } - // }, - // { - // path: '/loginLog', - // component: () => import('@/views/system/log/loginLog'), // Parent router-view - // name: 'LoginLog', - // meta: { title: '登录日志', permission: ['/loginLog/list'] } - // } - // ] - // }, + { + path: 'system', + component: Layout, + redirect: '/resource', + name: 'System', + alwaysShow: true, + meta: { + title: '系统管理', + icon: 'icon-config', // 图标 + permission: ['/system']// 权限名称 + }, + children: [ + { + path: '/resource', + name: 'Resource', + component: () => import('@/views/system/resource/listResource'), + meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } + }, + { + path: '/dict', + name: 'Dict', + component: () => import('@/views/system/dict/listDict'), + meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } + }, + { + path: '/area', + name: 'Area', + component: () => import('@/views/system/area/listArea'), + meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } + }, + { + path: '/dept', + name: 'Dept', + component: () => import('@/views/system/dept/listDept'), + meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } + }, + { + path: '/role', + component: () => import('@/views/system/role/listRole'), // Parent router-view + name: 'Role', + meta: { title: '角色管理', permission: ['/role/list'] } + }, + { + path: '/user', + component: () => import('@/views/system/user/listUser'), // Parent router-view + name: 'User', + meta: { title: '用户管理', permission: ['/mgr/list'] } + }, + { + path: '/log', + component: () => import('@/views/system/log/listLog'), // Parent router-view + name: 'Log', + meta: { title: '日志管理', permission: ['/log/list'] } + }, + { + path: '/loginLog', + component: () => import('@/views/system/log/loginLog'), // Parent router-view + name: 'LoginLog', + meta: { title: '登录日志', permission: ['/loginLog/list'] } + } + ] + }, { path: 'systemConfig', component: Layout, diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 311ba62..da2888e 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -1,9 +1,9 @@ @@ -29,10 +29,18 @@ permission: '/well/list' }, { + title: '总用水量', + context: '--', + icon: 'icon-water', + color: '#36a3f7', + path: '/wellList', + permission: '/well/list' + }, + { title: '设备数量', context: '--', icon: 'icon-device', - color: '#36a3f7', + color: '#9694f7', path: '/deviceList', permission: '/device/list' }, @@ -97,10 +105,15 @@ \ No newline at end of file diff --git a/src/icons/svg/icon-sysconfig.svg b/src/icons/svg/icon-sysconfig.svg new file mode 100644 index 0000000..a440324 --- /dev/null +++ b/src/icons/svg/icon-sysconfig.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/icon-water.svg b/src/icons/svg/icon-water.svg new file mode 100644 index 0000000..8191643 --- /dev/null +++ b/src/icons/svg/icon-water.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 75b7d2a..05ae8d5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -254,68 +254,68 @@ } ] }, - // { - // path: 'system', - // component: Layout, - // redirect: '/resource', - // name: 'System', - // alwaysShow: true, - // meta: { - // title: '系统管理', - // icon: 'icon-config', // 图标 - // permission: ['/system']// 权限名称 - // }, - // children: [ - // { - // path: '/resource', - // name: 'Resource', - // component: () => import('@/views/system/resource/listResource'), - // meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } - // }, - // { - // path: '/dict', - // name: 'Dict', - // component: () => import('@/views/system/dict/listDict'), - // meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } - // }, - // { - // path: '/area', - // name: 'Area', - // component: () => import('@/views/system/area/listArea'), - // meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } - // }, - // { - // path: '/dept', - // name: 'Dept', - // component: () => import('@/views/system/dept/listDept'), - // meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } - // }, - // { - // path: '/role', - // component: () => import('@/views/system/role/listRole'), // Parent router-view - // name: 'Role', - // meta: { title: '角色管理', permission: ['/role/list'] } - // }, - // { - // path: '/user', - // component: () => import('@/views/system/user/listUser'), // Parent router-view - // name: 'User', - // meta: { title: '用户管理', permission: ['/mgr/list'] } - // }, - // { - // path: '/log', - // component: () => import('@/views/system/log/listLog'), // Parent router-view - // name: 'Log', - // meta: { title: '日志管理', permission: ['/log/list'] } - // }, - // { - // path: '/loginLog', - // component: () => import('@/views/system/log/loginLog'), // Parent router-view - // name: 'LoginLog', - // meta: { title: '登录日志', permission: ['/loginLog/list'] } - // } - // ] - // }, + { + path: 'system', + component: Layout, + redirect: '/resource', + name: 'System', + alwaysShow: true, + meta: { + title: '系统管理', + icon: 'icon-config', // 图标 + permission: ['/system']// 权限名称 + }, + children: [ + { + path: '/resource', + name: 'Resource', + component: () => import('@/views/system/resource/listResource'), + meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } + }, + { + path: '/dict', + name: 'Dict', + component: () => import('@/views/system/dict/listDict'), + meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } + }, + { + path: '/area', + name: 'Area', + component: () => import('@/views/system/area/listArea'), + meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } + }, + { + path: '/dept', + name: 'Dept', + component: () => import('@/views/system/dept/listDept'), + meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } + }, + { + path: '/role', + component: () => import('@/views/system/role/listRole'), // Parent router-view + name: 'Role', + meta: { title: '角色管理', permission: ['/role/list'] } + }, + { + path: '/user', + component: () => import('@/views/system/user/listUser'), // Parent router-view + name: 'User', + meta: { title: '用户管理', permission: ['/mgr/list'] } + }, + { + path: '/log', + component: () => import('@/views/system/log/listLog'), // Parent router-view + name: 'Log', + meta: { title: '日志管理', permission: ['/log/list'] } + }, + { + path: '/loginLog', + component: () => import('@/views/system/log/loginLog'), // Parent router-view + name: 'LoginLog', + meta: { title: '登录日志', permission: ['/loginLog/list'] } + } + ] + }, { path: 'systemConfig', component: Layout, diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 311ba62..da2888e 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -1,9 +1,9 @@ @@ -29,10 +29,18 @@ permission: '/well/list' }, { + title: '总用水量', + context: '--', + icon: 'icon-water', + color: '#36a3f7', + path: '/wellList', + permission: '/well/list' + }, + { title: '设备数量', context: '--', icon: 'icon-device', - color: '#36a3f7', + color: '#9694f7', path: '/deviceList', permission: '/device/list' }, @@ -97,10 +105,15 @@ \ No newline at end of file diff --git a/src/icons/svg/icon-sysconfig.svg b/src/icons/svg/icon-sysconfig.svg new file mode 100644 index 0000000..a440324 --- /dev/null +++ b/src/icons/svg/icon-sysconfig.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/icon-water.svg b/src/icons/svg/icon-water.svg new file mode 100644 index 0000000..8191643 --- /dev/null +++ b/src/icons/svg/icon-water.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 75b7d2a..05ae8d5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -254,68 +254,68 @@ } ] }, - // { - // path: 'system', - // component: Layout, - // redirect: '/resource', - // name: 'System', - // alwaysShow: true, - // meta: { - // title: '系统管理', - // icon: 'icon-config', // 图标 - // permission: ['/system']// 权限名称 - // }, - // children: [ - // { - // path: '/resource', - // name: 'Resource', - // component: () => import('@/views/system/resource/listResource'), - // meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } - // }, - // { - // path: '/dict', - // name: 'Dict', - // component: () => import('@/views/system/dict/listDict'), - // meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } - // }, - // { - // path: '/area', - // name: 'Area', - // component: () => import('@/views/system/area/listArea'), - // meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } - // }, - // { - // path: '/dept', - // name: 'Dept', - // component: () => import('@/views/system/dept/listDept'), - // meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } - // }, - // { - // path: '/role', - // component: () => import('@/views/system/role/listRole'), // Parent router-view - // name: 'Role', - // meta: { title: '角色管理', permission: ['/role/list'] } - // }, - // { - // path: '/user', - // component: () => import('@/views/system/user/listUser'), // Parent router-view - // name: 'User', - // meta: { title: '用户管理', permission: ['/mgr/list'] } - // }, - // { - // path: '/log', - // component: () => import('@/views/system/log/listLog'), // Parent router-view - // name: 'Log', - // meta: { title: '日志管理', permission: ['/log/list'] } - // }, - // { - // path: '/loginLog', - // component: () => import('@/views/system/log/loginLog'), // Parent router-view - // name: 'LoginLog', - // meta: { title: '登录日志', permission: ['/loginLog/list'] } - // } - // ] - // }, + { + path: 'system', + component: Layout, + redirect: '/resource', + name: 'System', + alwaysShow: true, + meta: { + title: '系统管理', + icon: 'icon-config', // 图标 + permission: ['/system']// 权限名称 + }, + children: [ + { + path: '/resource', + name: 'Resource', + component: () => import('@/views/system/resource/listResource'), + meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } + }, + { + path: '/dict', + name: 'Dict', + component: () => import('@/views/system/dict/listDict'), + meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } + }, + { + path: '/area', + name: 'Area', + component: () => import('@/views/system/area/listArea'), + meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } + }, + { + path: '/dept', + name: 'Dept', + component: () => import('@/views/system/dept/listDept'), + meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } + }, + { + path: '/role', + component: () => import('@/views/system/role/listRole'), // Parent router-view + name: 'Role', + meta: { title: '角色管理', permission: ['/role/list'] } + }, + { + path: '/user', + component: () => import('@/views/system/user/listUser'), // Parent router-view + name: 'User', + meta: { title: '用户管理', permission: ['/mgr/list'] } + }, + { + path: '/log', + component: () => import('@/views/system/log/listLog'), // Parent router-view + name: 'Log', + meta: { title: '日志管理', permission: ['/log/list'] } + }, + { + path: '/loginLog', + component: () => import('@/views/system/log/loginLog'), // Parent router-view + name: 'LoginLog', + meta: { title: '登录日志', permission: ['/loginLog/list'] } + } + ] + }, { path: 'systemConfig', component: Layout, diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 311ba62..da2888e 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -1,9 +1,9 @@ @@ -29,10 +29,18 @@ permission: '/well/list' }, { + title: '总用水量', + context: '--', + icon: 'icon-water', + color: '#36a3f7', + path: '/wellList', + permission: '/well/list' + }, + { title: '设备数量', context: '--', icon: 'icon-device', - color: '#36a3f7', + color: '#9694f7', path: '/deviceList', permission: '/device/list' }, @@ -97,10 +105,15 @@ \ No newline at end of file diff --git a/src/icons/svg/icon-sysconfig.svg b/src/icons/svg/icon-sysconfig.svg new file mode 100644 index 0000000..a440324 --- /dev/null +++ b/src/icons/svg/icon-sysconfig.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/icon-water.svg b/src/icons/svg/icon-water.svg new file mode 100644 index 0000000..8191643 --- /dev/null +++ b/src/icons/svg/icon-water.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 75b7d2a..05ae8d5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -254,68 +254,68 @@ } ] }, - // { - // path: 'system', - // component: Layout, - // redirect: '/resource', - // name: 'System', - // alwaysShow: true, - // meta: { - // title: '系统管理', - // icon: 'icon-config', // 图标 - // permission: ['/system']// 权限名称 - // }, - // children: [ - // { - // path: '/resource', - // name: 'Resource', - // component: () => import('@/views/system/resource/listResource'), - // meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } - // }, - // { - // path: '/dict', - // name: 'Dict', - // component: () => import('@/views/system/dict/listDict'), - // meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } - // }, - // { - // path: '/area', - // name: 'Area', - // component: () => import('@/views/system/area/listArea'), - // meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } - // }, - // { - // path: '/dept', - // name: 'Dept', - // component: () => import('@/views/system/dept/listDept'), - // meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } - // }, - // { - // path: '/role', - // component: () => import('@/views/system/role/listRole'), // Parent router-view - // name: 'Role', - // meta: { title: '角色管理', permission: ['/role/list'] } - // }, - // { - // path: '/user', - // component: () => import('@/views/system/user/listUser'), // Parent router-view - // name: 'User', - // meta: { title: '用户管理', permission: ['/mgr/list'] } - // }, - // { - // path: '/log', - // component: () => import('@/views/system/log/listLog'), // Parent router-view - // name: 'Log', - // meta: { title: '日志管理', permission: ['/log/list'] } - // }, - // { - // path: '/loginLog', - // component: () => import('@/views/system/log/loginLog'), // Parent router-view - // name: 'LoginLog', - // meta: { title: '登录日志', permission: ['/loginLog/list'] } - // } - // ] - // }, + { + path: 'system', + component: Layout, + redirect: '/resource', + name: 'System', + alwaysShow: true, + meta: { + title: '系统管理', + icon: 'icon-config', // 图标 + permission: ['/system']// 权限名称 + }, + children: [ + { + path: '/resource', + name: 'Resource', + component: () => import('@/views/system/resource/listResource'), + meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } + }, + { + path: '/dict', + name: 'Dict', + component: () => import('@/views/system/dict/listDict'), + meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } + }, + { + path: '/area', + name: 'Area', + component: () => import('@/views/system/area/listArea'), + meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } + }, + { + path: '/dept', + name: 'Dept', + component: () => import('@/views/system/dept/listDept'), + meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } + }, + { + path: '/role', + component: () => import('@/views/system/role/listRole'), // Parent router-view + name: 'Role', + meta: { title: '角色管理', permission: ['/role/list'] } + }, + { + path: '/user', + component: () => import('@/views/system/user/listUser'), // Parent router-view + name: 'User', + meta: { title: '用户管理', permission: ['/mgr/list'] } + }, + { + path: '/log', + component: () => import('@/views/system/log/listLog'), // Parent router-view + name: 'Log', + meta: { title: '日志管理', permission: ['/log/list'] } + }, + { + path: '/loginLog', + component: () => import('@/views/system/log/loginLog'), // Parent router-view + name: 'LoginLog', + meta: { title: '登录日志', permission: ['/loginLog/list'] } + } + ] + }, { path: 'systemConfig', component: Layout, diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 311ba62..da2888e 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -1,9 +1,9 @@ @@ -29,10 +29,18 @@ permission: '/well/list' }, { + title: '总用水量', + context: '--', + icon: 'icon-water', + color: '#36a3f7', + path: '/wellList', + permission: '/well/list' + }, + { title: '设备数量', context: '--', icon: 'icon-device', - color: '#36a3f7', + color: '#9694f7', path: '/deviceList', permission: '/device/list' }, @@ -97,10 +105,15 @@ \ No newline at end of file diff --git a/src/icons/svg/icon-sysconfig.svg b/src/icons/svg/icon-sysconfig.svg new file mode 100644 index 0000000..a440324 --- /dev/null +++ b/src/icons/svg/icon-sysconfig.svg @@ -0,0 +1 @@ + diff --git a/src/icons/svg/icon-water.svg b/src/icons/svg/icon-water.svg new file mode 100644 index 0000000..8191643 --- /dev/null +++ b/src/icons/svg/icon-water.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/index.js b/src/router/index.js index 75b7d2a..05ae8d5 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -254,68 +254,68 @@ } ] }, - // { - // path: 'system', - // component: Layout, - // redirect: '/resource', - // name: 'System', - // alwaysShow: true, - // meta: { - // title: '系统管理', - // icon: 'icon-config', // 图标 - // permission: ['/system']// 权限名称 - // }, - // children: [ - // { - // path: '/resource', - // name: 'Resource', - // component: () => import('@/views/system/resource/listResource'), - // meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } - // }, - // { - // path: '/dict', - // name: 'Dict', - // component: () => import('@/views/system/dict/listDict'), - // meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } - // }, - // { - // path: '/area', - // name: 'Area', - // component: () => import('@/views/system/area/listArea'), - // meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } - // }, - // { - // path: '/dept', - // name: 'Dept', - // component: () => import('@/views/system/dept/listDept'), - // meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } - // }, - // { - // path: '/role', - // component: () => import('@/views/system/role/listRole'), // Parent router-view - // name: 'Role', - // meta: { title: '角色管理', permission: ['/role/list'] } - // }, - // { - // path: '/user', - // component: () => import('@/views/system/user/listUser'), // Parent router-view - // name: 'User', - // meta: { title: '用户管理', permission: ['/mgr/list'] } - // }, - // { - // path: '/log', - // component: () => import('@/views/system/log/listLog'), // Parent router-view - // name: 'Log', - // meta: { title: '日志管理', permission: ['/log/list'] } - // }, - // { - // path: '/loginLog', - // component: () => import('@/views/system/log/loginLog'), // Parent router-view - // name: 'LoginLog', - // meta: { title: '登录日志', permission: ['/loginLog/list'] } - // } - // ] - // }, + { + path: 'system', + component: Layout, + redirect: '/resource', + name: 'System', + alwaysShow: true, + meta: { + title: '系统管理', + icon: 'icon-config', // 图标 + permission: ['/system']// 权限名称 + }, + children: [ + { + path: '/resource', + name: 'Resource', + component: () => import('@/views/system/resource/listResource'), + meta: { title: '资源管理', icon: 'function', permission: ['/resource/list'] } + }, + { + path: '/dict', + name: 'Dict', + component: () => import('@/views/system/dict/listDict'), + meta: { title: '字典管理', icon: 'function', permission: ['/dict/list'] } + }, + { + path: '/area', + name: 'Area', + component: () => import('@/views/system/area/listArea'), + meta: { title: '区域管理', icon: 'function', permission: ['/area/list'] } + }, + { + path: '/dept', + name: 'Dept', + component: () => import('@/views/system/dept/listDept'), + meta: { title: '组织管理', icon: 'tree', permission: ['/dept/list'] } + }, + { + path: '/role', + component: () => import('@/views/system/role/listRole'), // Parent router-view + name: 'Role', + meta: { title: '角色管理', permission: ['/role/list'] } + }, + { + path: '/user', + component: () => import('@/views/system/user/listUser'), // Parent router-view + name: 'User', + meta: { title: '用户管理', permission: ['/mgr/list'] } + }, + { + path: '/log', + component: () => import('@/views/system/log/listLog'), // Parent router-view + name: 'Log', + meta: { title: '日志管理', permission: ['/log/list'] } + }, + { + path: '/loginLog', + component: () => import('@/views/system/log/loginLog'), // Parent router-view + name: 'LoginLog', + meta: { title: '登录日志', permission: ['/loginLog/list'] } + } + ] + }, { path: 'systemConfig', component: Layout, diff --git a/src/views/dashboard/components/PanelGroup.vue b/src/views/dashboard/components/PanelGroup.vue index 311ba62..da2888e 100644 --- a/src/views/dashboard/components/PanelGroup.vue +++ b/src/views/dashboard/components/PanelGroup.vue @@ -1,9 +1,9 @@ @@ -29,10 +29,18 @@ permission: '/well/list' }, { + title: '总用水量', + context: '--', + icon: 'icon-water', + color: '#36a3f7', + path: '/wellList', + permission: '/well/list' + }, + { title: '设备数量', context: '--', icon: 'icon-device', - color: '#36a3f7', + color: '#9694f7', path: '/deviceList', permission: '/device/list' }, @@ -97,10 +105,15 @@