发布v2.6.8版本

This commit is contained in:
雨中磐石
2025-03-31 20:54:32 +08:00
parent 0701e2a8b4
commit d41bd27082
122 changed files with 9827 additions and 9132 deletions

View File

@@ -7,27 +7,17 @@ for(var i=0;i<editarr.length;i++)c.setcolumns(editarr[i],{type:'checkbox'});
bootparams.fanye = false;
c.initpage=function(){
$('#tdleft_{rand}').after('<td ><select style="width:180px;" class="form-control" id="modeid_{rand}" ></select></td>');
$('#modeid_{rand}').change(function(){
c.changemodeid(this);
$('#tdleft_{rand}').after('<td ><input class="input" click="xuanmode" placeholder="-选择模块-" style="width:180px;background:url(images/xiangyou1.png) no-repeat right" id="modes_{rand}" readonly></td>');
}
c.xuanmode = function(o1){
js.selectmode(o1, get('modes_{rand}'), function(sna,val,d){
c.changemodes(val);
});
}
c.onloadbefore=function(d){
if(d.modearr){
var s = '<option value="0">-选择模块-</option>',len=d.modearr.length,i,csd,types='';
for(i=0;i<len;i++){
csd = d.modearr[i];
if(types!=csd.type){
if(types!='')s+='</optgroup>';
s+='<optgroup label="'+csd.type+'">';
}
s+='<option value="'+csd.id+'">'+csd.name+'</option>';
types = csd.type;
}
s+='</optgroup>';
$('#modeid_{rand}').html(s);
}
if(d.mkrs)mknum = d.mkrs.num;
}
c.changemodeid=function(o1){
@@ -36,6 +26,10 @@ c.changemodeid=function(o1){
mkid = val;
a.setparams({mkid:mkid},true);
}
c.changemodes=function(val){
mkid = val;
a.setparams({mkid:mkid},true);
}
c.xuanmoxbo = function(){
if(mkid=='0'){
js.msgerror('请先选择模块');