Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
V
vue_django_test
Overview
Overview
Details
Activity
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
周田
vue_django_test
Commits
63b8b6f9
Commit
63b8b6f9
authored
Aug 31, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:删除提示框
parent
e8e7f4c8
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
DeviceInfoCard.vue
...nd/src/components/device_communication/DeviceInfoCard.vue
+5
-1
xdc.sqlite
xdc.sqlite
+0
-0
No files found.
frontend/src/components/device_communication/DeviceInfoCard.vue
View file @
63b8b6f9
...
...
@@ -38,7 +38,7 @@
<
script
setup
lang=
"ts"
>
import
{
onMounted
,
ref
,
watch
}
from
'vue'
;
import
axios
from
'axios'
;
import
{
ElMessage
}
from
'element-plus'
;
import
{
ElMessage
,
ElMessageBox
}
from
'element-plus'
;
import
type
{
DeviceInfo
}
from
'@/components/device_communication/types'
;
import
EditDialog
from
'./EditDialog.vue'
;
...
...
@@ -66,6 +66,8 @@ watch(() => props.deviceInfo, () => {
const
emit
=
defineEmits
([
'deleteDeviceInfo'
])
const
del
=
()
=>
{
ElMessageBox
.
confirm
(
"确认删除吗?"
,
"TIP"
)
.
then
(()
=>
{
let
station_id
=
deviceInfo
.
value
.
station_id
let
id
=
deviceInfo
.
value
.
id
axios
.
delete
(
'/api/device_communication/communicate/'
+
id
+
'/'
)
...
...
@@ -79,6 +81,8 @@ const del = () => {
.
catch
((
err
)
=>
{
console
.
log
(
err
);
})
})
.
catch
(()
=>
{});
}
const
changeDeviceInfo
=
(
device_info
:
DeviceInfo
)
=>
{
...
...
xdc.sqlite
View file @
63b8b6f9
No preview for this file type
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