Merge branch 'master' of https://e.coding.net/ctcdevteam/safesite
This commit is contained in:
commit
cd300971eb
|
@ -9,39 +9,39 @@
|
|||
<tr>
|
||||
<td>任务名称</td>
|
||||
<td>
|
||||
<input id="checktask__checktaskname" class="easyui-textbox" name="checktaskname" style="width:480px" disabled>
|
||||
<input id="checktask__checktaskname" class="easyui-textbox" name="checktaskname" style="width:480px" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>检查人</td>
|
||||
<td>
|
||||
<input id="checkname__name" class="easyui-textbox" name="checktabtitle" style="width:480px" disabled/>
|
||||
<input id="checkname__name" class="easyui-textbox" name="checktabtitle" style="width:480px" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>检查地点</td>
|
||||
<td>
|
||||
<input id="checkplace" class="easyui-textbox" name="checkplace" style="width:480px" disabled/>
|
||||
<input id="checkplace" class="easyui-textbox" name="checkplace" style="width:480px" readonly/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>检查内容</td>
|
||||
<td>
|
||||
<input id="checkcontent" class="easyui-textbox" name="checkcontent" style="width:480px;height:100px" data-options="multiline:true" disabled>
|
||||
<input id="checkcontent" class="easyui-textbox" name="checkcontent" style="width:480px;height:100px" data-options="multiline:true" readonly>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>检查开始</td>
|
||||
<td>
|
||||
<input id="jctime" editable="false" name="jctime" class="easyui-datetimebox" style="width:480px"
|
||||
data-options="currentText:'今天',closeText:'关闭',showSeconds:false" required=true/>
|
||||
data-options="currentText:'今天',closeText:'关闭',showSeconds:false" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>检查结束</td>
|
||||
<td>
|
||||
<input id="jctime2" editable="false" name="jctime2" class="easyui-datetimebox" style="width:480px"
|
||||
data-options="currentText:'今天',closeText:'关闭',showSeconds:false" required=true/>
|
||||
data-options="currentText:'今天',closeText:'关闭',showSeconds:false" />
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
|
|
|
@ -4958,6 +4958,11 @@ def apisuggest(req):
|
|||
# 特别操作
|
||||
def apitool(req):
|
||||
a = req.GET.get('a')
|
||||
# if a == 'correctjobjctime':
|
||||
# for i in Checkjob.objects.all():
|
||||
# if i.jctime2 is None:
|
||||
# i.jctime2 = i.endtime
|
||||
# i.save()
|
||||
if a == 'correctgrouptype':
|
||||
for company in Partment.objects.filter(iscompany=1):
|
||||
users = User.objects.filter(usecomp = company)
|
||||
|
@ -8755,7 +8760,7 @@ def checkprojects(req):
|
|||
obj.content=data['content']
|
||||
obj.jctime = data['jctime'] if data.get('jctime', None) else obj.starttime
|
||||
obj.jctime2 = data['jctime2'] if data.get('jctime2', None) else obj.endtime
|
||||
obj.zgtime = data['zgtime']
|
||||
obj.zgtime = data['zgtime'] if data.get('zgtime', None) else None
|
||||
if yhtp:
|
||||
obj.yhtp=yhtp
|
||||
obj.zghtp=zghtp
|
||||
|
|
Loading…
Reference in New Issue