From 7d2dba2945bf807413e7fc809fc06acebe3721a8 Mon Sep 17 00:00:00 2001
From: lkk <364857242@qq.com>
Date: 星期二, 21 一月 2025 13:46:41 +0800
Subject: [PATCH] 1

---
 src/components/jianceResult/index.vue |   43 +++++++++++++++++++++++++++++--------------
 1 files changed, 29 insertions(+), 14 deletions(-)

diff --git a/src/components/jianceResult/index.vue b/src/components/jianceResult/index.vue
index 24e0585..0ee3f4a 100644
--- a/src/components/jianceResult/index.vue
+++ b/src/components/jianceResult/index.vue
@@ -1,6 +1,16 @@
 <template>
   <div>
-    <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body>
+    <el-dialog :title="title" :visible.sync="open" width="1200px" append-to-body @close="quxiao">
+      <el-form :model="queryParams" ref="queryForm" size="small" :inline="true" label-width="68px">
+
+        <el-form-item label="鍐呭" prop="xmg">
+          <el-input v-model="queryParams.xmgz" 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>
       <el-table :data="dataList" ref="elTable" v-loading="loading" border @selection-change="handleSelectionChange">
         <el-table-column type="selection" width="40" align="center" />
         <el-table-column label="鏍囧彿" prop="aid" align="center" />
@@ -9,7 +19,7 @@
         <el-table-column label="绠�鐮�" prop="jm" align="center" />
       </el-table>
       <span slot="footer" class="dialog-footer">
-        <el-button @click="open = false">鍙� 娑�</el-button>
+        <el-button @click="quxiao">鍙� 娑�</el-button>
         <el-button type="primary" @click="handleOk">纭� 瀹�</el-button>
       </span>
     </el-dialog>
@@ -39,34 +49,39 @@
       },
       list: [],
       fList: {},
+      queryParams: { xmgz: '' }
     };
   },
   mounted() {
   },
   methods: {
-    handleOk() {
+    quxiao(){
       this.open = false
-      this.$emit('add', this.list);
+      this.queryParams = {
+        xmgz: ''
+      }
+    },
+    handleOk() {
+        this.open = false
+        this.$emit('add', this.list);
     },
     handleQuery() {
       this.getList();
     },
     handleSelectionChange(selection) {
-      if (selection.length > 1) {
-        // 濡傛灉閫夋嫨浜嗗琛岋紝淇濈暀鏈�鍚庝竴琛�
-        this.$refs.elTable.clearSelection();  // 娓呯┖鎵�鏈夐�夋嫨
-        this.$refs.elTable.toggleRowSelection(selection[selection.length - 1]);  // 閲嶆柊閫夋嫨鏈�鍚庝竴椤�
-      }
-
-      // 鑾峰彇鏈�鍚庨�夋嫨鐨勮
-      this.list = [selection[selection.length - 1]];
+      this.list = selection
     },
     getList() {
       this.loading = true;
       selectZT({
-        proId: this.proId
+        proId: this.proId,
+        xmgz: this.queryParams.xmgz
       }).then((res) => {
-        if (res.data) {
+        if (res.data.length > 0) {
+          this.open = true
+          this.dataList = res.data;
+          this.loading = false;
+        } else {
           this.dataList = res.data;
           this.loading = false;
         }

--
Gitblit v1.8.0