Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
cust_web
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
张伯涛
cust_web
Commits
f9c7e3ce
Commit
f9c7e3ce
authored
Mar 07, 2025
by
罗林杰
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改报名删除问题
parent
8397249f
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
1 deletion
+41
-1
application.js
src/api/contentManagement/application.js
+12
-0
index.vue
src/views/contentManagement/activity/index.vue
+29
-1
No files found.
src/api/contentManagement/application.js
View file @
f9c7e3ce
...
@@ -36,3 +36,15 @@ export function exportApplication(query) {
...
@@ -36,3 +36,15 @@ export function exportApplication(query) {
responseType
:
'blob'
responseType
:
'blob'
})
})
}
}
// 5. 删除报名表
export
function
delApplication
(
data
)
{
return
request
({
url
:
'/cmsApplication/delete/'
+
data
.
businessId
,
method
:
'delete'
,
data
:
JSON
.
stringify
(
data
),
// 确保数据被正确序列化为 JSON 字符串
headers
:
{
'Content-Type'
:
'application/json'
// 设置正确的 Content-Type
}
})
}
src/views/contentManagement/activity/index.vue
View file @
f9c7e3ce
...
@@ -270,6 +270,13 @@
...
@@ -270,6 +270,13 @@
:size=
"commonField.size"
:size=
"commonField.size"
@
click=
"handleViewGridData(scope.row)"
@
click=
"handleViewGridData(scope.row)"
>
查看
</el-button>
>
查看
</el-button>
<el-button
v-has-permi=
"['cms:activity:update']"
:class=
"commonField.updateClass"
:type=
"commonField.typeParent"
:size=
"commonField.size"
@
click=
"handleDelete(scope.row)"
>
删除
</el-button>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
</el-table>
</el-table>
...
@@ -294,7 +301,7 @@ import {
...
@@ -294,7 +301,7 @@ import {
}
from
'@/api/contentManagement/activity'
}
from
'@/api/contentManagement/activity'
import
{
parseTime
}
from
'@/utils'
import
{
parseTime
}
from
'@/utils'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
getDataCache
,
setDataCache
}
from
'@/assets/js/filterData'
import
{
exportApplication
,
listCmsApplication
}
from
'@/api/contentManagement/application'
import
{
delApplication
,
exportApplication
,
listCmsApplication
}
from
'@/api/contentManagement/application'
import
{
yesOrNo
}
from
'@/utils/allPageData'
import
{
yesOrNo
}
from
'@/utils/allPageData'
import
{
getOssUrl
}
from
'@/api/contentManagement/opmArticle'
import
{
getOssUrl
}
from
'@/api/contentManagement/opmArticle'
import
{
getPrivateInfo
}
from
'@/api/contentManagement/memInfo'
import
{
getPrivateInfo
}
from
'@/api/contentManagement/memInfo'
...
@@ -655,6 +662,27 @@ export default {
...
@@ -655,6 +662,27 @@ export default {
}
}
})
})
},
},
// 删除报名人
handleDelete
(
row
)
{
this
.
$confirm
(
'是否确认删除?'
,
'提示'
,
{
confirmButtonText
:
'确定'
,
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(
function
()
{
const
form
=
{
businessId
:
row
.
businessId
,
activityId
:
row
.
activityId
,
orderId
:
row
.
orderId
}
return
delApplication
(
form
)
}).
then
(()
=>
{
this
.
$message
({
message
:
'删除成功'
,
type
:
'success'
})
this
.
loadData1
()
})
},
// 封面图片预览
// 封面图片预览
justEnter
(
event
)
{
justEnter
(
event
)
{
// 鼠标进入时的操作
// 鼠标进入时的操作
...
...
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