equipment
This commit is contained in:
parent
3313ae33fa
commit
a609c0e554
|
@ -6892,7 +6892,7 @@ def apiinspectitem(req):
|
||||||
elif a == 'handle':
|
elif a == 'handle':
|
||||||
data = json.loads(req.body.decode('utf-8'))
|
data = json.loads(req.body.decode('utf-8'))
|
||||||
obj = InspectItem.objects.get(id=data['id'])
|
obj = InspectItem.objects.get(id=data['id'])
|
||||||
obj.desc2 = data['desc2']
|
obj.desc2 = data['desc2'] if ('desc2' in data and data['desc2']) else None
|
||||||
obj.img2 = data['img2'] if ('img2' in data and data['img2']) else None
|
obj.img2 = data['img2'] if ('img2' in data and data['img2']) else None
|
||||||
obj.handletime = datetime.now()
|
obj.handletime = datetime.now()
|
||||||
obj.state = '异常已处理'
|
obj.state = '异常已处理'
|
||||||
|
|
Loading…
Reference in New Issue