Commit 9fc3cd79 authored by duxinyuan's avatar duxinyuan

13

parent 47fe0858
...@@ -149,7 +149,7 @@ define(['doT', 'text!temp/attendance_template_tpl.html', 'css!style/home.css', ' ...@@ -149,7 +149,7 @@ define(['doT', 'text!temp/attendance_template_tpl.html', 'css!style/home.css', '
let that = this ; let that = this ;
let str = $('#dataStr').text(); let str = $('#dataStr').text();
let str1 = str.split("-"); let str1 = str.split("-");
let newStr = str1[0] + '-' + ( str1[1]-0>9?str1[1]:'0'+str1[1] ) + '-' + "01" let newStr = str1[0] + '-' + ( str1[1]-0>9?str1[1]:'0'+(str1[1]-0) ) + '-' + "01"
return newStr; return newStr;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment