From 967f71ac99954cc1f76254c9bcd18bb6cbb93366 Mon Sep 17 00:00:00 2001
From: qx <1084500556@qq.com>
Date: 星期三, 16 四月 2025 14:15:18 +0800
Subject: [PATCH] qx

---
 src/components/public/index.vue |  120 ++++++++++++++++++++++++++++++------------------------------
 1 files changed, 60 insertions(+), 60 deletions(-)

diff --git a/src/components/public/index.vue b/src/components/public/index.vue
index 8e16d25..19a6ccc 100644
--- a/src/components/public/index.vue
+++ b/src/components/public/index.vue
@@ -5,14 +5,12 @@
       <h3 v-if="fList.proResult">
         妫�娴嬬粨鏋� :{{ fList.proResult }}{{ fList.project.proMetering }}
       </h3>
-      <!-- <el-form
-        :model="queryParams"
-        ref="queryForm"
-        size="small"
-        :inline="true"
-        label-width="68px"
-      > -->
-      <!-- <el-form-item label="鐥呯鍚嶇О" prop="bingzhong">
+
+      <h2 style="text-align: center;">{{ queryParams.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">
+            <!-- <el-form-item label="鐥呯鍚嶇О" prop="bingzhong">
           <el-input
             v-model="queryParams.bingzhong"
             placeholder="璇疯緭鍏ョ畝绉�"
@@ -20,37 +18,23 @@
             @keyup.enter.native="handleQuery"
             style="width: 120px"
           />
-        </el-form-item>
-        <el-form-item label="鎷奸煶鐮�" prop="bzPinyin">
-          <el-input
-            v-model="queryParams.bzPinyin"
-            placeholder="璇疯緭鍏ユ嫾闊崇爜"
-            clearable
-            @keyup.enter.native="handleQuery"
-            style="width: 130px"
-          />
-        </el-form-item>
-        <el-form-item>
-          <el-button
-            type="primary"
-            icon="el-icon-search"
-            size="mini"
-            @click="handleQuery"
-            >鎼滅储</el-button
-          >
-        </el-form-item> -->
-      <!-- <el-form-item>
+        </el-form-item>-->
+            <el-form-item label="妫�鏌ョ粨璁�" prop="ruleStr">
+              <el-input v-model="queryParams.ruleStr" placeholder="璇疯緭鍏ユ鏌ョ粨璁�" clearable @keyup.enter.native="getList"
+                style="width: 130px" />
+            </el-form-item>
+            <el-form-item>
+              <el-button type="primary" icon="el-icon-search" size="mini" @click="getList">鎼滅储</el-button>
+            </el-form-item>
+            <!-- <el-form-item>
           <h3 >{{ queryParams.proName  || '鏆傛棤椤圭洰鍚嶇О'  }}</h3>
         </el-form-item> -->
-      <!-- <el-form-item>
+            <!-- <el-form-item>
           <h3 style="margin-left: 160px">宸查�夐」鐩�</h3>
         </el-form-item> -->
-      <!-- </el-form> -->
-      <h2 style="text-align: center;margin-top: -30px;">{{ queryParams.proName || '鏆傛棤椤圭洰鍚嶇О' }}</h2>
-      <div style="display: flex; width: 100%">
-        <div style="width: 50%; margin-right: 40px">
+          </el-form>
           <el-table :data="dataList" ref="multipleTable" v-loading="loading" @selection-change="handleSelectionChange"
-            border height="420px">
+            border height="480px">
             <el-table-column type="selection" width="40" align="center" />
             <el-table-column label="搴忓彿" type="index" align="center" width="50px" />
             <!-- <el-table-column label="瑙勫垯" align="center" prop="ruleStr" /> -->
@@ -65,7 +49,7 @@
           </div>
         </div>
 
-        <div style="width: 100%; height: 600px">
+        <div class="jianc">
           <!-- <h3 style="margin-top: -30px;">宸查�夐」鐩�</h3> -->
           <el-form :model="form" ref="queryForm" size="small" label-width="68px" :label-position="labelPosition">
             <!--  :inline="true" -->
@@ -79,14 +63,14 @@
             <el-form-item label="妫�鏌ユ墍瑙�" prop="jcsj">
               <el-input v-model="form.jcsj" clearable type="textarea" :autosize="{ minRows: 7 }" style="width: 380px" />
             </el-form-item>
-            <el-form-item label="妫�鏌ョ粨璁�" prop="conclusion">
+            <el-form-item label="妫�鏌ョ粨璁�" prop="desc">
               <el-input v-model="form.desc" clearable type="textarea" :autosize="{ minRows: 7 }" style="width: 380px" />
             </el-form-item>
           </el-form>
         </div>
       </div>
 
-      <span slot="footer" class="dialog-footer" style="margin-top: -120px">
+      <span slot="footer" class="dialog-footer" style="margin-top: -20px">
         <el-button @click="callcolos">鍙� 娑�</el-button>
         <el-button type="primary" @click="handleOk">纭� 瀹�</el-button>
       </span>
@@ -121,7 +105,7 @@
   data() {
     return {
       open: false,
-      labelPosition:"top",
+      labelPosition: "top",
       // 寮瑰嚭灞傛爣棰�
       title: "",
       yxbx: "",
@@ -136,10 +120,7 @@
         jcsj: "",
       },
       queryParams: {
-        bingzhong: "",
-        bzPinyin: "",
-        proId: "",
-        proName: "",
+        ruleStr: "",
         pageNum: 1,
         pageSize: 10,
       },
@@ -151,6 +132,7 @@
   },
   watch: {
     checkStatus(newValue) {
+      console.log(565658)
       if (newValue === "1") {
         this.updateData(this.proResult, this.conclusion);
       }
@@ -179,10 +161,11 @@
         this.loading = true; // 娣诲姞鍔犺浇鐘舵��
         const res = await getlist(this.queryParams);
         this.dataList = res.data.rows;
-        if( res.data.total){
+        if (res.data.total) {
           this.total = res.data.total;
         }
-          this.updateData(this.proResult, this.conclusion);
+        this.updateData(this.proResult, this.conclusion);
+
         // 濡傛灉闇�瑕侀�変腑鎿嶄綔锛屽皢鍏跺皝瑁呬负鐙珛鏂规硶
         await this.handleAutoSelection();
       } catch (error) {
@@ -219,23 +202,29 @@
 
     updateData(proResult, conclusion) {
       console.log(proResult, conclusion, 5658)
-    
+      if (this.checkStatus == 1) {
+
         this.form.jcsj = proResult; // 鏇存柊妫�鏌ユ墍瑙�
         this.form.desc = conclusion; // 鏇存柊妫�鏌ョ粨璁�
-        if (this.list.length != 0) {
-          let desc = ""
-            desc += this.list
-              .map((item) => item.bingzhong || item.ruleStr)
-              .filter(Boolean)
-              .join(",");
-            let jcsj = ""
-            jcsj += this.list
-              .map((item) => item.yxbx)
-              .filter(Boolean)
-              .join(",");
-            this.form.jcsj =  this.form.jcsj+jcsj; // 鏇存柊妫�鏌ユ墍瑙�
-            this.form.desc= this.form.desc+desc;
-        }
+      } else {
+        this.form.desc = "";
+        this.form.jcsj = "";
+      }
+
+      if (this.list.length != 0) {
+        let desc = ""
+        desc += this.list
+          .map((item) => item.bingzhong || item.ruleStr)
+          .filter(Boolean)
+          .join(",");
+        let jcsj = ""
+        jcsj += this.list
+          .map((item) => item.yxbx)
+          .filter(Boolean)
+          .join(",");
+        this.form.jcsj = this.form.jcsj + jcsj; // 鏇存柊妫�鏌ユ墍瑙�
+        this.form.desc = this.form.desc + desc;
+      }
     },
 
     handleSelectionChange(selection) {
@@ -310,11 +299,22 @@
 
 <style scoped>
 .el-dialog__body {
-  padding: 10px 20px;
+  padding: 0px 20px;
+}
+
+::v-deep .el-dialog__header {
+  padding: 0px !important;
+  padding-bottom: 0px !important;
 }
 
 ::v-deep .el-dialog__footer {
   padding: 0 !important;
   padding-bottom: 40px !important;
 }
+
+.jianc {
+  width: 100%;
+  height: 600px;
+  padding-top: 40px
+}
 </style>
\ No newline at end of file

--
Gitblit v1.8.0