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
dc590608
Commit
dc590608
authored
Sep 16, 2023
by
jack_liu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
three
parent
2b7b65a6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
28 deletions
+42
-28
index.vue
src/views/production/data/index.vue
+42
-28
No files found.
src/views/production/data/index.vue
View file @
dc590608
<
template
>
<
template
>
<div
class=
"app-container"
style=
"padding-top: 60px;"
>
<div
class=
"app-container"
style=
"padding-top: 60px"
>
<div
style=
"width: 60%; margin-left: 80px; padding-left: 8.6%"
>
<div
style=
"width: 60%; margin-left: 80px; padding-left: 8.6%"
>
<el-form
<el-form
:rules=
"rules"
ref=
"queryForm"
ref=
"queryForm"
:model=
"queryParams"
:model=
"queryParams"
:inline=
"true"
:inline=
"true"
...
@@ -11,7 +10,7 @@
...
@@ -11,7 +10,7 @@
>
>
<el-form-item
style=
"flex-basis: 50%"
prop=
"ptype"
>
<el-form-item
style=
"flex-basis: 50%"
prop=
"ptype"
>
<el-input
<el-input
v-model=
"queryParams.ptype"
v-model
.
trim
=
"queryParams.ptype"
placeholder=
"请输入工序"
placeholder=
"请输入工序"
clearable
clearable
:maxlength=
"100"
:maxlength=
"100"
...
@@ -19,7 +18,8 @@
...
@@ -19,7 +18,8 @@
style=
"width: 350px"
style=
"width: 350px"
@
keyup
.
enter
.
native=
"handleQuery"
@
keyup
.
enter
.
native=
"handleQuery"
>
>
<template
slot=
"prepend"
>
工序
</
template
></el-input>
<template
slot=
"prepend"
>
工序
</
template
></el-input
>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<el-button
<el-button
...
@@ -72,7 +72,11 @@
...
@@ -72,7 +72,11 @@
<el-row
style=
"padding-left: 8.6%; padding-top: 1%"
>
<el-row
style=
"padding-left: 8.6%; padding-top: 1%"
>
<el-col
:span=
"12"
>
<el-col
:span=
"12"
>
<el-form-item
style=
"flex-basis: 50%"
>
<el-form-item
style=
"flex-basis: 50%"
>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
提交
</el-button>
<el-button
type=
"primary"
@
click=
"onSubmit"
>
提交
</el-button
>
</el-form-item>
</el-form-item>
</el-col>
</el-col>
</el-row>
</el-row>
...
@@ -94,6 +98,9 @@ export default {
...
@@ -94,6 +98,9 @@ export default {
dictSelection
:
[],
dictSelection
:
[],
queryParams
:
{
queryParams
:
{
ptype
:
''
ptype
:
''
},
rules
:
{
ptype
:
[{
required
:
true
,
message
:
'请输入工序'
,
trigger
:
'blur'
}]
}
}
}
}
},
},
...
@@ -111,6 +118,8 @@ export default {
...
@@ -111,6 +118,8 @@ export default {
},
},
//提交按钮
//提交按钮
onSubmit
()
{
onSubmit
()
{
this
.
$refs
.
queryForm
.
validate
(
valid
=>
{
if
(
valid
)
{
console
.
log
(
this
.
dictSelection
)
console
.
log
(
this
.
dictSelection
)
submit
(
this
.
dictSelection
).
then
(
res
=>
{
submit
(
this
.
dictSelection
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
if
(
res
.
code
===
200
)
{
...
@@ -119,10 +128,15 @@ export default {
...
@@ -119,10 +128,15 @@ export default {
this
.
queryParams
.
ptype
=
''
this
.
queryParams
.
ptype
=
''
}
}
})
})
}
else
{
return
false
}
})
},
},
//查询
//查询
handleQuery
()
{
handleQuery
()
{
this
.
$refs
.
dictTable
.
clearSelection
()
//清空
/* this.$refs.dictTable.clearSelection() */
if
(
this
.
queryParams
.
ptype
==
''
)
{
if
(
this
.
queryParams
.
ptype
==
''
)
{
return
return
}
}
...
...
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