|
@@ -20,17 +20,17 @@
|
|
|
return false;
|
|
|
}
|
|
|
$(document).ready(function() {
|
|
|
- if("${workLog.logType}" == "1"){
|
|
|
- $("#logType1").iCheck('check')
|
|
|
- }else if("${workLog.logType}" == "2"){
|
|
|
- $("#logType2").iCheck('check')
|
|
|
- }else if("${workLog.logType}" == "3"){
|
|
|
- $("#logType3").iCheck('check')
|
|
|
- }else if("${workLog.logType}" == "4"){
|
|
|
- $("#logType5").iCheck('check')
|
|
|
- }else if("${workLog.logType}" == "5"){
|
|
|
- $("#logType5").iCheck('check')
|
|
|
- }
|
|
|
+ <%--if("${workLog.logType}" == "1"){--%>
|
|
|
+ <%--$("#logType1").iCheck('check')--%>
|
|
|
+ <%--}else if("${workLog.logType}" == "2"){--%>
|
|
|
+ <%--$("#logType2").iCheck('check')--%>
|
|
|
+ <%--}else if("${workLog.logType}" == "3"){--%>
|
|
|
+ <%--$("#logType3").iCheck('check')--%>
|
|
|
+ <%--}else if("${workLog.logType}" == "4"){--%>
|
|
|
+ <%--$("#logType5").iCheck('check')--%>
|
|
|
+ <%--}else if("${workLog.logType}" == "5"){--%>
|
|
|
+ <%--$("#logType5").iCheck('check')--%>
|
|
|
+ <%--}--%>
|
|
|
|
|
|
// if($("#startDate").val()==null || $("#startDate").val()==''){
|
|
|
// $("#startDate").val(getNowFormatDate());
|
|
@@ -56,62 +56,33 @@
|
|
|
// lang: 'zh-CN',
|
|
|
// height:'300px'
|
|
|
// });
|
|
|
- getCurrentDocumentHei();
|
|
|
+ // getCurrentDocumentHei();
|
|
|
+
|
|
|
+ // laydate.render({
|
|
|
+ // elem: '#startDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
+ // format: 'yyyy-MM-dd',
|
|
|
+ // type : 'date'
|
|
|
+ // });
|
|
|
|
|
|
- laydate.render({
|
|
|
- elem: '#startDate', //目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
|
|
|
- format: 'yyyy-MM-dd',
|
|
|
- type : 'date'
|
|
|
- });
|
|
|
|
|
|
- $("#attachment_btn").click(function () {
|
|
|
- $("#attachment_file").click();
|
|
|
- });
|
|
|
});
|
|
|
- function getCurrentDocumentHei(){
|
|
|
- var height = $(document).outerHeight();
|
|
|
- parent.$("#controltype").attr("height",height +"px")
|
|
|
- }
|
|
|
+ // function getCurrentDocumentHei(){
|
|
|
+ // var height = $(document).outerHeight();
|
|
|
+ // parent.$("#controltype").attr("height",height +"px")
|
|
|
+ // }
|
|
|
+
|
|
|
|
|
|
- function getNowFormatDate() {
|
|
|
- var date = new Date();
|
|
|
- var seperator1 = "-";
|
|
|
- var seperator2 = ":";
|
|
|
- var month = date.getMonth() + 1;
|
|
|
- var strDate = date.getDate();
|
|
|
- month = (month < 10)?"0"+month:month;
|
|
|
- strDate = (strDate < 10)?"0"+strDate:strDate;
|
|
|
- var currentdate = date.getFullYear() + seperator1 + month + seperator1 + strDate;
|
|
|
- return currentdate;
|
|
|
- }
|
|
|
|
|
|
- function insertTitle(tValue){
|
|
|
- var list = "${workClientInfo.workAttachments}";
|
|
|
- var size = (list.split('url')).length-1;
|
|
|
- var files = $("#attachment_file")[0].files;
|
|
|
- for(var i = 0;i<files.length;i++) {
|
|
|
- var file = files[i];
|
|
|
- var attachmentId = "";
|
|
|
- var attachmentFlag = "5";
|
|
|
- console.log(file);
|
|
|
- var timestamp = new Date().getTime();
|
|
|
|
|
|
- var storeAs = "attachment-file/workClientInfo/" + timestamp + "/" + file['name'];
|
|
|
- var uploadPath = "http://gangwan-app.oss-cn-hangzhou.aliyuncs.com/" + storeAs;
|
|
|
- /*将这段字符串存到数据库即可*/
|
|
|
- var divId = "_attachment";
|
|
|
- $("#addFile" + divId).show();
|
|
|
- multipartUploadWithSts(storeAs, file, attachmentId, attachmentFlag, uploadPath, divId, size);
|
|
|
- }
|
|
|
}
|
|
|
|
|
|
|
|
|
</script>
|
|
|
- <style>
|
|
|
- .note-editor .panel-heading{
|
|
|
- padding:3px 5px;
|
|
|
- }
|
|
|
- </style>
|
|
|
+ <%--<style>--%>
|
|
|
+ <%--.note-editor .panel-heading{--%>
|
|
|
+ <%--padding:3px 5px;--%>
|
|
|
+ <%--}--%>
|
|
|
+ <%--</style>--%>
|
|
|
</head>
|
|
|
<body>
|
|
|
<div class="single-form">
|
|
@@ -172,6 +143,12 @@
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="layui-item layui-col-sm6">
|
|
|
+ <label class="layui-form-label">风向:</label>
|
|
|
+ <div class="layui-input-block">
|
|
|
+ <input id="wind" name="workLog.wind" htmlEscape="false" class="form-control layui-input" value="${projectControlTable.workLog.wind}"/>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
+ <div class="layui-item layui-col-sm6">
|
|
|
<label class="layui-form-label"><span class="require-item">*</span>日志主题:</label>
|
|
|
<div class="layui-input-block">
|
|
|
<input id="theme" name="workLog.theme" htmlEscape="false" class="form-control required layui-input" value="${projectControlTable.workLog.theme}"/>
|