Commit cc6b6214 authored by zfc's avatar zfc

模块找不发bug

parent 06bfe713
...@@ -67,7 +67,7 @@ define (['doT', 'text!temp/auth_template_tpl.html', 'css!style/home.css','pagina ...@@ -67,7 +67,7 @@ define (['doT', 'text!temp/auth_template_tpl.html', 'css!style/home.css','pagina
Edit:function(){//获取 Edit:function(){//获取
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url' : '/index/addAuth',//获取编辑数据 'url' : '/index/addAuth/',//获取编辑数据
data: {"id":auth.house_id}, data: {"id":auth.house_id},
dataType: "json", dataType: "json",
success: function(data){ success: function(data){
......
...@@ -47,7 +47,7 @@ define (['doT', 'text!temp/auth_rule_box_template_tpl.html', 'css!style/home.css ...@@ -47,7 +47,7 @@ define (['doT', 'text!temp/auth_rule_box_template_tpl.html', 'css!style/home.css
}); });
var id= getUrlParam('id'); var id= getUrlParam('id');
$.ajax({ $.ajax({
url: '/index/updateAuthRule/group_id/'+id, url: '/index/updateAuthRule/'+id,
type: 'post', type: 'post',
async: true, async: true,
dataType: 'json', dataType: 'json',
......
...@@ -76,7 +76,7 @@ authRule={ ...@@ -76,7 +76,7 @@ authRule={
Edit:function(){//获取 Edit:function(){//获取
$.ajax({ $.ajax({
'type': 'GET', 'type': 'GET',
'url' : '/index/updateAuthRule/group_id/',//获取编辑数据 'url' : '/index/updateAuthRule/',//获取编辑数据
data: {"id":authRule.house_id}, data: {"id":authRule.house_id},
dataType: "json", dataType: "json",
success: function (data) { success: function (data) {
......
...@@ -40,7 +40,7 @@ define (['doT', 'css!style/home.css','pagination','bootstrapJs'], function (doT, ...@@ -40,7 +40,7 @@ define (['doT', 'css!style/home.css','pagination','bootstrapJs'], function (doT,
return false; return false;
} }
$.ajax({ $.ajax({
url: '/index/addAuth/group_id/'+id, url: '/index/addAuth/'+id,
type: 'post', type: 'post',
async: true, async: true,
dataType: 'json', dataType: 'json',
......
...@@ -59,7 +59,7 @@ define (['doT', 'text!temp/get_auth_list_template_tpl.html', 'css!style/home.css ...@@ -59,7 +59,7 @@ define (['doT', 'text!temp/get_auth_list_template_tpl.html', 'css!style/home.css
return false; return false;
} }
$.ajax({ $.ajax({
url: '/index/saveAgent/group_id/'+id, url: '/index/saveAgent/'+id,
type: 'post', type: 'post',
async: true, async: true,
dataType: 'json', dataType: 'json',
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment