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] =?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: './' //到根目录下 + } }) } }