diff --git a/src/api/ems/base/baseMonitorWorkUnit.js b/src/api/ems/base/baseMonitorWorkUnit.js new file mode 100644 index 0000000..555636d --- /dev/null +++ b/src/api/ems/base/baseMonitorWorkUnit.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询统计计量信息列表 +export function listBaseMonitorWorkUnit(query) { + return request({ + url: '/ems/base/baseMonitorWorkUnit/list', + method: 'get', + params: query + }) +} + +// 查询统计计量信息详细 +export function getBaseMonitorWorkUnit(objId) { + return request({ + url: '/ems/base/baseMonitorWorkUnit/' + objId, + method: 'get' + }) +} + +// 新增统计计量信息 +export function addBaseMonitorWorkUnit(data) { + return request({ + url: '/ems/base/baseMonitorWorkUnit', + method: 'post', + data: data + }) +} + +// 修改统计计量信息 +export function updateBaseMonitorWorkUnit(data) { + return request({ + url: '/ems/base/baseMonitorWorkUnit', + method: 'put', + data: data + }) +} + +// 删除统计计量信息 +export function delBaseMonitorWorkUnit(objId) { + return request({ + url: '/ems/base/baseMonitorWorkUnit/' + objId, + method: 'delete' + }) +} diff --git a/src/api/ems/base/baseWorkUnit.js b/src/api/ems/base/baseWorkUnit.js new file mode 100644 index 0000000..85cf390 --- /dev/null +++ b/src/api/ems/base/baseWorkUnit.js @@ -0,0 +1,52 @@ +import request from '@/utils/request' + +// 查询统计单元信息列表 +export function listBaseWorkUnit(query) { + return request({ + url: '/ems/base/baseWorkUnit/list', + method: 'get', + params: query + }) +} + +// 查询统计单元信息详细 +export function getBaseWorkUnit(objId) { + return request({ + url: '/ems/base/baseWorkUnit/' + objId, + method: 'get' + }) +} + +// 新增统计单元信息 +export function addBaseWorkUnit(data) { + return request({ + url: '/ems/base/baseWorkUnit', + method: 'post', + data: data + }) +} + +// 修改统计单元信息 +export function updateBaseWorkUnit(data) { + return request({ + url: '/ems/base/baseWorkUnit', + method: 'put', + data: data + }) +} + +// 删除统计单元信息 +export function delBaseWorkUnit(objId) { + return request({ + url: '/ems/base/baseWorkUnit/' + objId, + method: 'delete' + }) +} + +//查询统计单元信息信息下拉结构 +export function getWorkUnitTrees(){ + return request({ + url: '/ems/base/baseWorkUnit/workUnitTree', + method: 'post' + }) +} diff --git a/src/views/ems/base/baseMonitorInfo/index.vue b/src/views/ems/base/baseMonitorInfo/index.vue index 21e316f..816579d 100644 --- a/src/views/ems/base/baseMonitorInfo/index.vue +++ b/src/views/ems/base/baseMonitorInfo/index.vue @@ -1,9 +1,9 @@