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
f1fddc40
Commit
f1fddc40
authored
Aug 29, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat:更改参数时,页面发生变化
parent
cc0da931
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
1 deletions
+10
-1
DeviceInfoCard.vue
...nd/src/components/device_communication/DeviceInfoCard.vue
+10
-1
xdc.sqlite
xdc.sqlite
+0
-0
No files found.
frontend/src/components/device_communication/DeviceInfoCard.vue
View file @
f1fddc40
...
...
@@ -85,9 +85,10 @@ const props = defineProps<propType>();
const
ip
=
ref
<
string
>
()
const
port
=
ref
<
number
>
()
const
checked_performance_fields
=
ref
<
string
[]
>
([])
let
is_tcp
=
false
onMounted
(()
=>
{
let
is_tcp
=
props
.
deviceInfo
.
communicate_mode
.
toUpperCase
().
includes
(
'TCP'
.
toUpperCase
())
is_tcp
=
props
.
deviceInfo
.
communicate_mode
.
toUpperCase
().
includes
(
'TCP'
.
toUpperCase
())
ip
.
value
=
is_tcp
?
props
.
deviceInfo
.
tcp_ip
:
props
.
deviceInfo
.
udp_ip_src
port
.
value
=
is_tcp
?
props
.
deviceInfo
.
tcp_port
:
props
.
deviceInfo
.
udp_port_src
checked_performance_fields
.
value
=
JSON
.
parse
(
props
.
deviceInfo
.
performance_fields
!
)
...
...
@@ -154,6 +155,14 @@ const handleCheckedCitiesChange = (value: CheckboxValueType[]) => {
const
update_communication
=
()
=>
{
dialogFormVisible
.
value
=
false
props
.
deviceInfo
.
device_name
=
form
.
value
.
device_name
props
.
deviceInfo
.
device_name_chn
=
form
.
value
.
device_name_chn
props
.
deviceInfo
.
station_id
=
form
.
value
.
station_id
props
.
deviceInfo
.
protocol_name
=
form
.
value
.
protocol_name
props
.
deviceInfo
.
communicate_mode
=
form
.
value
.
communicate_mode
ip
.
value
=
form
.
value
.
tcp_ip
port
.
value
=
form
.
value
.
tcp_port
form
.
value
.
performance_fields
=
JSON
.
stringify
(
checked_performance_fields
.
value
)
axios
.
put
(
'api/device_communication/communicate/'
+
form
.
value
.
id
+
'/'
,
...
...
xdc.sqlite
View file @
f1fddc40
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