1234567891011121314151617181920212223242526272829303132333435363738394041424344 |
- // 新建下级行政区划
- function addXzqh(sjqh) {
- huimv.loadPage('xzqhRight', 'editXzqh.htm', {
- "sjqh" : sjqh
- });
- }
- // 修改行政区划
- function editXzqh(qhbm) {
- huimv.loadPage('xzqhRight', 'editXzqh.htm', {
- "qhbm" : qhbm
- });
- }
- // 删除行政区划
- function disableXzqh(qhbm) {
- var errMsg = document.getElementById('errMsg');
- jQuery.ajax({
- url: "checkSon.htm",
- dataType: "text",
- type: "get",
- async: false,
- data: {"qhbm" : qhbm},
- success: function(data){
- errMsg.innerHTML = data;
- if (data == "") {
- if (confirm('是否确定删除?')) {
- jQuery.ajax({
- url: "disableXzqh.htm",
- dataType: "json",
- type: "get",
- async: false,
- data: {"qhbm" : qhbm, "sjqh" : $("#sjqh").val()},
- cache: false,
- success: function(data){
- $("#xzqhList").reflash(data.id);
- huimv.loadPage("xzqhRight", "viewXzqh.htm?qhbm=" + data.qhbm + "&qhlx=" + data.qhlx);
- }
- });
- }
- }
- }
- });
- }
|