"src/vscode:/vscode.git/clone" did not exist on "afcf2edb4cfcd435699af25ad14de46a37a3b22f"
Commit b8aa180e authored by cjl's avatar cjl
Browse files

修改未加样式的提示

parent bc49df9d
...@@ -77,9 +77,7 @@ ...@@ -77,9 +77,7 @@
else { else {
url = '/userBusiness/update?id=' + id; url = '/userBusiness/update?id=' + id;
} }
$.messager.confirm("提示","您确定要保存吗?",function(data){
if (confirm("您确定要保存吗?")) {
$.ajax({ $.ajax({
url: url, url: url,
type: "post", type: "post",
...@@ -95,14 +93,14 @@ ...@@ -95,14 +93,14 @@
success: function (res) { success: function (res) {
if(res && res.code === 200) { if(res && res.code === 200) {
self.parent.$.colorbox.close(); self.parent.$.colorbox.close();
alert("操作成功!"); $.messager.alert('提示',"操作成功!","info");
} }
else { else {
alert("操作失败!"); $.messager.alert('提示',"操作失败!","error");
} }
} }
}); });
} });
} }
); );
...@@ -135,6 +133,7 @@ ...@@ -135,6 +133,7 @@
}); });
return flag; return flag;
} }
</script> </script>
</body> </body>
</html> </html>
\ No newline at end of file
...@@ -76,9 +76,7 @@ ...@@ -76,9 +76,7 @@
else { else {
url = '/userBusiness/update?id=' + id; url = '/userBusiness/update?id=' + id;
} }
$.messager.confirm("提示","您确定要保存吗?",function(data){
if (confirm("您确定要保存吗?")) {
$.ajax({ $.ajax({
url: url, url: url,
type: "post", type: "post",
...@@ -94,14 +92,15 @@ ...@@ -94,14 +92,15 @@
success: function (res) { success: function (res) {
if(res && res.code === 200) { if(res && res.code === 200) {
self.parent.$.colorbox.close(); self.parent.$.colorbox.close();
alert("操作成功!"); $.messager.alert('提示',"操作成功!","info");
} }
else { else {
alert("操作失败!"); $.messager.alert('提示',"操作失败!","error");
} }
} }
}); });
}
});
} }
); );
......
...@@ -212,7 +212,7 @@ ...@@ -212,7 +212,7 @@
}, 500); }, 500);
$("#btnOK").off("click").on("click", function () { $("#btnOK").off("click").on("click", function () {
if (confirm("您确定要保存吗?")) { $.messager.confirm("提示","您确定要保存吗?",function(data){
var bindList = $("#pushList .datagrid-view2 .datagrid-body .datagrid-row"); var bindList = $("#pushList .datagrid-view2 .datagrid-body .datagrid-row");
var bindArr = []; var bindArr = [];
var btnStr = ""; var btnStr = "";
...@@ -239,7 +239,7 @@ ...@@ -239,7 +239,7 @@
success: function (res) { success: function (res) {
if (res && res.code === 200) { if (res && res.code === 200) {
self.parent.$.colorbox.close(); self.parent.$.colorbox.close();
alert("操作成功!"); $.messager.alert('提示',"操作成功!","info");
} }
else { else {
$.messager.show({ $.messager.show({
...@@ -253,7 +253,7 @@ ...@@ -253,7 +253,7 @@
return; return;
} }
}); });
} });
}); });
} }
</script> </script>
......
...@@ -76,9 +76,7 @@ ...@@ -76,9 +76,7 @@
else { else {
url = '/userBusiness/update?id=' + id; url = '/userBusiness/update?id=' + id;
} }
$.messager.confirm("提示","您确定要保存吗?",function(data){
if (confirm("您确定要保存吗?")) {
$.ajax({ $.ajax({
url: url, url: url,
type: "post", type: "post",
...@@ -94,14 +92,15 @@ ...@@ -94,14 +92,15 @@
success: function (res) { success: function (res) {
if(res && res.code === 200) { if(res && res.code === 200) {
self.parent.$.colorbox.close(); self.parent.$.colorbox.close();
alert("操作成功!"); $.messager.alert('提示',"操作成功!","info");
} }
else { else {
alert("操作失败!"); $.messager.alert('提示',"操作失败!","error");
} }
} }
}); });
}
});
} }
); );
......
...@@ -76,9 +76,7 @@ ...@@ -76,9 +76,7 @@
else { else {
url = '/userBusiness/update?id=' + id; url = '/userBusiness/update?id=' + id;
} }
$.messager.confirm("提示","您确定要保存吗?",function(data){
if (confirm("您确定要保存吗?")) {
$.ajax({ $.ajax({
url: url, url: url,
type: "post", type: "post",
...@@ -94,14 +92,14 @@ ...@@ -94,14 +92,14 @@
success: function (res) { success: function (res) {
if(res && res.code === 200) { if(res && res.code === 200) {
self.parent.$.colorbox.close(); self.parent.$.colorbox.close();
alert("操作成功!"); $.messager.alert('提示',"操作成功!","info");
} }
else { else {
alert("操作失败!"); $.messager.alert('提示',"操作失败!","error");
} }
} }
}); });
} });
} }
); );
......
...@@ -76,9 +76,7 @@ ...@@ -76,9 +76,7 @@
else { else {
url = '/userBusiness/update?id=' + id; url = '/userBusiness/update?id=' + id;
} }
$.messager.confirm("提示","您确定要保存吗?",function(data){
if (confirm("您确定要保存吗?")) {
$.ajax({ $.ajax({
url: url, url: url,
type: "post", type: "post",
...@@ -94,14 +92,14 @@ ...@@ -94,14 +92,14 @@
success: function (res) { success: function (res) {
if(res && res.code === 200) { if(res && res.code === 200) {
self.parent.$.colorbox.close(); self.parent.$.colorbox.close();
alert("操作成功!"); $.messager.alert('提示',"操作成功!","info");
} }
else { else {
alert("操作失败!"); $.messager.alert('提示',"操作失败!","error");
} }
} }
}); });
} });
} }
); );
......
Supports Markdown
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