发布v2.6.0版本
This commit is contained in:
@@ -48,6 +48,7 @@ body,html{background-color:#f1f1f1;overflow:hidden}
|
||||
.notrecord{text-align:center;font-size:20px;padding-top:50px;color:#aaaaaa}
|
||||
.r-border:after{border-radius:5px}
|
||||
.inputs{height:30px;line-height: 28px;border: 1px <?=$maincolor?> solid; padding: 0px 2px;overflow: hidden;border-radius:5px}
|
||||
.datesss{background:url(mode/icons/date.png) no-repeat right}
|
||||
</style>
|
||||
<script>
|
||||
var json = <?=json_encode($arr)?>;
|
||||
@@ -71,7 +72,8 @@ function initbody(){
|
||||
function initApp(){
|
||||
js.setapptitle(json.name);
|
||||
js.location=function(dz){
|
||||
if(js.appwin('.',dz))return;
|
||||
var fs = dz.substr(0,1);
|
||||
if(fs!='#' && js.appwin('.',dz))return;
|
||||
location.href = dz;
|
||||
}
|
||||
var nowlist = 'yingyong_mode_'+json.num+'';
|
||||
|
||||
@@ -321,7 +321,7 @@ var myScroll=false,yy={
|
||||
}
|
||||
return;
|
||||
}
|
||||
if(lx==1 || lx==9 || lx==10 || lx==13 || lx==15 || lx==16 || lx==17 || lx==4){
|
||||
if(lx==1 || lx==9 || lx==10 || lx==13 || lx==15 || lx==16 || lx==17 || lx==19 || lx==4){
|
||||
var bts = (d.issm==1)?'必填':'选填';
|
||||
var str1= '请输入['+d.name+']说明('+bts+'):';
|
||||
if(lx==4)str1='<div align="left" id="showmenusss" style="padding:10px">加载中...</div>'+str1+'';
|
||||
@@ -400,7 +400,6 @@ var myScroll=false,yy={
|
||||
s='<div class="contline">'+d.title+'</div>';
|
||||
}else{
|
||||
if(!d.statuscolor)d.statuscolor='';
|
||||
|
||||
var bstr = new touchclass({
|
||||
xuhao:oi,
|
||||
onlongclick:function(){
|
||||
|
||||
@@ -27,4 +27,62 @@ yy.onshowdata=function(da){
|
||||
if(soumodeid>0)get('modeid').value = soumodeid;
|
||||
}
|
||||
}
|
||||
myyingsinit();
|
||||
myyingsinit();
|
||||
|
||||
yy.onclickmenu=function(d){
|
||||
if(d.num=='allty'){
|
||||
if(this.nowevent!='daib'){
|
||||
js.msg('msg','请切换到:所有待办');
|
||||
return false;
|
||||
}
|
||||
var len = this.data.length;
|
||||
if(len==0){
|
||||
js.msg('msg','没有记录');
|
||||
return false;
|
||||
}
|
||||
js.prompt('批量处理同意','请输入批量处理同意说明(选填)',function(lxbd,msg){
|
||||
if(lxbd=='yes'){
|
||||
yy.plliangso(msg);
|
||||
}
|
||||
});
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
yy.plliangso = function(sm){
|
||||
this.plbool = true;
|
||||
this.plchusm = sm;
|
||||
this.cgshu = 0;
|
||||
this.sbshu = 0;
|
||||
js.loading('<span id="plchushumm"></span>');
|
||||
this.plliangsos(0);
|
||||
}
|
||||
|
||||
yy.plliangsos=function(oi){
|
||||
var len = this.data.length;
|
||||
$('#plchushumm').html('批量处理中('+len+'/'+(oi+1)+')...');
|
||||
if(oi>=len){
|
||||
$('#plchushumm').html('处理完成,成功<font color=green>'+this.cgshu+'</font>条,失败<font color=red>'+this.sbshu+'</font>条');
|
||||
setTimeout('yy.reload()', 3000);
|
||||
this.plbool=false;
|
||||
return;
|
||||
}
|
||||
var d = this.data[oi];
|
||||
var cns= {sm:this.plchusm,zt:1,modenum:d.modenum,mid:d.id};
|
||||
$.ajax({
|
||||
url:js.getajaxurl('check','flowopt','flow'),
|
||||
data:cns,
|
||||
type:'post',
|
||||
dataType:'json',
|
||||
success:function(ret){
|
||||
if(ret.success){
|
||||
yy.cgshu++;
|
||||
}else{
|
||||
yy.sbshu++;
|
||||
js.msg('msg','['+d.modename+']'+ret.msg+',不能使用批量来处理,请打开详情去处理。');
|
||||
}
|
||||
yy.plliangsos(oi+1);
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user