diff --git a/src/api/system/device.js b/src/api/system/device.js new file mode 100644 index 0000000..2f8c9b4 --- /dev/null +++ b/src/api/system/device.js @@ -0,0 +1,45 @@ +import request from '@/utils/request' + +// 查询设备列表 +export function listDevice(query) { + return request({ + url: '/system/device/list', + method: 'get', + params: query + }) +} + + +// 查询设备详细 +export function getDevice(deviceId) { + return request({ + url: '/system/device/' + deviceId, + method: 'get' + }) + } + +// 新增设备 +export function addDevice(data) { + return request({ + url: '/system/device', + method: 'post', + data: data + }) +} + +// 修改设备 +export function updateDevice(data) { + return request({ + url: '/system/device', + method: 'post', + data: data + }) +} + +// 删除设备 +export function delDevice(deviceId) { + return request({ + url: '/system/device/' + deviceId, + method: 'delete' + }) +} \ No newline at end of file diff --git a/src/views/device-manage/index.vue b/src/views/device-manage/index.vue index 1ecd3f9..27dbbae 100644 --- a/src/views/device-manage/index.vue +++ b/src/views/device-manage/index.vue @@ -1,15 +1,451 @@ - + + + + + + + + 组织一 + + + 选项1 + 选项2 + 选项3 + + + + + + 组织二 + + + 选项1 + 选项2 + 选项3 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 增加 + 修改 + 删除 + 刷新 + 查看 + 导出 + 设备批量导入 + 批量域名设置 + 配置工单处理人 + 运营状态变更 + 查询 + 重置 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/vue.config.js b/vue.config.js index fecfd33..c9a9225 100644 --- a/vue.config.js +++ b/vue.config.js @@ -34,7 +34,8 @@ module.exports = { proxy: { // detail: https://cli.vuejs.org/config/#devserver-proxy [process.env.VUE_APP_BASE_API]: { - target: `http://192.168.0.125:8080`, + // target: `http://192.168.0.125:8080`, + target: `http://121.37.250.170:8080`, changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''