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 | 39 ++++++++++++++++++++++++++------------- 1 files changed, 26 insertions(+), 13 deletions(-) diff --git a/src/components/jianceResult/index.vue b/src/components/jianceResult/index.vue index 07bec52..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,20 +49,21 @@ }, list: [], fList: {}, + queryParams: { xmgz: '' } }; }, mounted() { }, methods: { - handleOk() { - if(this.list.length == 0) { - this.$modal.msgError("璇烽�夋嫨鑷冲皯涓�椤癸紒"); - return - } else{ - this.open = false - this.$emit('add', this.list); + quxiao(){ + this.open = false + this.queryParams = { + xmgz: '' } - + }, + handleOk() { + this.open = false + this.$emit('add', this.list); }, handleQuery() { this.getList(); @@ -63,14 +74,16 @@ getList() { this.loading = true; selectZT({ - proId: this.proId + proId: this.proId, + xmgz: this.queryParams.xmgz }).then((res) => { - if (res.data.length>0) { + if (res.data.length > 0) { this.open = true this.dataList = res.data; this.loading = false; } else { - this.open = false + this.dataList = res.data; + this.loading = false; } }); }, -- Gitblit v1.8.0