viewXzqh.js 970 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. // 新建下级行政区划
  2. function addXzqh(sjqh) {
  3. huimv.loadPage('xzqhRight', 'editXzqh.htm', {
  4. "sjqh" : sjqh
  5. });
  6. }
  7. // 修改行政区划
  8. function editXzqh(qhbm) {
  9. huimv.loadPage('xzqhRight', 'editXzqh.htm', {
  10. "qhbm" : qhbm
  11. });
  12. }
  13. // 删除行政区划
  14. function disableXzqh(qhbm) {
  15. var errMsg = document.getElementById('errMsg');
  16. jQuery.ajax({
  17. url: "checkSon.htm",
  18. dataType: "text",
  19. type: "get",
  20. async: false,
  21. data: {"qhbm" : qhbm},
  22. success: function(data){
  23. errMsg.innerHTML = data;
  24. if (data == "") {
  25. if (confirm('是否确定删除?')) {
  26. jQuery.ajax({
  27. url: "disableXzqh.htm",
  28. dataType: "json",
  29. type: "get",
  30. async: false,
  31. data: {"qhbm" : qhbm, "sjqh" : $("#sjqh").val()},
  32. cache: false,
  33. success: function(data){
  34. $("#xzqhList").reflash(data.id);
  35. huimv.loadPage("xzqhRight", "viewXzqh.htm?qhbm=" + data.qhbm + "&qhlx=" + data.qhlx);
  36. }
  37. });
  38. }
  39. }
  40. }
  41. });
  42. }