From 126c2f048e1d0fb1bd43373e66908ab721cde1eb Mon Sep 17 00:00:00 2001 From: wangpeng Date: Tue, 9 Jul 2024 14:40:42 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=8D=A2=E5=BC=80=E5=8F=91=E5=92=8C?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E7=8E=AF=E5=A2=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 6 +++--- .env.production | 20 ++++++++++++------- .../freight_trailer/edit.vue | 5 ++--- 3 files changed, 18 insertions(+), 13 deletions(-) diff --git a/.env.development b/.env.development index 045cc8b..bfb3c69 100644 --- a/.env.development +++ b/.env.development @@ -1,3 +1,3 @@ -VITE_BASE_URL=http://192.168.0.69:7082/ -VITE_ON_LINE_WEB_SOCKET_URL=ws://192.168.0.31:8869 -VITE_LEARNING_WEB_SOCKET_URL=ws://192.168.0.31:8899 +VITE_BASE_URL=http://192.168.0.16:7082/ +VITE_ON_LINE_WEB_SOCKET_URL=ws://192.168.20.240:8869 +VITE_LEARNING_WEB_SOCKET_URL=ws://192.168.20.240:8899 diff --git a/.env.production b/.env.production index 07df8ad..64cc071 100644 --- a/.env.production +++ b/.env.production @@ -1,10 +1,16 @@ -VITE_BASE_URL=http://39.101.166.211:8073/integrated_traffic/ - +#测试 +VITE_BASE_URL=http://192.168.20.240:8412/integrated_traffic/ #websocket t掉线 -VITE_ON_LINE_WEB_SOCKET_URL=ws://39.101.166.211:8869 -# VITE_ON_LINE_WEB_SOCKET_URL=wss://qaaqjt.qhdsafety.com/disconnected/ - +VITE_ON_LINE_WEB_SOCKET_URL=ws://192.168.20.240:8869 #websocket 在线学习 -VITE_LEARNING_WEB_SOCKET_URL=ws://39.101.166.211:8899 -# VITE_LEARNING_WEB_SOCKET_URL=wss://qaaqjt.qhdsafety.com/onlinelearning/ +VITE_LEARNING_WEB_SOCKET_URL=ws://192.168.20.240:8899 + +##正式 +#VITE_BASE_URL=http://39.101.166.211:8073/integrated_traffic/ +##websocket t掉线 +#VITE_ON_LINE_WEB_SOCKET_URL=ws://39.101.166.211:8869 +## VITE_ON_LINE_WEB_SOCKET_URL=wss://qaaqjt.qhdsafety.com/disconnected/ +##websocket 在线学习 +#VITE_LEARNING_WEB_SOCKET_URL=ws://39.101.166.211:8899 +## VITE_LEARNING_WEB_SOCKET_URL=wss://qaaqjt.qhdsafety.com/onlinelearning/ diff --git a/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue b/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue index 5d123e1..d297af7 100644 --- a/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue +++ b/src/views/enterprise_management/basics_info_management/freight_trailer/edit.vue @@ -244,7 +244,7 @@ const route = useRoute(); const router = useRouter(); const FREIGHTTRAILER_ID = route.query.FREIGHTTRAILER_ID; const formRef = ref(null); -let plateNumber = ''; +let plateNumber = ""; const form = ref({ NUM: "", PLATE_NUMBER: "", @@ -294,7 +294,6 @@ const isVehicleNumber = (rule, vehicleNumber, callback) => { if (creg.test(vehicleNumber) === false) { callback(new Error("格式错误")); } else callback(); - } else if (vehicleNumber.length === 8) { if (xreg.test(vehicleNumber) === false) { callback(new Error("格式错误")); @@ -338,7 +337,7 @@ const fnGetData = async () => { resData.operCertificateImgs ); form.value.TRAILER_INFO = addingPrefixToFile(resData.trailerInfoImgs); - plateNumber = form.value.PLATE_NUMBER + plateNumber = form.value.PLATE_NUMBER; }; fnGetData();