Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-inventory
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 03f6f08b
authored
Dec 16, 2025
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
fix(allocation): 修复取消分配时数据删除不彻底的问题
使用filter替代splice确保完全移除指定id的数据项,并添加调试日志
1 parent
07f089f5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletions
src/views/allocation/add.vue
src/views/allocation/add.vue
View file @
03f6f08
...
...
@@ -528,7 +528,8 @@ export default {
// 取消
cancelAllocation
(
row
,
index
)
{
this
.
chooseDataList
.
splice
(
index
,
1
)
console
.
log
(
row
,
index
)
this
.
chooseDataList
=
this
.
chooseDataList
.
filter
(
item
=>
item
.
id
!=
row
.
id
)
},
handleAddConfirm
(
data
)
{
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment