Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qr-consistency-vue3
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
刘怀志
qr-consistency-vue3
Commits
b4be2ae2
Commit
b4be2ae2
authored
Apr 28, 2025
by
祁正
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
通知单管理-删除
parent
11d95cfc
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
22 additions
and
4 deletions
+22
-4
list.js
src/api/notificationManagement/list.js
+8
-0
index.vue
...olPlan/controlPlanNotice/notificationManagement/index.vue
+14
-4
No files found.
src/api/notificationManagement/list.js
View file @
b4be2ae2
...
...
@@ -68,3 +68,11 @@ export function updateCertificationManager(data) {
data
:
data
})
}
// 删除
export
function
deleteNotificationManagementById
(
id
)
{
return
request
({
url
:
'/control/notificationManagement/deleteNotificationManagementById/'
+
id
,
method
:
'delete'
,
})
}
src/views/controlPlan/controlPlanNotice/notificationManagement/index.vue
View file @
b4be2ae2
...
...
@@ -416,7 +416,8 @@ import {
getUnitList
,
insert
,
list
,
updateCertificationManager
updateCertificationManager
,
deleteNotificationManagementById
}
from
"@/api/notificationManagement/list.js"
import
{
ref
}
from
"vue"
;
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
...
...
@@ -433,6 +434,8 @@ const { vehicle_model_series_icar } = proxy.useDict('vehicle_model_series_icar')
const
{
vehicle_model_series
}
=
proxy
.
useDict
(
'vehicle_model_series'
)
const
tableList
=
ref
([])
const
Prompt
=
ref
(
""
)
//删除的时候id
const
delId
=
ref
(
''
)
//车型代码
const
modelCodeList
=
ref
([])
const
dialogVisible
=
ref
(
false
)
...
...
@@ -546,8 +549,15 @@ const beforeClose = (done) => {
//提示框确认删除操作
function
handleDelete
(){
//删除操作
console
.
log
(
"删除"
)
undoDialogVisible
.
value
=
false
console
.
log
(
"删除"
,
delId
.
value
)
deleteNotificationManagementById
(
delId
.
value
).
then
(
res
=>
{
console
.
log
(
res
)
if
(
res
.
code
===
200
){
ElMessage
.
success
(
"删除成功"
)
undoDialogVisible
.
value
=
false
getList
()
}
})
}
function
hideDeleteDialog
(){
undoDialogVisible
.
value
=
false
...
...
@@ -567,7 +577,7 @@ function addPerson(row){
//删除
function
delNotification
(
row
){
Prompt
.
value
=
"确定删除该通知单吗?"
delId
.
value
=
row
.
id
undoDialogVisible
.
value
=
true
}
...
...
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