1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980 |
- /**
- 待办
- *
- */
- $.namespace("todo");
- var jsonstr="data=[{'type':'gg','name':'公告'},{'type':'dcsb','name':'单船申报'},{'type':'xkzsq','name':'许可证申请'},{'type':'xkzbg','name':'许可证变更'},{'type':'xkzyx','name':'许可证延续'},{'type':'xkzzx','name':'许可证注销'}]";
- todo.init=function(){
-
- };
- todo.search=function(){
- $("#todoform").submit();
- };
- todo.banli=function(type,id){
- var path="/todo";
- if(type=="dcsb"){
- location.href=$.app+"/dcsb/view?flag=audit&path="+path+"&id="+id+"&type="+type;
- }else if(type=="jsjd"){
- location.href=$.app+"/jsjdgl/edit?id="+id+"&flag=audit"+"&path="+path+"&type="+type;
- }else if(type=="jsjdjggz"){
- location.href=$.app+"/jsjdgl/edit?id="+id+"&flag=audit"+"&path="+path+"&type="+type;
- }else if(type=="xkzyx"){
- location.href=$.app+"/xkzyx/viewmain?flag=audit&id="+id+"&path2="+path+"&type="+type;
- }else if(type=="xkzsq"){
- location.href=$.app+"/xkzsq/viewmain?flag=audit&id="+id+"&path2="+path+"&type="+type;
- }else if(type=="xkzbg"){
- location.href=$.app+"/xkzbg/viewmain?flag=audit&id="+id+"&path2="+path+"&type="+type;
- }else if(type=="xkzzx"){
- location.href=$.app+"/xkzzx/viewmain?flag=audit&id="+id+"&path2="+path+"&type="+type;
- }
- }
- todo.banliTh=function(type,id){
- var path="/todo";
- if(type=="dcsb"){
- location.href=$.app+"/dcsb/edit?flag=th&path="+path+"&id="+id+"&type="+type;
- }else if(type=="jsjd"){
- location.href=$.app+"/jsjdgl/edit?id="+id+"&flag=audit"+"&path="+path+"&type="+type;
- }else if(type=="jsjdjggz"){
- location.href=$.app+"/jsjdgl/edit?id="+id+"&flag=audit"+"&path="+path+"&type="+type;
- }else if(type=="xkzyx"){
- location.href=$.app+"/xkzyx/editmain?flag=th&id="+id+"&path2="+path+"&type="+type;
- }else if(type=="xkzsq"){
- location.href=$.app+"/xkzsq/editmain?flag=th&id="+id+"&path2="+path+"&type="+type;
- }else if(type=="xkzbg"){
- location.href=$.app+"/xkzbg/editmain?flag=th&id="+id+"&path2="+path+"&type="+type;
- }else if(type=="xkzzx"){
- location.href=$.app+"/xkzzx/editmain?flag=th&id="+id+"&path2="+path+"&type="+type;
- }
- }
- function initTySelect(divid,existVal,changefunc,width){
- var str = "";
- if(changefunc!=null&&changefunc!=""){
- str+="<select class='todoselectpicker' name='type' onchange='"+changefunc+"()' >";
- }else{
- str+="<select class='todoselectpicker' name='type' >";
- }
-
- str+="<option></option>";
- var json=eval(jsonstr);
- for(var i=0;i<json.length;i++){
- var k = json[i];
- if(k.type==existVal){
- str+=" <option selected='selected' value='"+k.type+"' >"+k.name+"</option>";
- }else{
- str+=" <option value='"+k.type+"' >"+k.name+"</option>";
- }
- }
- str+="</select>";
- $("#"+divid).empty();
- $("#"+divid).append(str);
- $('.todoselectpicker').selectpicker({
- width:width
- });
- }
|