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
feabc2c6
Commit
feabc2c6
authored
Aug 03, 2023
by
刘宇扬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
入库
parent
f35a19ca
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
1 deletion
+25
-1
income.vue
src/views/equipment/income.vue
+25
-1
No files found.
src/views/equipment/income.vue
View file @
feabc2c6
...
@@ -30,7 +30,7 @@
...
@@ -30,7 +30,7 @@
<div
style=
"width: 91%; margin-left: 80px; padding-left: 8.6%;"
>
<div
style=
"width: 91%; margin-left: 80px; padding-left: 8.6%;"
>
<el-table
border
:data=
"tableData"
:gutter=
"40"
>
<el-table
border
:data=
"tableData"
:gutter=
"40"
>
<el-table-column
type=
"index"
label=
"序号"
width=
"50px"
/>
<el-table-column
type=
"index"
label=
"序号"
width=
"50px"
/>
<el-table-column
label=
"pn"
prop=
"businessId"
>
<el-table-column
label=
"pn"
prop=
"businessId"
>
<template
slot-scope=
"scope"
>
<template
slot-scope=
"scope"
>
{{
scope
.
row
.
pn
||
'-'
}}
{{
scope
.
row
.
pn
||
'-'
}}
</
template
>
</
template
>
...
@@ -135,6 +135,19 @@ export default {
...
@@ -135,6 +135,19 @@ export default {
},
},
methods
:
{
methods
:
{
handleDelete
(
row
)
{
handleDelete
(
row
)
{
const
{
pn
,
lot
}
=
this
.
form
// this.form = {
// pn: '',
// lot: '',
// plocation: '',
// phd: '',
// flag: 1,
// ptype: 1,
// pstatus: 0
// }
// 检查选中行是否已存在于selectedRows数组中
// 检查选中行是否已存在于selectedRows数组中
const
index
=
this
.
selectedRows
.
findIndex
(
selectedRow
=>
selectedRow
===
row
)
const
index
=
this
.
selectedRows
.
findIndex
(
selectedRow
=>
selectedRow
===
row
)
if
(
index
!==
-
1
)
{
if
(
index
!==
-
1
)
{
...
@@ -148,6 +161,17 @@ export default {
...
@@ -148,6 +161,17 @@ export default {
this
.
tableData
=
this
.
tableData
.
filter
(
row
=>
!
this
.
selectedRows
.
includes
(
row
))
this
.
tableData
=
this
.
tableData
.
filter
(
row
=>
!
this
.
selectedRows
.
includes
(
row
))
// 清空selectedRows数组
// 清空selectedRows数组
this
.
selectedRows
=
[]
this
.
selectedRows
=
[]
if
(
pn
!==
this
.
form
.
pn
&&
lot
!==
this
.
form
.
lot
)
{
this
.
form
=
{
pn
:
''
,
lot
:
''
,
plocation
:
''
,
phd
:
''
,
flag
:
1
,
ptype
:
1
,
pstatus
:
0
}
}
},
},
handleUpdate
(
row
)
{
handleUpdate
(
row
)
{
this
.
form
.
pn
=
row
.
pn
this
.
form
.
pn
=
row
.
pn
...
...
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