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
4201aedc
Commit
4201aedc
authored
Sep 04, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mod:删除不需要的东西
parent
975522b1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
5 deletions
+1
-5
DeviceCommunication.vue
frontend/src/views/DeviceCommunication.vue
+1
-5
No files found.
frontend/src/views/DeviceCommunication.vue
View file @
4201aedc
<
template
>
<
template
>
<el-tabs
v-model=
"activeName"
type=
"card"
class=
"demo-tabs"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
type=
"card"
class=
"demo-tabs"
>
<el-tab-pane
label=
"device"
name=
"device"
>
<el-tab-pane
label=
"device"
name=
"device"
>
<communication-tab
tab-type=
"communicate"
/>
<communication-tab
tab-type=
"communicate"
/>
</el-tab-pane>
</el-tab-pane>
...
@@ -12,16 +12,12 @@
...
@@ -12,16 +12,12 @@
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
axios
from
'axios'
;
import
axios
from
'axios'
;
import
{
onMounted
,
ref
}
from
'vue'
import
{
onMounted
,
ref
}
from
'vue'
import
type
{
TabsPaneContext
}
from
'element-plus'
import
{
useProtocolNamesStore
}
from
'@/stores/protocolNames'
import
{
useProtocolNamesStore
}
from
'@/stores/protocolNames'
import
CommunicationTab
from
"@/components/device_communication/CommunicationTab"
;
import
CommunicationTab
from
"@/components/device_communication/CommunicationTab"
;
// tab 相关
// tab 相关
const
activeName
=
ref
<
string
>
(
'simulate_device'
)
const
activeName
=
ref
<
string
>
(
'simulate_device'
)
const
handleClick
=
(
tab
:
TabsPaneContext
,
event
:
Event
)
=>
{
console
.
log
(
tab
,
event
)
}
onMounted
(()
=>
{
onMounted
(()
=>
{
axios
.
get
(
'/api/device_communication/'
)
axios
.
get
(
'/api/device_communication/'
)
...
...
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