guanlizhidu

This commit is contained in:
shilixia 2020-01-03 14:06:47 +08:00
parent c1fc602e26
commit 96d62ed0d1
2 changed files with 8 additions and 4 deletions

View File

@ -86,8 +86,9 @@ def api(req):
elif a == 'del':
id =req.GET.get('id')
userid = req.session['userid']
user = User.objects.get(userid=userid)
a = Mgtsystem.objects.get(id=id)
if a.usecomp==Partment.objects.get(partid=companyid):
if user.issuper == 1 or user==a.createuser:
a.deletemark=0
a.save()
return JsonResponse({"code":1})

View File

@ -178,7 +178,7 @@
trigger: 'axis'
},
legend: {
data: ['人员的反', '员工的位置', '个人防护装备', '工具和设备', '程序和标准', '人体工程学', '环境整洁']
data: ['人员的反', '员工的位置', '个人防护装备', '工具和设备', '程序和标准', '人体工程学', '环境整洁']
},
grid: {
left: '3%',
@ -197,11 +197,14 @@
},
xAxis: {
type: 'category',
name : '月份',
boundaryGap: false,
data: data.months
data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月','8月', '9月', '10月', '11月', '12月']
},
yAxis: {
type: 'value'
type: 'value',
name : '总数(次)'
},
series: [
{