From 904789374578cd93b65524872571bf0c3b362be2 Mon Sep 17 00:00:00 2001
From: zhangdi <15053473693@163.com>
Date: Fri, 6 Feb 2026 17:38:31 +0800
Subject: [PATCH] =?UTF-8?q?=E5=B7=A5=E8=89=BA=E7=AE=A1=E7=90=86=E9=97=AE?=
=?UTF-8?q?=E9=A2=98=E8=B0=83=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../processMainte/processPlanning.vue | 3 +++
.../processMainte/reworkProcessPlanning.vue | 7 +++++++
vite.config.mjs | 17 +++++++++++++++--
3 files changed, 25 insertions(+), 2 deletions(-)
diff --git a/src/views/processManagement/components/processMainte/processPlanning.vue b/src/views/processManagement/components/processMainte/processPlanning.vue
index 9fb9c40..398c615 100644
--- a/src/views/processManagement/components/processMainte/processPlanning.vue
+++ b/src/views/processManagement/components/processMainte/processPlanning.vue
@@ -140,6 +140,7 @@
:data="form1.tableData1"
style="width: 100%"
@selection-change="handleSelectionChange1"
+ class="tableHeight"
>
@@ -264,6 +265,7 @@
:data="form2.tableData2"
style="width: 100%"
@selection-change="handleSelectionChange2"
+ class="tableHeight"
>
@@ -371,6 +373,7 @@
class="tableHeight"
style="width: 100%"
@selection-change="handleSelectionChange3"
+
>
diff --git a/src/views/processManagement/components/processMainte/reworkProcessPlanning.vue b/src/views/processManagement/components/processMainte/reworkProcessPlanning.vue
index 9e7e123..5741c90 100644
--- a/src/views/processManagement/components/processMainte/reworkProcessPlanning.vue
+++ b/src/views/processManagement/components/processMainte/reworkProcessPlanning.vue
@@ -84,6 +84,7 @@
style="width: 100%"
v-if="activeName == '1'"
@selection-change="handleSelectionChange1"
+ class="tableHeight"
>
@@ -249,6 +250,7 @@
:data="form2.tableData2"
style="width: 100%"
@selection-change="handleSelectionChange2"
+ class="tableHeight"
>
@@ -366,6 +368,7 @@
:data="form3.tableData3"
style="width: 100%"
@selection-change="handleSelectionChange3"
+ class="tableHeight"
>
@@ -438,6 +441,7 @@
:data="form4.tableData4"
style="width: 100%"
@selection-change="handleSelectionChange4"
+ class="tableHeight"
>
@@ -1190,4 +1194,7 @@ export default {
padding: 0 !important;
line-height: 50px !important;
}
+.tableHeight {
+ height: calc(100vh - 50px - 80px - 40px - 94px - 50px - 50px);
+}
diff --git a/vite.config.mjs b/vite.config.mjs
index 220fe42..15487b6 100644
--- a/vite.config.mjs
+++ b/vite.config.mjs
@@ -19,6 +19,15 @@ export default ({ mode, command }) => {
// 如果是生产环境,添加Terser的配置
if (isProd) {
+ const now = new Date();
+ const timestamp = [
+ now.getFullYear(),
+ String(now.getMonth() + 1).padStart(2, '0'),
+ String(now.getDate()).padStart(2, '0'),
+ String(now.getHours()).padStart(2, '0'),
+ String(now.getMinutes()).padStart(2, '0'),
+ String(now.getSeconds()).padStart(2, '0')
+ ].join('');
buildConfig.terserOptions = {
compress: {
drop_console: true, // 删除 console
@@ -30,6 +39,10 @@ export default ({ mode, command }) => {
};
buildConfig.rollupOptions = {
output: {
+ // 添加带时间戳的文件名
+ entryFileNames: `assets/[name].${timestamp}.js`,
+ chunkFileNames: `assets/[name].${timestamp}.js`,
+ assetFileNames: `assets/[name].${timestamp}[extname]`,
manualChunks: {
'element-plus': ['element-plus'],
'@smallwei/avue': ['@smallwei/avue'],
@@ -51,7 +64,7 @@ export default ({ mode, command }) => {
// target: 'http://192.168.1.5:82',
// target: "http://192.168.1.4:82",
// target:'http://49.232.74.228:82',
- // target: "http://192.168.0.120",
+ // target: "http://192.168.0.103",
//target: 'https://saber3.bladex.cn/api',
// target: 'http://49.232.74.228:82',
// target: "http:192.168.0.220:80",
@@ -61,7 +74,7 @@ export default ({ mode, command }) => {
rewrite: path => path.replace(/^\/api/, ''),
},
},
- },
+ },
resolve: {
alias: {
'~': resolve(__dirname, './'),