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
37bc7bab
Commit
37bc7bab
authored
Aug 02, 2023
by
wdy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
再利用
parent
13e3bd34
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
2 deletions
+9
-2
index.vue
src/views/processManagement/deviceReuse/index.vue
+7
-1
index.vue
src/views/sample/sampleType/index.vue
+2
-1
No files found.
src/views/processManagement/deviceReuse/index.vue
View file @
37bc7bab
<
template
>
<div
class=
"app-container"
>
<!-- 表单区域-->
<el-form
ref=
"form"
:model=
"form"
:rules=
"rule"
label-width=
"80px"
>
<!-- 标题-->
<div
class=
"info"
><span
class=
"title"
>
再利用
</span></div>
<el-row
:gutter=
"40"
>
<el-col
:span=
"12"
style=
"padding-left: 10%;"
>
...
...
@@ -91,6 +93,7 @@ export default {
created
()
{
},
methods
:
{
// 回车跳转下一个输入框
focusNextInput
(
form
)
{
this
.
$nextTick
(()
=>
{
this
.
$refs
[
form
].
$refs
.
input
.
focus
()
...
...
@@ -107,7 +110,7 @@ export default {
that
.
$refs
[
'input'
+
index
].
focus
()
})
},
// 提价
时要调的接口
// 提价
submitForm
()
{
this
.
$confirm
(
'是否确认提交?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
...
...
@@ -116,6 +119,7 @@ export default {
}).
then
(
res
=>
{
this
.
$refs
.
form
.
validate
((
valid
)
=>
{
if
(
valid
)
{
// 提价时要调的接口
recycle
(
this
.
form
).
then
(
res
=>
{
if
(
res
.
code
===
200
)
{
this
.
$message
.
success
(
'操作成功'
)
...
...
@@ -128,6 +132,7 @@ export default {
})
})
},
// 重置表单
resetFrom
()
{
this
.
form
=
{
pn
:
''
,
...
...
@@ -141,6 +146,7 @@ export default {
ptype
:
''
,
pstatus
:
0
}
// 重置表单校验
this
.
$refs
.
form
.
clearValidate
()
}
}
...
...
src/views/sample/sampleType/index.vue
View file @
37bc7bab
...
...
@@ -169,6 +169,7 @@ export default {
}
,
total
:
0
,
loading
:
false
,
// 查询参数
queryParams
:
{
page
:
1
,
rows
:
10
,
...
...
@@ -176,7 +177,7 @@ export default {
dname
:
''
,
dno
:
''
}
,
statusOptions
:
{
}
,
// 表格绑定数据
basicinfoMationList
:
[]
}
}
,
...
...
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