From 6e9037a82c3dc86b1b0b601ec06a97cf8c9f208a Mon Sep 17 00:00:00 2001 From: hjm <2681423553@qq.com> Date: 星期一, 03 十月 2022 18:03:07 +0800 Subject: [PATCH] 后台 --- ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement_info.js | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 44 insertions(+), 0 deletions(-) diff --git a/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement_info.js b/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement_info.js index 567bef4..202cbe6 100644 --- a/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement_info.js +++ b/ManagementIGOTravel/guns-admin/src/main/webapp/static/modular/system/tAdvertisement/tAdvertisement_info.js @@ -209,6 +209,50 @@ ajax.set("content",editor) ajax.start(); } +TAdvertisementInfoDlg.addSubmit2 = function() { + this.clearData(); + this.collectData(); + var name = $("#name").val(); + var editor = TAdvertisementInfoDlg.editor.getContent(); + if ("" == name){ + Feng.info("请输入通知标题"); + return; + } + var subArr=[]; + $(".timeClass").each(function () { + subArr.push({ + userId:$(this).find("input[name*='userId']").val(), + }) + }); + var subArr1=[]; + $(".timeClass1").each(function () { + subArr1.push({ + //companyName,nickName,phone + userId:$(this).find("input[name*='userId']").val(), + }) + }); + var sendType = $("input[name='sendType']:checked").val(); + console.log(sendType) + if(sendType==2 && subArr.length <= 0){ + Feng.error("请选择用户"); + return; + } + console.log(subArr) + console.log(subArr1) + //提交信息 + var ajax = new $ax(Feng.ctxPath + "/tAdvertisement/addInfo1", function(data){ + Feng.success("添加成功!"); + window.parent.TAdvertisement.table.refresh(); + TAdvertisementInfoDlg.close(); + },function(data){ + Feng.error("添加失败!" + data.responseJSON.message + "!"); + }); + ajax.set("userId",JSON.stringify(subArr)) + ajax.set("driverId",JSON.stringify(subArr1)) + ajax.set("name",name) + ajax.set("content",editor) + ajax.start(); +} /** * 提交修改 -- Gitblit v1.7.1