From 8181583ea89c7af496e16df4f6a4953857923f63 Mon Sep 17 00:00:00 2001 From: su1124 <1583764726@qq.com> Date: 星期一, 25 十二月 2023 18:36:32 +0800 Subject: [PATCH] su --- src/views/sampling/sampling/index.vue | 7 +++++++ 1 files changed, 7 insertions(+), 0 deletions(-) diff --git a/src/views/sampling/sampling/index.vue b/src/views/sampling/sampling/index.vue index 9cb4eac..8bfa04c 100644 --- a/src/views/sampling/sampling/index.vue +++ b/src/views/sampling/sampling/index.vue @@ -10,10 +10,12 @@ > <el-form-item label="浣撴鍙�" prop="tjNum"> <el-input + ref="inputName" v-model="queryParams.tjNum" placeholder="璇疯緭鍏ヤ綋妫�鍙�" clearable @keyup.enter.native="handleQuery" + @blur="handleQuery" style="width: 170px" /> </el-form-item> @@ -355,6 +357,11 @@ this.getNowTime(); this.getList(); }, + mounted() { + this.$nextTick(() => { + this.$refs.inputName.focus(); + }); + }, methods: { handleSizeChange(val) { this.size = val; -- Gitblit v1.8.0