From 4581b8b996797432f97cb021b35b194e99980dd9 Mon Sep 17 00:00:00 2001 From: ljlong_2630 Date: Sat, 12 Aug 2023 15:14:31 +0800 Subject: [PATCH] =?UTF-8?q?=E8=AE=BE=E5=A4=87=E4=BF=A1=E6=81=AF=E5=92=8C?= =?UTF-8?q?=E8=AE=BE=E5=A4=87=E5=8F=82=E6=95=B0=E4=B8=B4=E6=97=B6=E7=95=8C?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/model/device.js | 53 ++ src/api/model/params.js | 53 ++ src/views/flowable/params/index.vue | 485 ++++++++++++++++++ src/views/model/device/index.vue | 618 +++++++++++++++++++++++ src/views/model/devicemodel/addmodel.vue | 2 - src/views/model/devicemodel/index.vue | 26 +- src/views/model/params/index.vue | 518 +++++++++++++++++++ 7 files changed, 1735 insertions(+), 20 deletions(-) create mode 100644 src/api/model/device.js create mode 100644 src/api/model/params.js create mode 100644 src/views/flowable/params/index.vue create mode 100644 src/views/model/device/index.vue create mode 100644 src/views/model/params/index.vue diff --git a/src/api/model/device.js b/src/api/model/device.js new file mode 100644 index 0000000..3e17386 --- /dev/null +++ b/src/api/model/device.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询设备信息列表 +export function listDevice(query) { + return request({ + url: '/model/dcBaseDeviceinfo/list', + method: 'get', + params: query + }) +} + +// 查询设备信息详细 +export function getDevice(id) { + return request({ + url: '/model/dcBaseDeviceinfo/' + id, + method: 'get' + }) +} + +// 新增设备信息 +export function addDevice(data) { + return request({ + url: '/model/dcBaseDeviceinfo', + method: 'post', + data: data + }) +} + +// 修改设备信息 +export function updateDevice(data) { + return request({ + url: '/model/dcBaseDeviceinfo', + method: 'put', + data: data + }) +} + +// 删除设备信息 +export function delDevice(id) { + return request({ + url: '/model/dcBaseDeviceinfo/' + id, + method: 'delete' + }) +} + +// 导出设备信息 +export function exportDevice(query) { + return request({ + url: '/${baseUrl}/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/api/model/params.js b/src/api/model/params.js new file mode 100644 index 0000000..4a92438 --- /dev/null +++ b/src/api/model/params.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 查询设备参数明细列表 +export function listParams(query) { + return request({ + url: '/model/dcBaseDeviceParam/list', + method: 'get', + params: query + }) +} + +// 查询设备参数明细详细 +export function getParams(id) { + return request({ + url: '/model/dcBaseDeviceParam/' + id, + method: 'get' + }) +} + +// 新增设备参数明细 +export function addParams(data) { + return request({ + url: '/model/dcBaseDeviceParam', + method: 'post', + data: data + }) +} + +// 修改设备参数明细 +export function updateParams(data) { + return request({ + url: '/model/dcBaseDeviceParam', + method: 'put', + data: data + }) +} + +// 删除设备参数明细 +export function delParams(id) { + return request({ + url: '/model/dcBaseDeviceParam/' + id, + method: 'delete' + }) +} + +// 导出设备参数明细 +export function exportParams(query) { + return request({ + url: '/${baseUrl}/export', + method: 'get', + params: query + }) +} \ No newline at end of file diff --git a/src/views/flowable/params/index.vue b/src/views/flowable/params/index.vue new file mode 100644 index 0000000..951424f --- /dev/null +++ b/src/views/flowable/params/index.vue @@ -0,0 +1,485 @@ + + + diff --git a/src/views/model/device/index.vue b/src/views/model/device/index.vue new file mode 100644 index 0000000..5f7ed4a --- /dev/null +++ b/src/views/model/device/index.vue @@ -0,0 +1,618 @@ + + + diff --git a/src/views/model/devicemodel/addmodel.vue b/src/views/model/devicemodel/addmodel.vue index bf5ee2c..5451c37 100644 --- a/src/views/model/devicemodel/addmodel.vue +++ b/src/views/model/devicemodel/addmodel.vue @@ -186,8 +186,6 @@ const updateModelSubmit = ref([]); const operateModelIds = ref([]); const updateModelIds = ref([]); const deleteModelIds = ref([]); -console.log(router); -console.log(proxy); const tempPid = router.currentRoute._value.query.pid; const data = reactive({ form: { diff --git a/src/views/model/devicemodel/index.vue b/src/views/model/devicemodel/index.vue index e71e073..45e4667 100644 --- a/src/views/model/devicemodel/index.vue +++ b/src/views/model/devicemodel/index.vue @@ -38,16 +38,6 @@ @keyup.enter="handleQuery" /> - - - - - - - -