From 09510a24003ef922b2de526492aa9d5c06e3689f Mon Sep 17 00:00:00 2001 From: changDongFang <2628162102@qq.com> Date: Thu, 19 Jun 2025 17:06:34 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20ai=E8=81=8A=E5=A4=A9=E5=AE=8C=E6=88=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- env/.env.development | 13 ++- env/.env.production | 11 +- package.json | 1 + pnpm-lock.yaml | 21 ++++ src/pages/index/index.vue | 186 +++++++++++++++++---------------- src/pages/index/utils/api.js | 8 +- src/pages/index/utils/data.js | 19 +++- src/pages/index/utils/index.ts | 6 +- 8 files changed, 166 insertions(+), 99 deletions(-) diff --git a/env/.env.development b/env/.env.development index 64ddf7c..c004352 100644 --- a/env/.env.development +++ b/env/.env.development @@ -5,7 +5,18 @@ VITE_DELETE_CONSOLE = false # 是否开启sourcemap VITE_SHOW_SOURCEMAP = true +# 开发环境 # VITE_SERVER_BASEURL = 'http://114.218.158.24:9020' -VITE_SERVER_BASEURL = 'https://erpapi.fontree.cn' +# VITE_SERVER_BASEURL = 'http://192.168.88.80:9040/api' +# 正式环境 作为测试使用 +# VITE_SERVER_BASEURL = 'https://warehouse.szjixun.cn/oa_backend' + +#体制外 +# VITE_SERVER_BASEURL = 'https://oa-a.szjixun.cn/api' + +# 体制内 +VITE_SERVER_BASEURL = 'https://oa-b.szjixun.cn/api' +# VITE_SERVER_BASEURL = 'https://oa-b.szjixun.cn/api' +# VITE_SERVER_BASEURL = 'https://erpapi.fontree.cn' # VITE_SERVER_BASEURL = 'https://erptest.fontree.cn:9020' \ No newline at end of file diff --git a/env/.env.production b/env/.env.production index fe4a86a..d7b0f56 100644 --- a/env/.env.production +++ b/env/.env.production @@ -5,6 +5,15 @@ VITE_DELETE_CONSOLE = true # 是否开启sourcemap VITE_SHOW_SOURCEMAP = false -VITE_SERVER_BASEURL = 'https://erpapi.fontree.cn' # 体制外 OA +# VITE_SERVER_BASEURL = 'https://erpapi.fontree.cn' # 体制外 OA +# 正式环境 作为测试使用 +# VITE_SERVER_BASEURL = 'https://warehouse.szjixun.cn/oa_backend' +# VITE_SERVER_BASEURL = 'https://oa-a.szjixun.cn/api' +#体制外 +# VITE_SERVER_BASEURL = 'https://oa-a.szjixun.cn/api' + +# 体制内 +VITE_SERVER_BASEURL = 'https://oa-b.szjixun.cn/api' + diff --git a/package.json b/package.json index 95f057d..ee9507c 100644 --- a/package.json +++ b/package.json @@ -107,6 +107,7 @@ "pinia": "2.0.36", "pinia-plugin-persistedstate": "3.2.1", "qs": "6.5.3", + "vconsole": "^3.15.1", "vue": "3.4.21", "wot-design-uni": "^1.4.0", "z-paging": "^2.8.4" diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 63c1e99..a436fcf 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -70,6 +70,9 @@ dependencies: qs: specifier: 6.5.3 version: 6.5.3 + vconsole: + specifier: ^3.15.1 + version: 3.15.1 vue: specifier: 3.4.21 version: 3.4.21(typescript@5.8.3) @@ -5555,6 +5558,11 @@ packages: engines: {node: '>= 0.6'} dev: true + /copy-text-to-clipboard@3.2.0: + resolution: {integrity: sha512-RnJFp1XR/LOBDckxTib5Qjr/PMfkatD0MUCQgdpqS8MdKiNUzBjAQBEN6oUy+jW7LI93BBG3DtMB2KOOKpGs2Q==} + engines: {node: '>=12'} + dev: false + /core-js-compat@3.42.0: resolution: {integrity: sha512-bQasjMfyDGyaeWKBIu33lHh9qlSR0MFE/Nmc6nMjf/iU9b3rSMdAYz1Baxrv4lPdGUsTqZudHA4jIGSJy0SWZQ==} dependencies: @@ -8325,6 +8333,10 @@ packages: resolution: {integrity: sha512-ckmWDJjphvd/FvZawgygcUeQCxzvohjFO5RxTjj4eq8kw359gFF3E1brjfI+viLMxss5JrHTDRHZvu2/tuy0Qg==} dev: true + /mutation-observer@1.0.3: + resolution: {integrity: sha512-M/O/4rF2h776hV7qGMZUH3utZLO/jK7p8rnNgGkjKUw8zCGjRQPxB8z6+5l8+VjRUQ3dNYu4vjqXYLr+U8ZVNA==} + dev: false + /nanoid@3.3.11: resolution: {integrity: sha512-N8SpfPUnUp1bK+PMYW8qSWdl9U+wwNWI4QKxOYDy9JAro3WMX7p2OeVRF9v+347pnakNevPmiHhNmZ2HbFA76w==} engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1} @@ -10495,6 +10507,15 @@ packages: engines: {node: '>= 0.8'} dev: true + /vconsole@3.15.1: + resolution: {integrity: sha512-KH8XLdrq9T5YHJO/ixrjivHfmF2PC2CdVoK6RWZB4yftMykYIaXY1mxZYAic70vADM54kpMQF+dYmvl5NRNy1g==} + dependencies: + '@babel/runtime': 7.27.1 + copy-text-to-clipboard: 3.2.0 + core-js: 3.42.0 + mutation-observer: 1.0.3 + dev: false + /vite-plugin-restart@0.4.2(vite@5.2.8): resolution: {integrity: sha512-9aWN2ScJ8hbT7aC8SDeZnsbWapnslz1vhNq6Vgf2GU9WdN4NExlrWhtnu7pmtOUG3Guj8y6lPcUZ+ls7SVP33w==} peerDependencies: diff --git a/src/pages/index/index.vue b/src/pages/index/index.vue index 6167733..100a256 100644 --- a/src/pages/index/index.vue +++ b/src/pages/index/index.vue @@ -11,7 +11,7 @@