全体员工 隐藏
This commit is contained in:
parent
176c8447bc
commit
88fda3d631
|
@ -60,9 +60,9 @@
|
|||
<input id="duration" class="easyui-numberbox" name="duration" style="width:480px" data-options="min:0,precision:1,label:'培训时长',prompt:'小时'"
|
||||
required=true>
|
||||
</div>
|
||||
<div style="margin-bottom:5px">
|
||||
<!-- <div style="margin-bottom:5px">
|
||||
<input id="jsqd" class="easyui-checkbox" name="jsqd" value=1 label="结束签到:"><span style="color:blue"> 开启后可精确员工培训时间,开始签到默认开启</span>
|
||||
</div>
|
||||
</div> -->
|
||||
<div id='knownumdiv' style="margin-bottom:5px;display:none">
|
||||
<input id="knownum" class="easyui-numberbox" name="knownum" style="width:480px" data-options="label:'掌握人数',required:true">
|
||||
</div>
|
||||
|
|
|
@ -114,7 +114,7 @@
|
|||
}
|
||||
});
|
||||
$('#ddgrouptable').datagrid({
|
||||
url: 'grouphandle?a=list',
|
||||
url: 'grouphandle?a=list2',
|
||||
rownumbers: true,
|
||||
singleSelect: true,
|
||||
striped: true,
|
||||
|
|
|
@ -83,7 +83,7 @@
|
|||
return 'background-color:yellow;';
|
||||
}
|
||||
else {
|
||||
return 'background-color:green;';
|
||||
return 'background-color:green;color:white';
|
||||
}
|
||||
}, formatter: function (value, row, index) {
|
||||
if (value == 0) {
|
||||
|
|
|
@ -37,7 +37,7 @@
|
|||
</div>
|
||||
<script>
|
||||
$('#grouptable').datagrid({
|
||||
url: 'grouphandle?a=list',
|
||||
url: 'grouphandle?a=list2',
|
||||
rownumbers: true,
|
||||
singleSelect: true,
|
||||
striped: true,
|
||||
|
|
|
@ -1863,7 +1863,7 @@ def grouphandle(req):
|
|||
userid = req.session['userid']
|
||||
companyid = getcompany(userid)
|
||||
a = Group.objects.filter(usecomp__partid=companyid).exclude(
|
||||
grouptype=0).exclude(grouptype=3).values('groupid', 'groupname', 'grouptype')
|
||||
grouptype=0).exclude(grouptype=3).order_by('groupid').values('groupid', 'groupname', 'grouptype')
|
||||
total = a.count()
|
||||
return HttpResponse(transjson(total, a), content_type="application/json")
|
||||
elif req.GET.get('a') == 'combobox':
|
||||
|
@ -6356,7 +6356,7 @@ def apiexamtest(req):
|
|||
a['notinTime'] = 1
|
||||
if 'endtime' in a and a['endtime'] < datetime.now():
|
||||
a['notinTime'] = 1
|
||||
objs = ExamTestDetail.objects.filter(examtest__id=id).order_by('-score','-took').values(
|
||||
objs = ExamTestDetail.objects.filter(examtest__id=id).order_by('-score','took').values(
|
||||
'id', 'user__name', 'user__ubelongpart__partname', 'took', 'score', 'remainnum', 'passcode','starttime', 'testnum')
|
||||
a['cjrydetail'] = list(objs)
|
||||
return HttpResponse(json.dumps(a, cls=MyEncoder), content_type="application/json")
|
||||
|
|
Loading…
Reference in New Issue