From 31b6cdb63b9a11bd550f88a1ed23099e7d2f2ece Mon Sep 17 00:00:00 2001
From: yangjiewei <1658539101@qq.com>
Date: Thu, 3 Apr 2025 10:18:55 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E5=BC=95=E7=94=A8?=
=?UTF-8?q?=E6=96=87=E4=BB=B6=E5=90=8D=E5=92=8C=E5=AE=9E=E9=99=85=E4=B8=8D?=
=?UTF-8?q?=E4=B8=80=E8=87=B4=E7=9A=84=E9=97=AE=E9=A2=98=E3=80=82=20feat:?=
=?UTF-8?q?=20=E5=A2=9E=E5=8A=A0=E6=A0=B9=E6=8D=AE=20location.origin=20?=
=?UTF-8?q?=E8=8E=B7=E5=8F=96=E5=BD=93=E5=89=8D=E8=AF=B7=E6=B1=82=E5=9C=B0?=
=?UTF-8?q?=E5=9D=80=E7=9A=84=E5=8A=9F=E8=83=BD=E3=80=82?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.env.production | 2 +-
build/script/buildConf.ts | 38 +-
...skinstModal.vue => ActHiTaskinstModal.vue} | 0
...itRecordModal.vue => AuditRecordModal.vue} | 0
...ngelogModal.vue => FormChangeLogModal.vue} | 0
src/views/system/group/index.vue | 901 +++++++++---------
...mconfigModal.vue => SystemConfigModal.vue} | 0
...mnoticeModal.vue => SystemNoticeModal.vue} | 0
8 files changed, 444 insertions(+), 497 deletions(-)
rename src/views/actHiTaskinst/components/{ActhitaskinstModal.vue => ActHiTaskinstModal.vue} (100%)
rename src/views/auditOpt/auditRecord/components/{auditRecordModal.vue => AuditRecordModal.vue} (100%)
rename src/views/formChange/formChangeLog/components/{FormchangelogModal.vue => FormChangeLogModal.vue} (100%)
rename src/views/system/systemConfig/components/{SystemconfigModal.vue => SystemConfigModal.vue} (100%)
rename src/views/system/systemNotice/components/{SystemnoticeModal.vue => SystemNoticeModal.vue} (100%)
diff --git a/.env.production b/.env.production
index 756250e..f0c9ac6 100644
--- a/.env.production
+++ b/.env.production
@@ -16,7 +16,7 @@ VITE_BUILD_COMPRESS = 'gzip'
VITE_BUILD_COMPRESS_DELETE_ORIGIN_FILE = false
# 接口地址 可以由nginx做转发或者直接写实际地址
-VITE_GLOB_API_URL=http://10.0.252.5:3100/api
+VITE_GLOB_API_URL=${location.origin}/api
# 文件上传地址 可以由nginx做转发或者直接写实际地址
diff --git a/build/script/buildConf.ts b/build/script/buildConf.ts
index 0c8089c..887b8e6 100644
--- a/build/script/buildConf.ts
+++ b/build/script/buildConf.ts
@@ -11,18 +11,18 @@ import { getConfigFileName } from '../getConfigFileName';
import pkg from '../../package.json';
interface CreateConfigParams {
- configName: string;
- config: any;
- configFileName?: string;
+ configName: string;
+ config: any;
+ configFileName?: string;
}
function createConfig(params: CreateConfigParams) {
- const { configName, config, configFileName } = params;
- try {
- const windowConf = `window.${configName}`;
- // Ensure that the variable will not be modified
- let configStr = `${windowConf}=${JSON.stringify(config)};`;
- configStr += `
+ const { configName, config, configFileName } = params;
+ try {
+ const windowConf = `window.${configName}`;
+ // Ensure that the variable will not be modified
+ let configStr = `${windowConf}=${JSON.stringify(config).replace(/:"([^"]+)"/g, ':`$1`')};`;
+ configStr += `
Object.freeze(${windowConf});
Object.defineProperty(window, "${configName}", {
configurable: false,
@@ -30,18 +30,18 @@ function createConfig(params: CreateConfigParams) {
});
`.replace(/\s/g, '');
- fs.mkdirp(getRootPath(OUTPUT_DIR));
- writeFileSync(getRootPath(`${OUTPUT_DIR}/${configFileName}`), configStr);
+ fs.mkdirp(getRootPath(OUTPUT_DIR));
+ writeFileSync(getRootPath(`${OUTPUT_DIR}/${configFileName}`), configStr);
- console.log(colors.cyan(`✨ [${pkg.name}]`) + ` - configuration file is build successfully:`);
- console.log(colors.gray(OUTPUT_DIR + '/' + colors.green(configFileName)) + '\n');
- } catch (error) {
- console.log(colors.red('configuration file configuration file failed to package:\n' + error));
- }
+ console.log(colors.cyan(`✨ [${pkg.name}]`) + ` - configuration file is build successfully:`);
+ console.log(colors.gray(OUTPUT_DIR + '/' + colors.green(configFileName)) + '\n');
+ } catch (error) {
+ console.log(colors.red('configuration file configuration file failed to package:\n' + error));
+ }
}
export function runBuildConfig() {
- const config = getEnvConfig();
- const configFileName = getConfigFileName(config);
- createConfig({ config, configName: configFileName, configFileName: GLOB_CONFIG_FILE_NAME });
+ const config = getEnvConfig();
+ const configFileName = getConfigFileName(config);
+ createConfig({ config, configName: configFileName, configFileName: GLOB_CONFIG_FILE_NAME });
}
diff --git a/src/views/actHiTaskinst/components/ActhitaskinstModal.vue b/src/views/actHiTaskinst/components/ActHiTaskinstModal.vue
similarity index 100%
rename from src/views/actHiTaskinst/components/ActhitaskinstModal.vue
rename to src/views/actHiTaskinst/components/ActHiTaskinstModal.vue
diff --git a/src/views/auditOpt/auditRecord/components/auditRecordModal.vue b/src/views/auditOpt/auditRecord/components/AuditRecordModal.vue
similarity index 100%
rename from src/views/auditOpt/auditRecord/components/auditRecordModal.vue
rename to src/views/auditOpt/auditRecord/components/AuditRecordModal.vue
diff --git a/src/views/formChange/formChangeLog/components/FormchangelogModal.vue b/src/views/formChange/formChangeLog/components/FormChangeLogModal.vue
similarity index 100%
rename from src/views/formChange/formChangeLog/components/FormchangelogModal.vue
rename to src/views/formChange/formChangeLog/components/FormChangeLogModal.vue
diff --git a/src/views/system/group/index.vue b/src/views/system/group/index.vue
index 9e87f1e..8c65b85 100644
--- a/src/views/system/group/index.vue
+++ b/src/views/system/group/index.vue
@@ -1,505 +1,452 @@
-
-
-
-
-
-
-
-
-
- {{ button.name }}
-
-
-
- {{ button.name }}
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
+
+
+ {{ button.name }}
+
+
+
+ {{ button.name }}
+
+
+
+
+
+
+
+
+
- {
- visible = false;
- }
- "
- @change="handleSelectUserSuccess"
- />
-
-
-
-
-
-
-
-
-
+ {
+ visible = false;
+ }
+ "
+ @change="handleSelectUserSuccess"
+ />
+
+
+
+
+
diff --git a/src/views/system/systemConfig/components/SystemconfigModal.vue b/src/views/system/systemConfig/components/SystemConfigModal.vue
similarity index 100%
rename from src/views/system/systemConfig/components/SystemconfigModal.vue
rename to src/views/system/systemConfig/components/SystemConfigModal.vue
diff --git a/src/views/system/systemNotice/components/SystemnoticeModal.vue b/src/views/system/systemNotice/components/SystemNoticeModal.vue
similarity index 100%
rename from src/views/system/systemNotice/components/SystemnoticeModal.vue
rename to src/views/system/systemNotice/components/SystemNoticeModal.vue