diff --git a/src/api/system/area.js b/src/api/system/area.js index a6dc97f..52a8466 100644 --- a/src/api/system/area.js +++ b/src/api/system/area.js @@ -35,7 +35,7 @@ export function getArealist() { return request({ url: '/index/getAreaList', method: 'get', - + }) } // 获取首页统计 @@ -43,7 +43,7 @@ export function getAdminStatistics() { return request({ url: '/index/admim/statistics', method: 'get', - + }) } // 修改运营区 @@ -70,3 +70,19 @@ export function optionselect() { method: 'get' }) } + +// 根据运营商id获取运营商列表 +export function selectAreaListByDeptId(deptId) { + return request({ + url: '/system/area/selectAreaListByDeptId/'+deptId, + method: 'get' + }) +} + +// 根据运营区id获取运营商 +export function selectDeptByAreaId(areaId) { + return request({ + url: '/system/area/selectDeptByAreaId/'+areaId, + method: 'get' + }) +} diff --git a/src/api/system/hardwareVersion.js b/src/api/system/hardwareVersion.js new file mode 100644 index 0000000..1741ae0 --- /dev/null +++ b/src/api/system/hardwareVersion.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询硬件版本列表 +export function listHardwareVersion(query) { + return request({ + url: '/system/hardwareVersion/list', + method: 'get', + params: query + }) +} + +// 查询硬件版本详细 +export function getHardwareVersion(id) { + return request({ + url: '/system/hardwareVersion/' + id, + method: 'get' + }) +} + +// 新增硬件版本 +export function addHardwareVersion(data) { + return request({ + url: '/system/hardwareVersion', + method: 'post', + data: data + }) +} + +// 修改硬件版本 +export function updateHardwareVersion(data) { + return request({ + url: '/system/hardwareVersion', + method: 'put', + data: data + }) +} + +// 删除硬件版本 +export function delHardwareVersion(id) { + return request({ + url: '/system/hardwareVersion/' + id, + method: 'delete' + }) +} diff --git a/src/api/system/softwareVersion.js b/src/api/system/softwareVersion.js new file mode 100644 index 0000000..073d349 --- /dev/null +++ b/src/api/system/softwareVersion.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询软件版本列表 +export function listSoftwareVersion(query) { + return request({ + url: '/system/softwareVersion/list', + method: 'get', + params: query + }) +} + +// 查询软件版本详细 +export function getSoftwareVersion(id) { + return request({ + url: '/system/softwareVersion/' + id, + method: 'get' + }) +} + +// 新增软件版本 +export function addSoftwareVersion(data) { + return request({ + url: '/system/softwareVersion', + method: 'post', + data: data + }) +} + +// 修改软件版本 +export function updateSoftwareVersion(data) { + return request({ + url: '/system/softwareVersion', + method: 'put', + data: data + }) +} + +// 删除软件版本 +export function delSoftwareVersion(id) { + return request({ + url: '/system/softwareVersion/' + id, + method: 'delete' + }) +} diff --git a/src/assets/icons/svg/hardwareVersion.svg b/src/assets/icons/svg/hardwareVersion.svg new file mode 100644 index 0000000..1859222 --- /dev/null +++ b/src/assets/icons/svg/hardwareVersion.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/assets/icons/svg/softwareVersion.svg b/src/assets/icons/svg/softwareVersion.svg new file mode 100644 index 0000000..f35b9de --- /dev/null +++ b/src/assets/icons/svg/softwareVersion.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/views/index.vue b/src/views/index.vue index bf2dd06..2dec907 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -1,5 +1,5 @@