Commit f6dc1935 by hank

设备描述

parent e1a6151a
...@@ -33,7 +33,13 @@ ...@@ -33,7 +33,13 @@
font-size: 32px; font-size: 32px;
color: #333; color: #333;
font-weight: bold; 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 { .device-item-info-state {
......
...@@ -22,7 +22,13 @@ interface DeviceItem { ...@@ -22,7 +22,13 @@ interface DeviceItem {
class DeviceItem extends Component { class DeviceItem extends Component {
render() { render() {
const { equipmentName, equipmentState, equipmentUrl: url, calendarId } = this.props const {
equipmentName,
equipmentDescribe,
equipmentState,
equipmentUrl: url,
calendarId
} = this.props
return ( return (
<View className="device-item"> <View className="device-item">
<View className="device-item-img-box"> <View className="device-item-img-box">
...@@ -30,6 +36,9 @@ class DeviceItem extends Component { ...@@ -30,6 +36,9 @@ class DeviceItem extends Component {
</View> </View>
<View className="device-item-info"> <View className="device-item-info">
<Text className="device-item-info-name">{equipmentName}</Text> <Text className="device-item-info-name">{equipmentName}</Text>
<Text className="device-item-info-equipmentDescribe">
{equipmentDescribe ? equipmentDescribe : '无'}
</Text>
<View <View
className={ className={
equipmentState === 'ONLINE' equipmentState === 'ONLINE'
......
...@@ -184,6 +184,7 @@ class DeviceDetail extends Component { ...@@ -184,6 +184,7 @@ class DeviceDetail extends Component {
<Text className="item-text">设备描述:</Text> <Text className="item-text">设备描述:</Text>
<Textarea <Textarea
className="item-input" className="item-input"
maxlength={50}
value={equipmentDescribe} value={equipmentDescribe}
placeholder="请输入设备描述" placeholder="请输入设备描述"
onInput={this.setDeviceDescribe} 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