Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
T
template_vue
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨硕
template_vue
Commits
ed5d24ce
Commit
ed5d24ce
authored
Jul 31, 2023
by
CenXinYi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通过虚拟DOM自动获取焦点
Signed-off-by:
CenXinYi
<
2810162984@qq.com
>
parent
4d9b4de9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
0 deletions
+8
-0
index.vue
src/views/processManagement/inventoryRecord/index.vue
+4
-0
index.vue
src/views/sample/inventoryRecord/index.vue
+4
-0
No files found.
src/views/processManagement/inventoryRecord/index.vue
View file @
ed5d24ce
...
@@ -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:查询工序库的出入库记录列表 */
...
...
src/views/sample/inventoryRecord/index.vue
View file @
ed5d24ce
...
@@ -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:查询工序库的出入库记录列表 */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment