Commit f6dc1935 by hank

设备描述

parent e1a6151a
......@@ -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 {
......
......@@ -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'
......
......@@ -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}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment