保存添加延时等待
This commit is contained in:
@@ -1102,8 +1102,10 @@ export default {
|
|||||||
$("#carGoodsModal").modal('hide');
|
$("#carGoodsModal").modal('hide');
|
||||||
$("#tipMsg").text("保存成功");
|
$("#tipMsg").text("保存成功");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
setTimeout(function() {
|
||||||
TableHelper.doRefresh("#table");
|
TableHelper.doRefresh("#table");
|
||||||
$("#cardGoodsModal").modal('hide');
|
$("#cardGoodsModal").modal('hide');
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("保存失败." + json.msg);
|
$("#tipMsg").text("保存失败." + json.msg);
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
@@ -501,8 +501,10 @@ export default {
|
|||||||
if (json.code === 200) {
|
if (json.code === 200) {
|
||||||
$("#tipMsg").text("保存成功");
|
$("#tipMsg").text("保存成功");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
setTimeout(function() {
|
||||||
TableHelper.doRefresh("#table");
|
TableHelper.doRefresh("#table");
|
||||||
$("#addModal").modal('hide');
|
$("#addModal").modal('hide');
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("保存失败,错误信息:" + json.message);
|
$("#tipMsg").text("保存失败,错误信息:" + json.message);
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
@@ -777,8 +777,10 @@ export default {
|
|||||||
if (json.success == 'true') {
|
if (json.success == 'true') {
|
||||||
$("#tipMsg").text("保存成功");
|
$("#tipMsg").text("保存成功");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
setTimeout(function() {
|
||||||
TableHelper.doRefresh("#table");
|
TableHelper.doRefresh("#table");
|
||||||
$("#headwearModal").modal('hide');
|
$("#headwearModal").modal('hide');
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("保存失败." + json.msg);
|
$("#tipMsg").text("保存失败." + json.msg);
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
@@ -483,8 +483,10 @@ export default {
|
|||||||
if (json.code === 200) {
|
if (json.code === 200) {
|
||||||
$("#tipMsg").text("保存成功");
|
$("#tipMsg").text("保存成功");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
setTimeout(function() {
|
||||||
TableHelper.doRefresh("#table");
|
TableHelper.doRefresh("#table");
|
||||||
$("#addModal").modal('hide');
|
$("#addModal").modal('hide');
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("保存失败,错误信息:" + json.message);
|
$("#tipMsg").text("保存失败,错误信息:" + json.message);
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
@@ -446,8 +446,10 @@ export default {
|
|||||||
if (json.success == 'true') {
|
if (json.success == 'true') {
|
||||||
$("#tipMsg").text("保存成功");
|
$("#tipMsg").text("保存成功");
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
setTimeout(function() {
|
||||||
TableHelper.doRefresh("#table");
|
TableHelper.doRefresh("#table");
|
||||||
$("#roomTagModal").modal('hide');
|
$("#roomTagModal").modal('hide');
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("保存失败." + json.msg);
|
$("#tipMsg").text("保存失败." + json.msg);
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
@@ -1413,8 +1413,10 @@ export default {
|
|||||||
if (json.success == 'true') {
|
if (json.success == 'true') {
|
||||||
$("#giftModal").modal('hide');
|
$("#giftModal").modal('hide');
|
||||||
$("#tipMsg").text("保存成功");
|
$("#tipMsg").text("保存成功");
|
||||||
|
setTimeout(function() {
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
TableHelper.doRefresh("#table");
|
TableHelper.doRefresh("#table");
|
||||||
|
}, 1000);
|
||||||
} else {
|
} else {
|
||||||
$("#tipMsg").text("保存失败." + json.msg);
|
$("#tipMsg").text("保存失败." + json.msg);
|
||||||
$("#tipModal").modal('show');
|
$("#tipModal").modal('show');
|
||||||
|
Reference in New Issue
Block a user