This commit is contained in:
commit
2f99ba4dc1
|
@ -71,6 +71,7 @@ def api(req):
|
|||
obj.publisdate=data['publisdate']
|
||||
obj.usecomp=Partment.objects.get(partid=companyid)
|
||||
obj.createuser=User.objects.get(userid=userid)
|
||||
obj.save()
|
||||
obj.qrcode = makeqr_(
|
||||
'https://safeyun.ctcshe.com/miniprogram/mgt?id='+str(obj.id))
|
||||
obj.save()
|
||||
|
|
|
@ -34,7 +34,7 @@ from groups import models as g_models
|
|||
|
||||
from . import forms
|
||||
from .daoru import (cal_area_risk_level, cal_riskact_level, drequipments,
|
||||
drquestions, drrisks, drtodotroubles, drusers, makeqr, drsafelist,
|
||||
drquestions, drrisks, drtodotroubles, drusers, makeqr, drsafelist, makeqr_,
|
||||
makeqr_area, makeqr_examtest, makeqr_riskact, makeqr_train, makeqr_safelist)
|
||||
from .export import (exportdoc, exportdoc2, exportsimplexlsx, exportxlsx,
|
||||
exportyjdoc)
|
||||
|
@ -8717,6 +8717,9 @@ def getresbilitydata(req):
|
|||
if 'jobpart' in data and data['jobpart']:
|
||||
obj.department=Partment.objects.get(partid=data['jobpart'])
|
||||
|
||||
obj.save()
|
||||
obj.qrcode = makeqr_(
|
||||
'https://safeyun.ctcshe.com/miniprogram/resbility?id='+str(obj.id))
|
||||
obj.save()
|
||||
return JsonResponse({"code":1})
|
||||
elif a=='listall':#责任列表
|
||||
|
@ -8812,6 +8815,8 @@ def getprodata(req):
|
|||
if data['filepath']:
|
||||
obj.filepath=data['filepath']
|
||||
obj.save()
|
||||
obj.qrcode = makeqr_(
|
||||
'https://safeyun.ctcshe.com/miniprogram/proce?id='+str(obj.id))
|
||||
return JsonResponse({"code":1})
|
||||
elif a=='listall':#责任列表
|
||||
startnum,endnum=fenye(req)
|
||||
|
|
Loading…
Reference in New Issue