Commit ed5d24ce authored by CenXinYi's avatar CenXinYi

通过虚拟DOM自动获取焦点

Signed-off-by: 's avatarCenXinYi <2810162984@qq.com>
parent 4d9b4de9
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<el-form-item label="pn" prop="pn"> <el-form-item label="pn" prop="pn">
<el-input <el-input
ref="autoGetFocusInput"
v-model="queryEntity.entity.pn" v-model="queryEntity.entity.pn"
placeholder="请输入pn" placeholder="请输入pn"
clearable clearable
...@@ -427,6 +428,9 @@ export default { ...@@ -427,6 +428,9 @@ export default {
created() { created() {
this.getList() this.getList()
}, },
mounted() {
this.$refs.autoGetFocusInput.focus()
},
methods: { methods: {
/** TODO:查询工序库的出入库记录列表 */ /** TODO:查询工序库的出入库记录列表 */
......
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<el-form-item label="pn" prop="pn"> <el-form-item label="pn" prop="pn">
<el-input <el-input
ref="autoGetFocusInput"
v-model="queryEntity.entity.pn" v-model="queryEntity.entity.pn"
placeholder="请输入pn" placeholder="请输入pn"
clearable clearable
...@@ -381,6 +382,9 @@ export default { ...@@ -381,6 +382,9 @@ export default {
created() { created() {
this.getList() this.getList()
}, },
mounted() {
this.$refs.autoGetFocusInput.focus()
},
methods: { methods: {
/** TODO:查询工序库的出入库记录列表 */ /** TODO:查询工序库的出入库记录列表 */
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment