From ea8c891f8b82ee7d8df511715750186fd93f9869 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Sun, 6 Aug 2023 11:53:32 +0800 Subject: [PATCH] =?UTF-8?q?=E2=80=98=E9=83=A8=E5=88=86=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=BC=80=E5=8F=91=E4=BB=A3=E7=A0=81=E2=80=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/devicemodel.js | 53 ++++ src/api/model/modelType.js | 54 ++++ src/api/model/modelparamrela.js | 53 ++++ src/assets/styles/self-defined.scss | 22 ++ src/router/index.js | 6 + src/views/model/devicemodel/addmodel.vue | 129 ++++++++++ src/views/model/devicemodel/index.vue | 300 +++++++++++++++++++++++ src/views/model/modelType/index.vue | 269 ++++++++++++++++++++ src/views/model/modelparamrela/index.vue | 269 ++++++++++++++++++++ 9 files changed, 1155 insertions(+) create mode 100644 src/api/model/devicemodel.js create mode 100644 src/api/model/modelType.js create mode 100644 src/api/model/modelparamrela.js create mode 100644 src/assets/styles/self-defined.scss create mode 100644 src/views/model/devicemodel/addmodel.vue create mode 100644 src/views/model/devicemodel/index.vue create mode 100644 src/views/model/modelType/index.vue create mode 100644 src/views/model/modelparamrela/index.vue 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 @@ + + +