From e3c8ea901d2dc2b8cb57e8ae2661c760bf703acd Mon Sep 17 00:00:00 2001 From: lonewolfyx <877085893@qq.com> Date: Mon, 23 Mar 2026 10:08:20 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=A4=A7=E5=B1=8F=E5=90=8C=E5=BD=95?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E9=A1=B6=E9=83=A8=E6=95=B0=E6=8D=AE=E5=AF=B9?= =?UTF-8?q?=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/inspector.js | 8 ++++++++ src/views/inspector/index.vue | 25 ++++++++++++++++++++----- vue.config.js | 2 +- 3 files changed, 29 insertions(+), 6 deletions(-) create mode 100644 src/api/inspector.js diff --git a/src/api/inspector.js b/src/api/inspector.js new file mode 100644 index 0000000..2da309d --- /dev/null +++ b/src/api/inspector.js @@ -0,0 +1,8 @@ +import request from "@/utils/request"; + +export const getTongJiData = () => { + return request({ + method: 'post', + url: '/caserecord/countByPeriod', + }) +} diff --git a/src/views/inspector/index.vue b/src/views/inspector/index.vue index 2ee906c..7ceee6f 100644 --- a/src/views/inspector/index.vue +++ b/src/views/inspector/index.vue @@ -7,22 +7,22 @@
- 6090.99 + {{ tongji.totalCount }}
- 6090.99 + {{ tongji.yearCount }}
- 6090.99 + {{tongji.monthCount}}
- 6090.99 + {{ tongji.weekCount }}
@@ -55,10 +55,25 @@ @@ -105,7 +120,7 @@ export default { gap: 16px; } -.shu{ +.shu { position: relative; color: rgba(14, 253, 255, 1); font-size: 20px; diff --git a/vue.config.js b/vue.config.js index af78aa3..634a310 100644 --- a/vue.config.js +++ b/vue.config.js @@ -46,7 +46,7 @@ module.exports = { // target: `http://120.79.202.7:443`, // target: `http://100.100.10.216:8099`, // target: 'http://106.15.139.36:18090', - // target: 'http://127.0.0.1:18098', + target: 'http://127.0.0.1:18098', changeOrigin: true, pathRewrite: { ['^' + process.env.VUE_APP_BASE_API]: ''