From c56b67b1564e7d5d88860767de0f4f5b70c487ee Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期四, 05 六月 2025 14:42:41 +0800
Subject: [PATCH] qx

---
 src/components/public/index.vue |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/src/components/public/index.vue b/src/components/public/index.vue
index 19a6ccc..036a5b3 100644
--- a/src/components/public/index.vue
+++ b/src/components/public/index.vue
@@ -6,7 +6,7 @@
         妫�娴嬬粨鏋� :{{ fList.proResult }}{{ fList.project.proMetering }}
       </h3>
 
-      <h2 style="text-align: center;">{{ queryParams.proName || '鏆傛棤椤圭洰鍚嶇О' }}</h2>
+      <h2 style="text-align: center;">{{ proName || '鏆傛棤椤圭洰鍚嶇О' }}</h2>
       <div style="display: flex; width: 100%">
         <div style="width: 50%; margin-right: 40px">
           <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
@@ -146,7 +146,7 @@
         if (newVal && newVal.length > 0) {
           const firstProject = newVal[0]; // 浣犱篃鍙互閬嶅巻鎵�鏈夐」鐩紝鐪嬩綘涓氬姟闇�姹�
           this.queryParams.proId = firstProject.proId; // 鍋囪椤圭洰涓彨 id
-          this.queryParams.proName = firstProject.proName; // 鍋囪鍙� proName
+          //this.queryParams.proName = firstProject.proName; // 鍋囪鍙� proName
           this.proName = firstProject.proName
         }
       },
@@ -258,8 +258,11 @@
     },
 
     handleOk() {
-      if (!this.form.desc && !this.form.jcsj) {
-        this.$message.warning("璇烽�夋嫨鏁版嵁");
+      const jcsjTrim = this.form.jcsj?.trim();
+      const descTrim = this.form.desc?.trim();
+
+      if (!jcsjTrim || !descTrim) {
+        this.$message.warning("妫�鏌ユ墍瑙佸拰妫�鏌ョ粨璁轰笉鑳戒负绌�");
         return;
       }
 

--
Gitblit v1.8.0