Commit e03bfe12 authored by hujun's avatar hujun

修改部门获取信息

parent 531c843f
...@@ -21,7 +21,6 @@ define (['doT', 'text!temp/district_template_tpl.html', 'css!style/home.css','pa ...@@ -21,7 +21,6 @@ define (['doT', 'text!temp/district_template_tpl.html', 'css!style/home.css','pa
}); });
$ (document).delegate (".submit_edit", "click", function () {//提交编辑 $ (document).delegate (".submit_edit", "click", function () {//提交编辑
district.Submit_edit(); district.Submit_edit();
district.getList(1);
}); });
$ (document).delegate (".mend", "click", function () {//点击门店列表 $ (document).delegate (".mend", "click", function () {//点击门店列表
district.district_id = $ (this).attr ("data-id"); district.district_id = $ (this).attr ("data-id");
...@@ -84,7 +83,9 @@ define (['doT', 'text!temp/district_template_tpl.html', 'css!style/home.css','pa ...@@ -84,7 +83,9 @@ define (['doT', 'text!temp/district_template_tpl.html', 'css!style/home.css','pa
data:par, data:par,
dataType: "json", dataType: "json",
success: function(data){ success: function(data){
if(data.code != 200){ if(data.code == 200){
district.getList(1);
} else {
alert(data.msg); alert(data.msg);
} }
} }
......
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