From 4d9c51126e85a9825f0665bb8e4f897e08092f2f Mon Sep 17 00:00:00 2001 From: andy <1042025947@qq.com> Date: Thu, 25 Jun 2026 11:22:16 +0800 Subject: [PATCH] =?UTF-8?q?=E7=AB=99=E6=8E=A7=E9=94=81=E5=AE=9A=E8=B0=83?= =?UTF-8?q?=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 4 +-- src/views/swapstation/hdz/index.vue | 51 ++++++++++++++++++++++++----- vite/vite.config.serve.ts | 3 +- 3 files changed, 47 insertions(+), 11 deletions(-) diff --git a/.env.development b/.env.development index f46e82e..35ec313 100644 --- a/.env.development +++ b/.env.development @@ -5,8 +5,8 @@ VITE_APP_TITLE = 智慧换电管理系统 VITE_APP_ENV = 'development' # 开发环境 -VITE_APP_BASE_API = 'http://192.168.5.213:9100/gateway' -#VITE_APP_BASE_API = 'http://192.168.5.230:9100/gateway' +# VITE_APP_BASE_API = 'http://192.168.5.230:9100/gateway' +VITE_APP_BASE_API = 'http://192.168.5.230:9100/gateway' #VITE_APP_BASE_API = '/dev-api' #VITE_APP_BASE_API = 'https://api.evo-techina.com' diff --git a/src/views/swapstation/hdz/index.vue b/src/views/swapstation/hdz/index.vue index f97a34a..05243f9 100644 --- a/src/views/swapstation/hdz/index.vue +++ b/src/views/swapstation/hdz/index.vue @@ -97,7 +97,18 @@
放开
- + + + + + + @@ -710,10 +721,25 @@ :close-on-click-modal="false" > - - - - + + + + + @@ -757,6 +783,7 @@ import Latilonmap from '@/views/components/latilonmap.vue' import { useRoute } from 'vue-router' + import { formatDate } from '@/utils/ruoyi' function timestamp() { return new Date().getTime() @@ -1091,12 +1118,16 @@ let hdzname = ref('') let lockata = reactive({ stop:true, - hour:'' + stopTime:'', + stopTip:'' }) let locksRef = ref() const lockrules = { - hour:[ + stopTime:[ { required: true, message: "请选择时间", trigger: "blur" } + ], + stopTip:[ + { required: true, message: "请输入提醒内容", trigger: "blur" } ] } @@ -1104,7 +1135,8 @@ hdzname.value = row.name hdzid.value = row.pkId lockpop.value = true - lockata.hour = '' + lockata.stopTime = '' + lockata.stopTip = '' querform.value?.resetFields() } @@ -1112,6 +1144,9 @@ function lockhand() { locksRef.value?.validate((valid:Boolean) => { if (valid) { + if (lockata.stopTime) { + lockata.stopTime = formatDate(lockata.stopTime) + } stastop(hdzid.value,lockata).then(() => { ElMessage({ type: 'success', diff --git a/vite/vite.config.serve.ts b/vite/vite.config.serve.ts index 27a6e91..8ca9b5a 100644 --- a/vite/vite.config.serve.ts +++ b/vite/vite.config.serve.ts @@ -5,7 +5,8 @@ export default defineConfig({ envPrefix: "VITE_", //环境变量默认前缀 server: { // 服务器主机名,默认是 localhost - host: "192.168.5.231", + //host: "192.168.5.231", + host:true, // 是否开启自动打开浏览器 open: true, // proxy: {