|
@@ -42,5 +42,12 @@ class index_path(Load):
|
|
self.data['msg'] = len(self.service('common').list('msg', search={'status':False, "farm_id":self.data['setting']['farm']}, limit='0,100'))
|
|
self.data['msg'] = len(self.service('common').list('msg', search={'status':False, "farm_id":self.data['setting']['farm']}, limit='0,100'))
|
|
if self.data['msg'] > 99:
|
|
if self.data['msg'] > 99:
|
|
self.data['msg'] = str(99) + '+'
|
|
self.data['msg'] = str(99) + '+'
|
|
|
|
+
|
|
|
|
+ self.data['pic'] = []
|
|
|
|
+ pic = self.service('common').list('device_info', state=True, search={'hardware_type':6, 'farm_id':self.data['info']['farm_id']})
|
|
|
|
+ if pic:
|
|
|
|
+ for key, value in enumerate(pic):
|
|
|
|
+ pic[key]['cdates'] = Demeter.date(value['cdate'])
|
|
|
|
+ self.data['pic'] = pic
|
|
|
|
|
|
self.out('yes', self.data)
|
|
self.out('yes', self.data)
|