From 492a91ada4f0f98d9d800b55f9dddda7b53f7dd8 Mon Sep 17 00:00:00 2001 From: wwl <xchao828@163.com> Date: 星期六, 04 一月 2025 18:11:59 +0800 Subject: [PATCH] 1 --- src/components/jianceResult/index.vue | 37 ++++++++++++++++++++++++++++--------- 1 files changed, 28 insertions(+), 9 deletions(-) diff --git a/src/components/jianceResult/index.vue b/src/components/jianceResult/index.vue index 07bec52..4baeb4a 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,27 @@ }, list: [], fList: {}, + queryParams: { xmgz: '' } }; }, mounted() { }, methods: { + quxiao(){ + this.open = false + this.queryParams = { + xmgz: '' + } + }, handleOk() { - if(this.list.length == 0) { + if (this.list.length == 0) { this.$modal.msgError("璇烽�夋嫨鑷冲皯涓�椤癸紒"); return - } else{ + } else { this.open = false - this.$emit('add', this.list); + this.$emit('add', this.list); } - + }, handleQuery() { this.getList(); @@ -63,14 +80,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