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
18636750
Commit
18636750
authored
Sep 07, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mod
parent
4ea33bdd
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
0 additions
and
13 deletions
+0
-13
Chat.vue
frontend/src/components/home/Chat.vue
+0
-11
DevicePerformanceTabel.vue
frontend/src/components/home/DevicePerformanceTabel.vue
+0
-2
No files found.
frontend/src/components/home/Chat.vue
View file @
18636750
...
@@ -294,14 +294,6 @@ const sendCmd = () => {
...
@@ -294,14 +294,6 @@ const sendCmd = () => {
// 发送命令
// 发送命令
const
obj
=
deviceNameMap
.
get
(
formData
.
deviceName
)
const
obj
=
deviceNameMap
.
get
(
formData
.
deviceName
)
console
.
log
(
{
station_id
:
obj
.
sta_id
,
device_id
:
obj
.
dev_id
,
cmd_name
:
formData
.
cmdName
,
fields
:
formData
.
fields
})
axios
.
post
(
'/api/mqtt/publish/'
,
axios
.
post
(
'/api/mqtt/publish/'
,
{
{
station_id
:
obj
.
sta_id
,
station_id
:
obj
.
sta_id
,
...
@@ -309,9 +301,6 @@ const sendCmd = () => {
...
@@ -309,9 +301,6 @@ const sendCmd = () => {
cmd_name
:
formData
.
cmdName
,
cmd_name
:
formData
.
cmdName
,
fields
:
formData
.
fields
fields
:
formData
.
fields
})
})
.
then
((
res
)
=>
{
console
.
log
(
res
);
})
.
catch
((
err
)
=>
{
.
catch
((
err
)
=>
{
console
.
log
(
err
);
console
.
log
(
err
);
})
})
...
...
frontend/src/components/home/DevicePerformanceTabel.vue
View file @
18636750
...
@@ -43,8 +43,6 @@ onMounted(() => {
...
@@ -43,8 +43,6 @@ onMounted(() => {
// console.log(e.data);
// console.log(e.data);
let
data
=
JSON
.
parse
(
e
.
data
).
message
let
data
=
JSON
.
parse
(
e
.
data
).
message
for
(
const
[
key
,
value
]
of
Object
.
entries
(
data
[
0
]
as
Record
<
string
,
string
>
))
{
for
(
const
[
key
,
value
]
of
Object
.
entries
(
data
[
0
]
as
Record
<
string
,
string
>
))
{
console
.
log
(
key
,
value
);
if
(
tableTitles
.
value
.
indexOf
(
key
)
!==
-
1
)
{
if
(
tableTitles
.
value
.
indexOf
(
key
)
!==
-
1
)
{
tableData
.
value
[
0
][
key
]
=
value
tableData
.
value
[
0
][
key
]
=
value
}
}
...
...
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