Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
visualcloud
/
Vmatrix-client-taro
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Wiki
Members
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
f6dc1935
authored
Nov 24, 2019
by
hank
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
设备描述
parent
e1a6151a
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
2 deletions
+18
-2
src/conpoments/device_item/index.scss
+7
-1
src/conpoments/device_item/index.tsx
+10
-1
src/pages/home/device/device_detail/index.tsx
+1
-0
No files found.
src/conpoments/device_item/index.scss
View file @
f6dc1935
...
...
@@ -33,7 +33,13 @@
font-size
:
32px
;
color
:
#333
;
font-weight
:
bold
;
margin-bottom
:
57px
;
margin-bottom
:
20px
;
}
.device-item-info-equipmentDescribe
{
font-size
:
28px
;
color
:
#666
;
margin-bottom
:
10px
;
}
.device-item-info-state
{
...
...
src/conpoments/device_item/index.tsx
View file @
f6dc1935
...
...
@@ -22,7 +22,13 @@ interface DeviceItem {
class
DeviceItem
extends
Component
{
render
()
{
const
{
equipmentName
,
equipmentState
,
equipmentUrl
:
url
,
calendarId
}
=
this
.
props
const
{
equipmentName
,
equipmentDescribe
,
equipmentState
,
equipmentUrl
:
url
,
calendarId
}
=
this
.
props
return
(
<
View
className=
"device-item"
>
<
View
className=
"device-item-img-box"
>
...
...
@@ -30,6 +36,9 @@ class DeviceItem extends Component {
</
View
>
<
View
className=
"device-item-info"
>
<
Text
className=
"device-item-info-name"
>
{
equipmentName
}
</
Text
>
<
Text
className=
"device-item-info-equipmentDescribe"
>
{
equipmentDescribe
?
equipmentDescribe
:
'无'
}
</
Text
>
<
View
className=
{
equipmentState
===
'ONLINE'
...
...
src/pages/home/device/device_detail/index.tsx
View file @
f6dc1935
...
...
@@ -184,6 +184,7 @@ class DeviceDetail extends Component {
<
Text
className=
"item-text"
>
设备描述:
</
Text
>
<
Textarea
className=
"item-input"
maxlength=
{
50
}
value=
{
equipmentDescribe
}
placeholder=
"请输入设备描述"
onInput=
{
this
.
setDeviceDescribe
}
...
...
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