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" /> - - - - - - - -