From 9f12357390ddad7534f85a0b549f317c11c202ae Mon Sep 17 00:00:00 2001
From: lonewolfyx <877085893@qq.com>
Date: Mon, 2 Feb 2026 11:08:44 +0800
Subject: [PATCH 1/2] =?UTF-8?q?feat:=20add=20=E7=94=9F=E5=91=BD=E4=BD=93?=
=?UTF-8?q?=E5=BE=81=E7=9B=91=E6=B5=8B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
package.json | 2 +
src/api/lifte.js | 9 +
src/views/life/physical_data.vue | 298 +++++++++++++++++++++++++++++++
vue.config.js | 82 ++++-----
4 files changed, 351 insertions(+), 40 deletions(-)
create mode 100644 src/api/lifte.js
create mode 100644 src/views/life/physical_data.vue
diff --git a/package.json b/package.json
index ef20f7e..fbc0516 100644
--- a/package.json
+++ b/package.json
@@ -41,6 +41,7 @@
"axios": "0.24.0",
"clipboard": "2.0.8",
"core-js": "3.25.3",
+ "dayjs": "^1.11.19",
"echarts": "5.4.0",
"element-ui": "2.15.13",
"file-saver": "2.0.5",
@@ -62,6 +63,7 @@
"vue": "2.6.12",
"vue-count-to": "1.0.13",
"vue-cropper": "0.5.5",
+ "vue-echarts": "^8.0.1",
"vue-meta": "2.4.0",
"vue-router": "3.4.9",
"vue-video-player": "^5.0.2",
diff --git a/src/api/lifte.js b/src/api/lifte.js
new file mode 100644
index 0000000..0d54169
--- /dev/null
+++ b/src/api/lifte.js
@@ -0,0 +1,9 @@
+// 获取生命体征
+import request from "@/utils/request";
+
+export const getTakeVitalSigns = () => {
+ return request({
+ method: 'post',
+ url: '/system/vitalsigns/getVitalsign'
+ })
+}
diff --git a/src/views/life/physical_data.vue b/src/views/life/physical_data.vue
new file mode 100644
index 0000000..ba88189
--- /dev/null
+++ b/src/views/life/physical_data.vue
@@ -0,0 +1,298 @@
+
+
+
+
+
+
+
diff --git a/vue.config.js b/vue.config.js
index 86f5399..ab4e3d8 100644
--- a/vue.config.js
+++ b/vue.config.js
@@ -39,12 +39,14 @@ module.exports = {
// detail: https://cli.vuejs.org/config/#devserver-proxy
[process.env.VUE_APP_BASE_API]: {
// target: `http://192.168.0.180:8099`,
- target: `http://192.168.0.151:8099`, //服务器
+ // target: `http://192.168.0.151:8099`, //服务器
// target: `http://192.168.3.10:8099`, //耗子
// target: `http://106.15.139.36:8099`,
-
+
// target: `http://120.79.202.7:443`,
- // target: `http://100.100.10.216:8099`,
+ // target: `http://100.100.10.216:8099`,
+ // target: 'http://106.15.139.36:18090',
+ target: 'http://127.0.0.1:18098',
changeOrigin: true,
pathRewrite: {
['^' + process.env.VUE_APP_BASE_API]: ''
@@ -56,7 +58,7 @@ module.exports = {
css: {
loaderOptions: {
sass: {
- sassOptions: { outputStyle: "expanded" }
+ sassOptions: {outputStyle: "expanded"}
}
}
},
@@ -125,44 +127,44 @@ module.exports = {
.end()
config.when(process.env.NODE_ENV !== 'development', config => {
- config
- .plugin('ScriptExtHtmlWebpackPlugin')
- .after('html')
- .use('script-ext-html-webpack-plugin', [{
- // `runtime` must same as runtimeChunk name. default is `runtime`
- inline: /runtime\..*\.js$/
- }])
- .end()
+ config
+ .plugin('ScriptExtHtmlWebpackPlugin')
+ .after('html')
+ .use('script-ext-html-webpack-plugin', [{
+ // `runtime` must same as runtimeChunk name. default is `runtime`
+ inline: /runtime\..*\.js$/
+ }])
+ .end()
- config.optimization.splitChunks({
- chunks: 'all',
- cacheGroups: {
- libs: {
- name: 'chunk-libs',
- test: /[\\/]node_modules[\\/]/,
- priority: 10,
- chunks: 'initial' // only package third parties that are initially dependent
- },
- elementUI: {
- name: 'chunk-elementUI', // split elementUI into a single package
- test: /[\\/]node_modules[\\/]_?element-ui(.*)/, // in order to adapt to cnpm
- priority: 20 // the weight needs to be larger than libs and app or it will be packaged into libs or app
- },
- commons: {
- name: 'chunk-commons',
- test: resolve('src/components'), // can customize your rules
- minChunks: 3, // minimum common number
- priority: 5,
- reuseExistingChunk: true
- }
- }
- })
-
- config.optimization.runtimeChunk('single'),
- {
- from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
- to: './' //到根目录下
+ config.optimization.splitChunks({
+ chunks: 'all',
+ cacheGroups: {
+ libs: {
+ name: 'chunk-libs',
+ test: /[\\/]node_modules[\\/]/,
+ priority: 10,
+ chunks: 'initial' // only package third parties that are initially dependent
+ },
+ elementUI: {
+ name: 'chunk-elementUI', // split elementUI into a single package
+ test: /[\\/]node_modules[\\/]_?element-ui(.*)/, // in order to adapt to cnpm
+ priority: 20 // the weight needs to be larger than libs and app or it will be packaged into libs or app
+ },
+ commons: {
+ name: 'chunk-commons',
+ test: resolve('src/components'), // can customize your rules
+ minChunks: 3, // minimum common number
+ priority: 5,
+ reuseExistingChunk: true
}
+ }
+ })
+
+ config.optimization.runtimeChunk('single'),
+ {
+ from: path.resolve(__dirname, './public/robots.txt'), //防爬虫文件
+ to: './' //到根目录下
+ }
})
}
}
From 64d1d5123af609787b860f15a1e3046d0a385711 Mon Sep 17 00:00:00 2001
From: lonewolfyx <877085893@qq.com>
Date: Wed, 4 Feb 2026 16:06:32 +0800
Subject: [PATCH 2/2] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E7=94=9F?=
=?UTF-8?q?=E5=91=BD=E4=BD=93=E5=BE=81=E3=80=81=E7=94=9F=E5=91=BD=E4=BD=93?=
=?UTF-8?q?=E5=BE=81=E5=8E=86=E5=8F=B2=E6=9F=A5=E8=AF=A2?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/life.js | 41 ++++
src/api/lifte.js | 9 -
src/layout/components/Sidebar/index.vue | 1 +
src/views/life/lishichaxun/index.vue | 189 ++++++++++++++++++
src/views/life/tizhenchaxun.vue | 11 +
.../index.vue} | 166 +++------------
6 files changed, 269 insertions(+), 148 deletions(-)
create mode 100644 src/api/life.js
delete mode 100644 src/api/lifte.js
create mode 100644 src/views/life/lishichaxun/index.vue
create mode 100644 src/views/life/tizhenchaxun.vue
rename src/views/life/{physical_data.vue => tizhenchaxun/index.vue} (50%)
diff --git a/src/api/life.js b/src/api/life.js
new file mode 100644
index 0000000..5669edb
--- /dev/null
+++ b/src/api/life.js
@@ -0,0 +1,41 @@
+// 获取生命体征
+import request from "@/utils/request";
+
+export const getTakeVitalSigns = () => {
+ return request({
+ method: 'post',
+ url: '/system/vitalsigns/getVitalsign'
+ })
+}
+
+// 获取所有房间
+export const getLifeRooms = () => {
+ return request({
+ method: 'post',
+ url: '/system/vitalsigns/equipments'
+ })
+}
+
+// 根据指定房间获取数据
+export const getLifeRealTime = (roomId) => {
+ return request({
+ method: 'post',
+ url: '/system/vitalsigns/latestByEcode',
+ params: {
+ ecode: roomId
+ }
+ })
+}
+
+// 根据指定房间、时间获取数据
+export const getLifeHistory = (roomId, startTime, endTime) => {
+ return request({
+ method: 'post',
+ url: '/system/vitalsigns/byEcodeBetweenTime',
+ params: {
+ ecode: roomId,
+ startTime: startTime,
+ endTime: endTime
+ }
+ })
+}
diff --git a/src/api/lifte.js b/src/api/lifte.js
deleted file mode 100644
index 0d54169..0000000
--- a/src/api/lifte.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// 获取生命体征
-import request from "@/utils/request";
-
-export const getTakeVitalSigns = () => {
- return request({
- method: 'post',
- url: '/system/vitalsigns/getVitalsign'
- })
-}
diff --git a/src/layout/components/Sidebar/index.vue b/src/layout/components/Sidebar/index.vue
index 51d0839..9cb470d 100644
--- a/src/layout/components/Sidebar/index.vue
+++ b/src/layout/components/Sidebar/index.vue
@@ -1,6 +1,7 @@
+
{{sidebarRouters}}
+
+
+ 默认
+
+
+
+
请先选择时间,然后在选择房间后,点击图表查看数据
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/src/views/life/tizhenchaxun.vue b/src/views/life/tizhenchaxun.vue
new file mode 100644
index 0000000..dc18df2
--- /dev/null
+++ b/src/views/life/tizhenchaxun.vue
@@ -0,0 +1,11 @@
+
+
+
+
+
+
+
diff --git a/src/views/life/physical_data.vue b/src/views/life/tizhenchaxun/index.vue
similarity index 50%
rename from src/views/life/physical_data.vue
rename to src/views/life/tizhenchaxun/index.vue
index ba88189..e0d4201 100644
--- a/src/views/life/physical_data.vue
+++ b/src/views/life/tizhenchaxun/index.vue
@@ -13,11 +13,11 @@