信呼OA版本v2.3.8
This commit is contained in:
21
webmain/flow/input/inputjs/mode_schedule.js
Normal file
21
webmain/flow/input/inputjs/mode_schedule.js
Normal file
@@ -0,0 +1,21 @@
|
||||
function initbodys(){
|
||||
$(form('rate')).change(function(){
|
||||
changeratess(this.value, 0);
|
||||
});
|
||||
changeratess(form('rate').value, 1);
|
||||
}
|
||||
function changeratess(v, lx){
|
||||
var d = {};
|
||||
if(v=='w')d={'1':'周一','2':'周二','3':'周三','4':'周四','5':'周五','6':'周六','0':'周日'};
|
||||
if(v=='m')for(var i=1;i<=31;i++)d[i]=''+i+'日';
|
||||
var s='',sel='',s11;
|
||||
if(data.rateval)s11=','+data.rateval+',';
|
||||
for(var d1 in d){
|
||||
sel='';
|
||||
if(lx==1&&s11){
|
||||
if(s11.indexOf(','+d1+',')>-1)sel='checked';
|
||||
}
|
||||
s+='<label><input name="rateval[]" '+sel+' value="'+d1+'" type="checkbox">'+d[d1]+'</label> ';
|
||||
}
|
||||
$('#div_rateval').html(s);
|
||||
}
|
||||
Reference in New Issue
Block a user