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
b72e3d42
Commit
b72e3d42
authored
Sep 22, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix:修复小问题
parent
677c608e
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
27 additions
and
2 deletions
+27
-2
xdc.sqlite
database/xdc.sqlite
+0
-0
DevicePerformanceTabel.vue
frontend/src/components/home/DevicePerformanceTabel.vue
+27
-2
No files found.
database/xdc.sqlite
View file @
b72e3d42
No preview for this file type
frontend/src/components/home/DevicePerformanceTabel.vue
View file @
b72e3d42
...
...
@@ -57,8 +57,10 @@ onMounted(() => {
}
}
axios
.
get
(
'/api/device_communication/performance/'
+
props
.
type
+
'/'
+
props
.
protocolName
)
axios
.
get
(
'/api/device_communication/performance/'
+
props
.
type
+
'/'
+
props
.
protocolName
+
'/'
)
.
then
((
res
)
=>
{
console
.
log
(
"table title"
,
res
.
data
);
tableTitles
.
value
=
res
.
data
for
(
let
key
of
res
.
data
)
{
tableData
.
value
[
0
][
key
]
=
''
...
...
@@ -69,6 +71,30 @@ onMounted(() => {
})
})
onBeforeUnmount
(()
=>
{
// 关闭 websocket
if
(
table_websocket
)
{
table_websocket
.
close
()
}
// 关闭模拟设备
if
(
openSimulateDevice
.
value
&&
props
.
type
===
'2'
)
{
let
body
=
{
protocol_name
:
props
.
protocolName
,
status
:
false
,
device_name
:
props
.
devName
}
request
.
post
(
'/api/change_simulate_device/'
,
body
)
.
then
((
res
)
=>
{
console
.
log
(
res
);
})
.
catch
((
err
)
=>
{
console
.
log
(
err
);
})
}
})
const
emits
=
defineEmits
([
'deleteTable'
])
const
del
=
()
=>
{
...
...
@@ -87,7 +113,6 @@ const changeSimulateDevice = () => {
status
:
openSimulateDevice
.
value
,
device_name
:
props
.
devName
}
console
.
log
(
body
);
request
.
post
(
'/api/change_simulate_device/'
,
body
)
.
then
((
res
)
=>
{
...
...
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