| 
														
															@@ -183,6 +183,14 @@ class info_update_path(Load): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				,update_farm_id = Demeter.config['setting']['farmList'] 
														 | 
														
														 | 
														
															 				,update_farm_id = Demeter.config['setting']['farmList'] 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				,update_gateway_id = self.service('common').list('device_gateway') 
														 | 
														
														 | 
														
															 				,update_gateway_id = self.service('common').list('device_gateway') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			) 
														 | 
														
														 | 
														
															 			) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+		elif self.data['info']['hardware_type'] in (2,4): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			self.common( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				path = 'info' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				#,label = (u'设备名称', u'设备id', u'计算公式', u'实时计算公式') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				#,update = ('name-input-required','hardware_id-show-',u'exp-text--{n}为当前数据,只处理最新数据',u'out_exp-text--处理所有数据,比较消耗服务器资源') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				,label = (u'设备名称', u'设备id', u'计算公式') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+				,update = ('name-input-required','hardware_id-show-',u'exp-text--{n}为当前数据,只处理最新数据') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		else: 
														 | 
														
														 | 
														
															 		else: 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			self.common( 
														 | 
														
														 | 
														
															 			self.common( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 				path = 'info' 
														 | 
														
														 | 
														
															 				path = 'info' 
														 | 
													
												
											
										
											
												
													
														 | 
														
															@@ -329,8 +337,10 @@ class type_update_path(Load): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 	def get(self): 
														 | 
														
														 | 
														
															 	def get(self): 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		self.common( 
														 | 
														
														 | 
														
															 		self.common( 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 			path = 'type' 
														 | 
														
														 | 
														
															 			path = 'type' 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			,label = (u'类型名称', u'类型标识',u'类型单位',u'表达式') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-			,update = ('name-input-required','key-input-required','unit-input-',u'exp-text--请输入表达式,{n}代表当前数据') 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			#,label = (u'类型名称', u'类型标识',u'类型单位',u'表达式') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			#,update = ('name-input-required','key-input-required','unit-input-',u'exp-text--请输入表达式,{n}代表当前数据') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			,label = (u'类型名称', u'类型标识',u'类型单位') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+			,update = ('name-input-required','key-input-required','unit-input-') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		) 
														 | 
														
														 | 
														
															 		) 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		self.commonOne('device_type') 
														 | 
														
														 | 
														
															 		self.commonOne('device_type') 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 		self.commonView('update') 
														 | 
														
														 | 
														
															 		self.commonView('update') 
														 |