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
Hide 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
ref=
"queryForm"
:rules=
"rules"
:model=
"queryParams"
ref=
"queryForm"
:inline=
"true"
:model=
"queryParams"
label-width=
"60px"
:inline=
"true"
>
label-width=
"60px"
>
<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,18 +18,19 @@
...
@@ -19,18 +18,19 @@
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
type=
"primary"
type=
"primary"
size=
"small"
size=
"small"
icon=
"el-icon-search"
icon=
"el-icon-search"
@
click=
"handleQuery"
@
click=
"handleQuery"
>
查询
</el-button
>
查询
</el-button
>
>
</el-form-item>
</el-form-item>
</el-form>
</el-form>
<el-table
<el-table
:gutter=
"40"
:gutter=
"40"
v-loading=
"loading"
v-loading=
"loading"
...
@@ -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,18 +118,25 @@ export default {
...
@@ -111,18 +118,25 @@ export default {
},
},
//提交按钮
//提交按钮
onSubmit
()
{
onSubmit
()
{
console
.
log
(
this
.
dictSelection
)
this
.
$refs
.
queryForm
.
validate
(
valid
=>
{
submit
(
this
.
dictSelection
).
then
(
res
=>
{
if
(
valid
)
{
if
(
res
.
code
===
200
)
{
console
.
log
(
this
.
dictSelection
)
this
.
$message
.
success
(
'提交成功'
)
submit
(
this
.
dictSelection
).
then
(
res
=>
{
this
.
$refs
.
dictTable
.
clearSelection
()
if
(
res
.
code
===
200
)
{
this
.
queryParams
.
ptype
=
''
this
.
$message
.
success
(
'提交成功'
)
this
.
$refs
.
dictTable
.
clearSelection
()
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