保存添加延时等待

This commit is contained in:
liaozetao
2024-04-23 14:43:42 +08:00
parent 7d59d6beea
commit 7b85f23e43
6 changed files with 24 additions and 12 deletions

View File

@@ -1102,8 +1102,10 @@ export default {
$("#carGoodsModal").modal('hide');
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
$("#cardGoodsModal").modal('hide');
setTimeout(function() {
TableHelper.doRefresh("#table");
$("#cardGoodsModal").modal('hide');
}, 1000);
} else {
$("#tipMsg").text("保存失败." + json.msg);
$("#tipModal").modal('show');

View File

@@ -501,8 +501,10 @@ export default {
if (json.code === 200) {
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
$("#addModal").modal('hide');
setTimeout(function() {
TableHelper.doRefresh("#table");
$("#addModal").modal('hide');
}, 1000);
} else {
$("#tipMsg").text("保存失败,错误信息:" + json.message);
$("#tipModal").modal('show');

View File

@@ -777,8 +777,10 @@ export default {
if (json.success == 'true') {
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
$("#headwearModal").modal('hide');
setTimeout(function() {
TableHelper.doRefresh("#table");
$("#headwearModal").modal('hide');
}, 1000);
} else {
$("#tipMsg").text("保存失败." + json.msg);
$("#tipModal").modal('show');

View File

@@ -483,8 +483,10 @@ export default {
if (json.code === 200) {
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
$("#addModal").modal('hide');
setTimeout(function() {
TableHelper.doRefresh("#table");
$("#addModal").modal('hide');
}, 1000);
} else {
$("#tipMsg").text("保存失败,错误信息:" + json.message);
$("#tipModal").modal('show');

View File

@@ -446,8 +446,10 @@ export default {
if (json.success == 'true') {
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
$("#roomTagModal").modal('hide');
setTimeout(function() {
TableHelper.doRefresh("#table");
$("#roomTagModal").modal('hide');
}, 1000);
} else {
$("#tipMsg").text("保存失败." + json.msg);
$("#tipModal").modal('show');

View File

@@ -1413,8 +1413,10 @@ export default {
if (json.success == 'true') {
$("#giftModal").modal('hide');
$("#tipMsg").text("保存成功");
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
setTimeout(function() {
$("#tipModal").modal('show');
TableHelper.doRefresh("#table");
}, 1000);
} else {
$("#tipMsg").text("保存失败." + json.msg);
$("#tipModal").modal('show');