From 53854c519f6cc8a84dedf7fb283c610e4a13622c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=A6=8F=E8=B4=A2?= <1471584931@qq.com> Date: Fri, 24 Oct 2025 08:30:42 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=95=B0=E6=8D=AE=E6=97=A5?= =?UTF-8?q?=E5=BF=97=E5=85=A8=E5=B1=80=E7=BB=84=E4=BB=B6=EF=BC=8C=E5=B9=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E8=87=AA=E5=8A=A8=E4=BB=A3=E7=A0=81=E7=94=9F?= =?UTF-8?q?=E6=88=90=E6=A8=A1=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 2 +- Dockerfile | 6 ++- src/api/mdm/Bank/index.ts | 15 ------- src/components/Page/index.ts | 2 +- src/components/pcitc/index.ts | 5 +++ .../pcitc/src}/DataLog.vue | 39 +++++++++++++------ src/main.ts | 3 +- src/utils/helper/generatorHelper.ts | 33 ++++++---------- src/views/mdm/Bank/index.vue | 1 + 9 files changed, 51 insertions(+), 55 deletions(-) create mode 100644 src/components/pcitc/index.ts rename src/{views/mdm/Bank/components => components/pcitc/src}/DataLog.vue (81%) diff --git a/.env.development b/.env.development index c5ff07d..8d62852 100644 --- a/.env.development +++ b/.env.development @@ -10,7 +10,7 @@ VITE_PUBLIC_PATH = / # 如果接口地址匹配到,则会转发到http://localhost:3000,防止本地出现跨域问题 # 可以有多个,注意多个不能换行,否则代理将会失效 #VITE_PROXY = [["/api","http://localhost:3000"],["/upload","http://localhost:3300/upload"]] -VITE_PROXY=[["/api","http://127.0.0.1:8090"]] +VITE_PROXY=[["/api","http://47.94.165.164:9500"]] # 是否删除Console.log VITE_DROP_CONSOLE = false diff --git a/Dockerfile b/Dockerfile index d30e96b..d7f12fc 100644 --- a/Dockerfile +++ b/Dockerfile @@ -4,8 +4,10 @@ FROM docker.tanuki.vip/nginx-amd64:1.29.0 MAINTAINER fucai WORKDIR /usr/share/nginx/html -COPY ./nginx.conf /etc/nginx/nginx.conf # 拷贝 nginx 配置文件 -COPY ./dist/ /usr/share/nginx/html/ # 拷贝 dist 目录下的文件到 nginx 的 html 目录下 +# 拷贝 nginx 配置文件 +COPY ./nginx.conf /etc/nginx/nginx.conf +# 拷贝 dist 目录下的文件到 nginx 的 html 目录下 +COPY ./dist/ /usr/share/nginx/html/ EXPOSE 8080 diff --git a/src/api/mdm/Bank/index.ts b/src/api/mdm/Bank/index.ts index 856ced9..043ea9a 100644 --- a/src/api/mdm/Bank/index.ts +++ b/src/api/mdm/Bank/index.ts @@ -138,18 +138,3 @@ export async function disableLngBBank(ids: string[], mode: ErrorMessageMode = 'm ); } - /** - * @description: 获取数据日志 - */ - export async function getDataLog(id: string, mode: ErrorMessageMode = 'modal', path:string) { - return defHttp.get( - { - url: path, - params: { id }, - }, - { - errorMessageMode: mode, - }, - ); - } - diff --git a/src/components/Page/index.ts b/src/components/Page/index.ts index 9fb44dc..b100ba4 100644 --- a/src/components/Page/index.ts +++ b/src/components/Page/index.ts @@ -6,4 +6,4 @@ import pageFooter from './src/PageFooter.vue'; export const PageWrapper = withInstall(pageWrapper); export const PageFooter = withInstall(pageFooter); -export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight'; +export const PageWrapperFixedHeightKey = 'PageWrapperFixedHeight'; \ No newline at end of file diff --git a/src/components/pcitc/index.ts b/src/components/pcitc/index.ts new file mode 100644 index 0000000..0310192 --- /dev/null +++ b/src/components/pcitc/index.ts @@ -0,0 +1,5 @@ +import { withInstall } from '/@/utils'; + +import dataLog from './src/DataLog.vue'; + +export const DataLog = withInstall(dataLog); \ No newline at end of file diff --git a/src/views/mdm/Bank/components/DataLog.vue b/src/components/pcitc/src/DataLog.vue similarity index 81% rename from src/views/mdm/Bank/components/DataLog.vue rename to src/components/pcitc/src/DataLog.vue index 0b9ddf6..e29cf5b 100644 --- a/src/views/mdm/Bank/components/DataLog.vue +++ b/src/components/pcitc/src/DataLog.vue @@ -13,7 +13,8 @@