Commit d6041f1c authored by xishifeng's avatar xishifeng

一些修改

parent a7db5fa1
......@@ -88,7 +88,9 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
agent.agent_id = $(this).attr("data-id");
agent.getPhoneBindingList();
});
$(document).delegate(".submit_edit", "click", function() { //提交编辑
$(document).delegate(".submit_edit", "click", function(e) { //提交编辑
e.preventDefault();
e.stopPropagation();
agent.Submit_edit();
});
......@@ -198,7 +200,6 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
dataType: "json",
success: function(data) {
if(data.code == 200) {
agent.getList(1);
} else {
alert("重复提交");
}
......@@ -298,8 +299,8 @@ define(['doT', 'text!temp/agent_template_tpl.html', 'text!temp/phoneBinding_temp
dataType: "json",
success: function(data) {
if(data.code == 200) {
alert('修改成功');
$("#modal-edit").modal('hide');
agent.getList(1);
} else {
alert(data.msg);
}
......
......@@ -95,7 +95,9 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
business.house_id = $(this).attr("data-id");
business.Caozuo();
});
$(document).delegate(".submit_follow2", "click", function() { //提交独家
$(document).delegate(".submit_follow2", "click", function(e) { //提交独家
e.preventDefault();
e.stopPropagation();
business.Dujianew();
});
......@@ -110,7 +112,9 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
}
});
$(document).delegate("#confirm_delete", "click", function() {
$(document).delegate("#confirm_delete", "click", function(e) {
e.preventDefault();
e.stopPropagation();
business.delBusiness();
});
$(document).delegate(".jia", "click", function() { //加号
......@@ -350,7 +354,10 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
},
dataType: "json",
success: function(data) {
if(data.code == 200) {} else {
if(data.code == 200) {
alert('修改成功');
$("#modal-dujia").modal('hide');
} else {
alert('获取失败!');
}
......@@ -652,6 +659,7 @@ define(['doT', 'text!temp/house_template_tpl.html', 'css!style/home.css', 'ckfin
dataType: 'json',
success: function(data) {
if(data.code == 200) {
alert('删除成功');
$("#modal-delete").modal('hide');
} else {
$("#del_msg").html('<span style="color: red">删除失败!</span>');
......
......@@ -66,7 +66,9 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
store.Edit();
});
$ (document).delegate (".submit_edit", "click", function () {//提交编辑
$ (document).delegate (".submit_edit", "click", function (e) {//提交编辑
e.preventDefault();
e.stopPropagation();
store.Submit_edit();
});
$ (document).delegate (".mend", "click", function () {//点击业务员列表
......@@ -259,7 +261,8 @@ define(['doT', 'text!temp/store_template_tpl.html', 'css!style/home.css', 'ckfin
dataType: "json",
success: function(data){
if(data.code==200){
store.getList(1);
alert('修改成功');
$("#modal-edit").modal('hide');
}else{
alert(data.msg);
}
......
......@@ -113,7 +113,9 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
});
// 跟进的提交按钮 点击
$ (document).delegate ("#edit_add", "click", function () {
$ (document).delegate ("#edit_add", "click", function (e) {
e.preventDefault();
e.stopPropagation();
user.edit_add();
});
// 批量修改客方
......@@ -147,7 +149,9 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
});
// =============================下拉列表===================
$ (document).delegate (".submit_edit", "click", function () {//提交
$ (document).delegate (".submit_edit", "click", function (e) {//提交
e.preventDefault();
e.stopPropagation();
user.Submit_follow();
});
// =============下拉列表========================
......@@ -290,7 +294,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
dataType: "json",
success: function(data) {
if(data.code == 200) {
user.getList(1);
alert('修改成功');
$("#modal-record").modal('hide');
} else {
alert(data.msg)
}
......@@ -323,7 +328,8 @@ define (['doT', 'text!temp/user_template_tpl.html','ckfinder','ckfinderStart', '
dataType: 'json',
success: function (data) {
if (data.code == 200) {
user.getList(1);
alert('修改成功');
$("#modal-add").modal('hide');
} else {
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