异常记录可指定提交人
This commit is contained in:
parent
cd19746949
commit
cca66d26c3
|
@ -22,7 +22,8 @@
|
|||
<script type="text/javascript" src="/static/safesite/mystatic/layer/layer.js"></script>
|
||||
<script type="text/javascript" src="/static/safesite/mystatic/js/datagrid-export.js"></script>
|
||||
<script type="text/javascript" src="/static/safesite/mystatic/js/jquery-qrcode-0.17.0.min.js"></script>
|
||||
<script type="text/javascript" src="/static/safesite/mystatic/js/ckeditor.js"></script>
|
||||
<!-- <script type="text/javascript" src="/static/safesite/mystatic/js/ckeditor.js"></script> -->
|
||||
<!-- <script src="https://cdn.ckeditor.com/ckeditor5/27.1.0/classic/ckeditor.js"></script> -->
|
||||
<script type="text/javascript" src="/static/safesite/mystatic/openlayer/ol.js"></script>
|
||||
<script type="text/javascript" src="/static/safesite/mystatic/js/jquery.form.min.js"></script>
|
||||
<script type="text/javascript" src="/static/safesite/mystatic/js/jquery.cookie.js"></script>
|
||||
|
|
|
@ -39,11 +39,16 @@
|
|||
<ol id="fileol"></ol>
|
||||
</div>
|
||||
<div style="margin-top:10px;margin-bottom:5px">
|
||||
<textarea id="ckeditor" ></textarea>
|
||||
<textarea id="ckeditor" style="height: 600;"></textarea>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<style>
|
||||
.ck-editor__editable { min-height: 600px; }
|
||||
</style>
|
||||
<script src="https://cdn.ckeditor.com/ckeditor5/27.1.0/classic/ckeditor.js"></script>
|
||||
<!-- <script type="text/javascript" src="/static/safesite/mystatic/js/ckeditor.js"></script> -->
|
||||
<script>
|
||||
$('#isgg').switchbutton({
|
||||
checked: true,
|
||||
|
@ -58,7 +63,12 @@
|
|||
}
|
||||
}
|
||||
})
|
||||
CKEDITOR.replace( 'ckeditor',{'height':600});
|
||||
// CKEDITOR.replace( 'ckeditor',{'height':600});
|
||||
var editor = ClassicEditor
|
||||
.create( document.querySelector( '#ckeditor' ) )
|
||||
.catch( error => {
|
||||
console.error( error );
|
||||
} );
|
||||
function tzsubmitForm() {
|
||||
var tzfile = new Array();
|
||||
$(".filea").each(function () {
|
||||
|
@ -71,7 +81,7 @@
|
|||
ffqd.push($(this).val());
|
||||
});
|
||||
tzdata['ffqd']=ffqd
|
||||
tzdata['content']=CKEDITOR.instances.ckeditor.getData();
|
||||
tzdata['content']= editor.getData();
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'api/notice?a=add',
|
||||
|
|
|
@ -7209,6 +7209,9 @@ def apiinspectitem(req):
|
|||
if 'state' in i:
|
||||
obj.state = i['state']
|
||||
if i['state'] == '异常待处理':
|
||||
if 'todouser' in data and data['todouser']:
|
||||
obj.todouser = User.objects.get(userid=data['todouser'])
|
||||
else:
|
||||
obj.todouser = getpgr2(userid, User.objects.get(userid=userid).ubelongpart)
|
||||
obj.checkitem = EquipmentCheckItem.objects.get(pk=i['id'])
|
||||
obj.inspect = Inspect.objects.get(pk=data['inspect'])
|
||||
|
|
Loading…
Reference in New Issue