From fe0a85b1cdd18bc80fb21203dfcc1405edcd4da7 Mon Sep 17 00:00:00 2001 From: WenG <450292408@qq.com> Date: Tue, 8 Sep 2020 17:11:51 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E5=A4=84=E7=90=86=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E5=8B=BE=E9=80=89=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/templates/common/list-select-user.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/cloud-common-plugin/src/main/resources/templates/common/list-select-user.html b/cloud-common-plugin/src/main/resources/templates/common/list-select-user.html index 39a1a2d..ac478db 100644 --- a/cloud-common-plugin/src/main/resources/templates/common/list-select-user.html +++ b/cloud-common-plugin/src/main/resources/templates/common/list-select-user.html @@ -52,6 +52,14 @@ var newSelectedUserList = []; var tableData = []; + // 初始化选择列表 + function initNewSelectedUserList() { + for(var i = 0, item; item = oldSelectedUserList[i++];) { + newSelectedUserList.push(item); + } + } + initNewSelectedUserList(); + // 初始化表格 function initTable() { $.extend(table, {config: {checkName: 'checked'}}); @@ -112,12 +120,12 @@ page: true, parseData: function(data) { for(var i = 0, item; item = data.rows[i++];) { - if(!oldSelectedUserList) { + if(!newSelectedUserList) { item.checked = false; continue; } var isSelected = false; - for(var j = 0, jItem; jItem = oldSelectedUserList[j++];) { + for(var j = 0, jItem; jItem = newSelectedUserList[j++];) { if(item.userId === jItem.userId) { isSelected = true; break; From 792fac1593c88f90a6663716c55cc7dce6a69f09 Mon Sep 17 00:00:00 2001 From: WenG <450292408@qq.com> Date: Thu, 10 Sep 2020 10:28:34 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=AF=86=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../java/com/cm/common/utils/email/SimpleMailSenderUtil.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cloud-common/src/main/java/com/cm/common/utils/email/SimpleMailSenderUtil.java b/cloud-common/src/main/java/com/cm/common/utils/email/SimpleMailSenderUtil.java index 8d3454b..39b00d3 100644 --- a/cloud-common/src/main/java/com/cm/common/utils/email/SimpleMailSenderUtil.java +++ b/cloud-common/src/main/java/com/cm/common/utils/email/SimpleMailSenderUtil.java @@ -129,7 +129,7 @@ public class SimpleMailSenderUtil { mailInfo.setMailServerPort(587); mailInfo.setValidate(true); mailInfo.setUserName("450292408@qq.com"); - mailInfo.setPassword("bvtzzosemkuubiij"); + mailInfo.setPassword("pezxpunlxzqgbhhd"); mailInfo.setFromAddress("450292408@qq.com"); mailInfo.setToAddress("450292408@qq.com"); mailInfo.setSubject("123");