From b989fca1dff5f648e328787986dfbc27f8656866 Mon Sep 17 00:00:00 2001
From: tx <2622874537@qq.com>
Date: Fri, 10 Jan 2025 17:51:42 +0800
Subject: [PATCH] =?UTF-8?q?=E8=AF=A6=E6=83=85=E4=BF=AE=E6=94=B9?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.development | 2 +-
src/api/system/device.js | 9 +
src/components/Charts/LineChart.vue | 198 +++++++
src/components/Charts/MiniLine.vue | 207 ++++---
src/views/index.vue | 639 ++++++++++++++++++++--
src/views/system/device/device_detail.vue | 23 +-
src/views/system/room/index.vue | 6 +-
src/views/system/room/room_detail.vue | 237 ++++----
src/views/system/store/index.vue | 6 +-
src/views/system/store/store_detail.vue | 85 ++-
src/views/user/user/detail.vue | 2 +-
11 files changed, 1118 insertions(+), 296 deletions(-)
create mode 100644 src/components/Charts/LineChart.vue
diff --git a/.env.development b/.env.development
index 6e0da17..5f7a26e 100644
--- a/.env.development
+++ b/.env.development
@@ -6,7 +6,7 @@ ENV = 'development'
# 共享空间/开发环境
# VUE_APP_BASE_API = 'https://testcha.chuangtewl.com/prod-api'
-VUE_APP_BASE_API = 'http://192.168.2.43:8089'
+VUE_APP_BASE_API = 'http://192.168.2.63:8089'
# 路由懒加载
VUE_CLI_BABEL_TRANSPILE_MODULES = true
diff --git a/src/api/system/device.js b/src/api/system/device.js
index aa8a103..f326185 100644
--- a/src/api/system/device.js
+++ b/src/api/system/device.js
@@ -154,4 +154,13 @@ export function placementDevice(data){
method: 'post',
data: data
})
+}
+
+
+// 设备绑定商户
+export function bindMch(deviceId,mchId){
+ return request({
+ url: '/system/device/'+deviceId+'/bindMch?mchId='+mchId,
+ method: 'put'
+ })
}
\ No newline at end of file
diff --git a/src/components/Charts/LineChart.vue b/src/components/Charts/LineChart.vue
new file mode 100644
index 0000000..0085e48
--- /dev/null
+++ b/src/components/Charts/LineChart.vue
@@ -0,0 +1,198 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/src/components/Charts/MiniLine.vue b/src/components/Charts/MiniLine.vue
index d3c07b2..a833413 100644
--- a/src/components/Charts/MiniLine.vue
+++ b/src/components/Charts/MiniLine.vue
@@ -1,81 +1,144 @@
-
-
-
-
-
-
\ No newline at end of file
+}
+
\ No newline at end of file
diff --git a/src/views/index.vue b/src/views/index.vue
index b3bdbbe..e1b20c6 100644
--- a/src/views/index.vue
+++ b/src/views/index.vue
@@ -1,95 +1,521 @@