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
6aa86105
Commit
6aa86105
authored
Sep 19, 2023
by
周田
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
docs:将某些字段修改为中文
parent
42dc3cde
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
16 additions
and
16 deletions
+16
-16
CommunicationTab.vue
.../src/components/device_communication/CommunicationTab.vue
+2
-2
DeviceInfoCard.vue
...nd/src/components/device_communication/DeviceInfoCard.vue
+2
-2
EditDialog.vue
frontend/src/components/device_communication/EditDialog.vue
+2
-2
Chat.vue
frontend/src/components/home/Chat.vue
+8
-8
DeviceCommunication.vue
frontend/src/views/DeviceCommunication.vue
+2
-2
No files found.
frontend/src/components/device_communication/CommunicationTab.vue
View file @
6aa86105
<
template
>
<div
class=
"text-right mb-5"
>
<el-button
type=
"primary"
@
click=
"applyComunications"
>
应用
</el-button>
<el-button
type=
"primary"
@
click=
"copy"
>
copy to ini
</el-button>
<el-button
type=
"primary"
@
click=
"addDevice"
>
Add device
</el-button>
<el-button
type=
"primary"
@
click=
"copy"
>
复制配置
</el-button>
<el-button
type=
"primary"
@
click=
"addDevice"
>
添加通信参数
</el-button>
</div>
<div
class=
"demo-collapse"
>
<el-collapse>
...
...
frontend/src/components/device_communication/DeviceInfoCard.vue
View file @
6aa86105
<
template
>
<el-descriptions
:title=
"deviceInfo.device_name"
:column=
1
>
<template
#
extra
>
<el-button
type=
"danger"
size=
"small"
@
click=
"del"
>
delete
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"dialogFormVisible = true"
>
Edit
</el-button>
<el-button
type=
"danger"
size=
"small"
@
click=
"del"
>
删除
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"dialogFormVisible = true"
>
编辑
</el-button>
</
template
>
<el-descriptions-item
label=
"协议名"
>
{{ deviceInfo.protocol_name }}
</el-descriptions-item>
<el-descriptions-item
label=
"通信参数"
:column=
3
>
...
...
frontend/src/components/device_communication/EditDialog.vue
View file @
6aa86105
...
...
@@ -62,9 +62,9 @@
</el-form>
<template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
@
click=
"dialogFormVisible = false"
>
Cancel
</el-button>
<el-button
@
click=
"dialogFormVisible = false"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"submit_form"
>
Confirm
确定
</el-button>
</span>
</
template
>
...
...
frontend/src/components/home/Chat.vue
View file @
6aa86105
...
...
@@ -10,7 +10,7 @@
</el-scrollbar>
<div>
<el-button
class=
"ml-4"
@
click=
"showCmdDialog"
>
Send Cmd
</el-button>
<el-button
class=
"ml-4"
@
click=
"showCmdDialog"
>
发送指令
</el-button>
</div>
</div>
...
...
@@ -28,7 +28,7 @@
:type=
"activeName==='device'?'1': '2'"
@
delete-table=
"deleteDeviceInfo(param)"
/>
</el-scrollbar>
<el-button
@
click=
"dialogVisible = true"
>
Add table
</el-button>
<el-button
@
click=
"dialogVisible = true"
>
添加监控设备表
</el-button>
</el-tab-pane>
<el-tab-pane
label=
"虚拟设备"
name=
"simulateDevice"
>
<el-scrollbar
style=
"height: 30rem;"
class=
"mb-10"
always
>
...
...
@@ -42,7 +42,7 @@
:type=
"activeName==='device'?'1': '2'"
@
delete-table=
"deleteDeviceInfo(param)"
/>
</el-scrollbar>
<el-button
@
click=
"dialogVisible = true"
>
Add table
</el-button>
<el-button
@
click=
"dialogVisible = true"
>
添加监控设备表
</el-button>
</el-tab-pane>
</el-tabs>
</div>
...
...
@@ -54,15 +54,15 @@
</el-select>
<template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
@
click=
"dialogVisible = false"
>
Cancel
</el-button>
<el-button
@
click=
"dialogVisible = false"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"addDeviceTable"
>
Confirm
确定
</el-button>
</span>
</
template
>
</el-dialog>
<el-dialog
v-model=
"dialogCmdVisible"
class=
"w-150"
title=
"
Send Cmd"
>
<el-dialog
v-model=
"dialogCmdVisible"
class=
"w-150"
title=
"
发送指令"
draggable
>
<el-form
:model=
"formData"
label-width=
"120px"
>
<el-form-item
label=
"设备名称"
>
<el-select
v-model=
"formData.deviceName"
w-100
@
change=
"showCmds"
>
...
...
@@ -86,9 +86,9 @@
</el-form>
<
template
#
footer
>
<span
class=
"dialog-footer"
>
<el-button
@
click=
"dialogCmdVisible = false"
>
Cancel
</el-button>
<el-button
@
click=
"dialogCmdVisible = false"
>
取消
</el-button>
<el-button
type=
"primary"
@
click=
"sendCmd"
>
Confirm
确定
</el-button>
</span>
</
template
>
...
...
frontend/src/views/DeviceCommunication.vue
View file @
6aa86105
<
template
>
<el-tabs
v-model=
"activeName"
type=
"border-card"
class=
"demo-tabs"
>
<el-tab-pane
label=
"
device
"
name=
"device"
>
<el-tab-pane
label=
"
设备通信参数
"
name=
"device"
>
<div
class=
"contain"
>
<communication-tab
tab-type=
"communicate"
/>
</div>
</el-tab-pane>
<el-tab-pane
label=
"
simulate_device
"
name=
"simulate_device"
>
<el-tab-pane
label=
"
虚拟设备通信参数
"
name=
"simulate_device"
>
<div
class=
"contain"
>
<communication-tab
tab-type=
"simulate_communicate"
/>
</div>
...
...
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