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;