From 1eed180f9c2bf73130ddcab66d25e6a641660ff0 Mon Sep 17 00:00:00 2001 From: puzhibing <393733352@qq.com> Date: 星期一, 25 三月 2024 17:13:33 +0800 Subject: [PATCH] 合并代码 --- cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_add.js | 15 ++++++++++----- 1 files changed, 10 insertions(+), 5 deletions(-) diff --git a/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_add.js b/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_add.js index e8bd949..0a9776d 100644 --- a/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_add.js +++ b/cloud-server-management/src/main/webapp/static/modular/system/benefits/tBenefitsVideos_add.js @@ -282,13 +282,12 @@ data: JSON.stringify(data), contentType: "application/json", success: function (response) { - if (response === 500){ + if (!response){ Feng.error("所选视频已经存在于当前福利视频分类下!"); - window.parent.TQuestion.table.refresh(); - TQuestion.close(); - }else{ Feng.success("添加成功"); + window.parent.TQuestion.table.refresh(); + TQuestion.close(); } }, error: function (xhr, status, error) { @@ -314,7 +313,13 @@ data: JSON.stringify(data), contentType: "application/json", success: function (response) { - Feng.success("添加成功"); + if (!response){ + Feng.error("所选视频已经存在于当前福利视频分类下!"); + }else{ + Feng.success("编辑成功"); + window.parent.TQuestion.table.refresh(); + TQuestion.close(); + } }, error: function (xhr, status, error) { Feng.error("添加失败!" + error); -- Gitblit v1.7.1