Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Hooke
/
temple_material_request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
hookehuyr
2024-07-28 00:56:21 +0800
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
50950da4b120c10983728114c347b26992eb645a
50950da4
1 parent
df194da9
fix
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
src/views/material_pre_request.vue
src/views/material_pre_request.vue
View file @
50950da
<!--
* @Date: 2024-07-23 12:53:15
* @LastEditors: hookehuyr hookehuyr@gmail.com
* @LastEditTime: 2024-07-28 00:5
3:21
* @LastEditTime: 2024-07-28 00:5
5:37
* @FilePath: /temple_material_request/src/views/material_pre_request.vue
* @Description: 待申领物资页面
-->
...
...
@@ -252,13 +252,13 @@ const onClickDel = () => { // 点击删除回调
.then(async () => {
const { code, data } = await delCartAPI({ activity_id, good_ids: del_ids });
if (code) {
// 删除del_ids
list.value = list.value.filter(item => !del_ids.includes(item.good_id));
sum_num.value = list.value.length;
if (!list.value.length) {
// 还原列表显示
onClickCancel();
}
// 删除del_ids
list.value = list.value.filter(item => !del_ids.includes(item.good_id));
sum_num.value = list.value.length;
//
showToast('删除成功');
}
...
...
Please
register
or
login
to post a comment