保存添加延时等待

This commit is contained in:
liaozetao
2024-04-23 14:43:42 +08:00
parent 2c988ee98c
commit 39040b282e
6 changed files with 24 additions and 12 deletions

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');

View File

@@ -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');