diff --git a/src/api/model/devicemodel.js b/src/api/model/devicemodel.js new file mode 100644 index 0000000..54b3d46 --- /dev/null +++ b/src/api/model/devicemodel.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询设备模型信息列表 +export function listDevicemodel(query) { + return request({ + url: '/model/dcModelDevice/list', + method: 'get', + params: query + }) +} + +// 查询设备模型信息详细 +export function getDevicemodel(id) { + return request({ + url: '/model/dcModelDevice/' + id, + method: 'get' + }) +} + +// 新增设备模型信息 +export function addDevicemodel(data) { + return request({ + url: '/model/dcModelDevice', + method: 'post', + data: data + }) +} + +// 修改设备模型信息 +export function updateDevicemodel(data) { + return request({ + url: '/model/dcModelDevice', + method: 'put', + data: data + }) +} + +// 删除设备模型信息 +export function delDevicemodel(id) { + return request({ + url: '/model/dcModelDevice/' + id, + method: 'delete' + }) +} + +// 导出设备模型信息 +export function exportDevicemodel(query) { + return request({ + url: '/${baseUrl}/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/model/modelType.js b/src/api/model/modelType.js new file mode 100644 index 0000000..c6b9550 --- /dev/null +++ b/src/api/model/modelType.js @@ -0,0 +1,54 @@ +import request from '@/utils/request' + +// 查询设备模型类别列表 +export function listModelType(query) { + console.log("-------------"+query); + return request({ + url: '/model/dcModelType/list', + method: 'get', + params: query + }) +} + +// 查询设备模型类别详细 +export function getModelType(id) { + return request({ + url: '/model/dcModelType/' + id, + method: 'get' + }) +} + +// 新增设备模型类别 +export function addModelType(data) { + return request({ + url: '/model/dcModelType', + method: 'post', + data: data + }) +} + +// 修改设备模型类别 +export function updateModelType(data) { + return request({ + url: '/model/dcModelType', + method: 'put', + data: data + }) +} + +// 删除设备模型类别 +export function delModelType(id) { + return request({ + url: '/model/dcModelType/' + id, + method: 'delete' + }) +} + +// 导出设备模型类别 +export function exportModelType(query) { + return request({ + url: '/${baseUrl}/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/model/modelparamrela.js b/src/api/model/modelparamrela.js new file mode 100644 index 0000000..c579352 --- /dev/null +++ b/src/api/model/modelparamrela.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询设备模型参数明细列表 +export function listModelparamrela(query) { + return request({ + url: '/model/dcModelDeviceParam/list', + method: 'get', + params: query + }) +} + +// 查询设备模型参数明细详细 +export function getModelparamrela(id) { + return request({ + url: '/model/dcModelDeviceParam/' + id, + method: 'get' + }) +} + +// 新增设备模型参数明细 +export function addModelparamrela(data) { + return request({ + url: '/model/dcModelDeviceParam', + method: 'post', + data: data + }) +} + +// 修改设备模型参数明细 +export function updateModelparamrela(data) { + return request({ + url: '/model/dcModelDeviceParam', + method: 'put', + data: data + }) +} + +// 删除设备模型参数明细 +export function delModelparamrela(id) { + return request({ + url: '/model/dcModelDeviceParam/' + id, + method: 'delete' + }) +} + +// 导出设备模型参数明细 +export function exportModelparamrela(query) { + return request({ + url: '/${baseUrl}/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/assets/styles/self-defined.scss b/src/assets/styles/self-defined.scss new file mode 100644 index 0000000..351c2e3 --- /dev/null +++ b/src/assets/styles/self-defined.scss @@ -0,0 +1,22 @@ +@import './variables.module.scss'; +@import './mixin.scss'; +@import './transition.scss'; +@import './element-ui.scss'; +@import './sidebar.scss'; +@import './btn.scss'; +@import './ruoyi.scss'; + + + +.newLineCenter{ + width: 100%; + display: block; + text-align: center; + div{ + display: block; + } +} +.leftmargin100px{ + margin-left: 100px; +} + diff --git a/src/router/index.js b/src/router/index.js index f6da8b3..c7cb3d1 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -167,6 +167,12 @@ export const constantRoutes = [ } ] }, + { + path: '/devicemodel/addmodel', + component: () => import('@/views/model/devicemodel/addmodel'), + name: 'newdevicemodel', + meta: { title: '新增设备模型', icon: '' } + }, ] // 动态路由,基于用户权限动态去加载 diff --git a/src/views/model/devicemodel/addmodel.vue b/src/views/model/devicemodel/addmodel.vue new file mode 100644 index 0000000..731cf1c --- /dev/null +++ b/src/views/model/devicemodel/addmodel.vue @@ -0,0 +1,129 @@ + + + + \ No newline at end of file diff --git a/src/views/model/devicemodel/index.vue b/src/views/model/devicemodel/index.vue new file mode 100644 index 0000000..32d595f --- /dev/null +++ b/src/views/model/devicemodel/index.vue @@ -0,0 +1,300 @@ + + + diff --git a/src/views/model/modelType/index.vue b/src/views/model/modelType/index.vue new file mode 100644 index 0000000..7948c43 --- /dev/null +++ b/src/views/model/modelType/index.vue @@ -0,0 +1,269 @@ + + + + + diff --git a/src/views/model/modelparamrela/index.vue b/src/views/model/modelparamrela/index.vue new file mode 100644 index 0000000..36277d9 --- /dev/null +++ b/src/views/model/modelparamrela/index.vue @@ -0,0 +1,269 @@ + + +