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();