fac2040c78ed0b9e39bb2bd75cc32dcd82cb92d9.svn-base 942 B

123456789101112131415161718192021222324252627282930313233343536
  1. //查询详情的业务功能
  2. $(function(){
  3. if((window.location.href).indexOf('?')>-1){
  4. var fd_id = (window.location.href).split('?')[1];
  5. var url = $.pathname() + '/ws/crud/CRUDService/getDataById/';
  6. var params = {
  7. classid : '750',
  8. objectID : fd_id };
  9. $.ajax({
  10. url : url,
  11. type : 'post',
  12. timeout : 60000,
  13. data : params,
  14. dataType : 'json',
  15. success : function(data){
  16. for(var i in data){
  17. $('#'+i).html(data[i]); //给div赋值
  18. }
  19. // $('#fillForm').ajaxWrite({data:data});
  20. // $('#fillForm input[name="classid"]').val('750');//文本框赋值
  21. } });
  22. }else{
  23. //新增
  24. window.location.href="/nwyj/page/system/questionHuiZong/questionHuiZong_List.jsp";
  25. }
  26. });
  27. //返回
  28. function goBack(){
  29. window.location.href="/nwyj/page/system/questionHuiZong/questionHuiZong_List.jsp";
  30. }