diff --git a/.cursorignore b/.cursorignore
new file mode 100644
index 00000000..7793daac
--- /dev/null
+++ b/.cursorignore
@@ -0,0 +1,15 @@
+# Add directories or file patterns to ignore during indexing (e.g. foo/ or *.csv)
+node_modules
+node_modules/*
+.DS_Store
+dist
+dist-ssr
+/dist*
+pnpm-debug
+auto-*.d.ts
+.idea
+.history
+pnpm-lock.yaml
+.image
+.cursorrules
+.vscode
diff --git a/index.html b/index.html
index 8cfcbefa..3411562a 100644
--- a/index.html
+++ b/index.html
@@ -7,11 +7,11 @@
%VITE_APP_TITLE%
diff --git a/src/api/iot/device/index.ts b/src/api/iot/device/index.ts
index 2993c2df..34ecbf1b 100644
--- a/src/api/iot/device/index.ts
+++ b/src/api/iot/device/index.ts
@@ -23,7 +23,10 @@ export const DeviceApi = {
getDevicePage: async (params: any) => {
return await request.get({ url: `/iot/device/page`, params })
},
-
+// 查询物联设备
+ getDeviceList: async () => {
+ return await request.get({ url: `/iot/device/deviceList` })
+ },
// 查询物联设备详情
getDevice: async (id: number) => {
return await request.get({ url: `/iot/device/get?id=` + id })
@@ -74,4 +77,4 @@ export const DeviceApi = {
getDeviceAttribute: async (id: number) => {
return await request.get({ url: `/iot/device/device-attribute/get?id=` + id })
}
-}
\ No newline at end of file
+}
diff --git a/src/api/iot/mqttdatarecord/index.ts b/src/api/iot/mqttdatarecord/index.ts
index b1918257..88f0851b 100644
--- a/src/api/iot/mqttdatarecord/index.ts
+++ b/src/api/iot/mqttdatarecord/index.ts
@@ -14,7 +14,10 @@ export const MqttDataRecordApi = {
getMqttDataRecordPage: async (params: any) => {
return await request.get({ url: `/iot/mqtt-data-record/page`, params })
},
-
+// 查询设备数据记录分页
+ getMqttDataRecordPage2: async (params: any) => {
+ return await request.get({ url: `/iot/mqtt-data-record/page2`, params })
+ },
// 查询设备数据记录详情
getMqttDataRecord: async (id: number) => {
return await request.get({ url: `/iot/mqtt-data-record/get?id=` + id })
@@ -39,4 +42,4 @@ export const MqttDataRecordApi = {
exportMqttDataRecord: async (params) => {
return await request.download({ url: `/iot/mqtt-data-record/export-excel`, params })
}
-}
\ No newline at end of file
+}
diff --git a/src/api/iot/mqttrecord/index.ts b/src/api/iot/mqttrecord/index.ts
index f29bc554..e027c2cb 100644
--- a/src/api/iot/mqttrecord/index.ts
+++ b/src/api/iot/mqttrecord/index.ts
@@ -26,7 +26,10 @@ export const MqttRecordApi = {
getMqttRecord: async (id: number) => {
return await request.get({ url: `/iot/mqtt-record/get?id=` + id })
},
-
+// 查询设备属性
+ getDeviceAttr: async (code: any) => {
+ return await request.get({ url: `/iot/mqtt-record/getDeviceAttr?code=` + code })
+ },
// 新增数采记录
createMqttRecord: async (data: MqttRecordVO) => {
return await request.post({ url: `/iot/mqtt-record/create`, data })
@@ -46,4 +49,4 @@ export const MqttRecordApi = {
exportMqttRecord: async (params) => {
return await request.download({ url: `/iot/mqtt-record/export-excel`, params })
},
-}
\ No newline at end of file
+}
diff --git a/src/layout/components/Footer/src/Footer.vue b/src/layout/components/Footer/src/Footer.vue
index 62302fca..3d6186c5 100644
--- a/src/layout/components/Footer/src/Footer.vue
+++ b/src/layout/components/Footer/src/Footer.vue
@@ -11,6 +11,7 @@ const prefixCls = getPrefixCls('footer')
const appStore = useAppStore()
+const docsUrl = computed(() => appStore.getDocsUrl)
const title = computed(() => appStore.getTitle)
@@ -19,6 +20,7 @@ const title = computed(() => appStore.getTitle)
:class="prefixCls"
class="h-[var(--app-footer-height)] bg-[var(--app-content-bg-color)] text-center leading-[var(--app-footer-height)] text-[var(--el-text-color-placeholder)] dark:bg-[var(--el-bg-color)] overflow-hidden"
>
- Copyright ©2022-{{ title }}
+ Copyright ©2024-BESURE-{{ title }}
+ 操作手册
diff --git a/src/views/iot/mqttdata/index.vue b/src/views/iot/mqttdata/index.vue
new file mode 100644
index 00000000..c9b51830
--- /dev/null
+++ b/src/views/iot/mqttdata/index.vue
@@ -0,0 +1,245 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+ 新增
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 删除
+
+
+
+
+
+
+
+
+
+
+