commit
This commit is contained in:
@@ -169,6 +169,10 @@ public class MsgNotifyController {
|
|||||||
|
|
||||||
MsgNotifyUser msgNotifyUser = new MsgNotifyUser();
|
MsgNotifyUser msgNotifyUser = new MsgNotifyUser();
|
||||||
msgNotifyUser.setSendUser(ShiroUtil.getUserId());
|
msgNotifyUser.setSendUser(ShiroUtil.getUserId());
|
||||||
|
msgNotifyUser.setTitle(msgNotify.getTitle());
|
||||||
|
msgNotifyUser.setContent(msgNotify.getContent());
|
||||||
|
msgNotifyUser.setLink(msgNotify.getUrl());
|
||||||
|
msgNotifyUser.setApiModule("消息管理系统");
|
||||||
|
|
||||||
if (msgNotify.getSendMode().equals("one")) {
|
if (msgNotify.getSendMode().equals("one")) {
|
||||||
List<NutMap> list = msgNotifyService.getUserByRoleIds(msgNotify.getModule(), msgNotify.getTeacherMeetingId(), msgNotify.getRoleIds());
|
List<NutMap> list = msgNotifyService.getUserByRoleIds(msgNotify.getModule(), msgNotify.getTeacherMeetingId(), msgNotify.getRoleIds());
|
||||||
@@ -179,6 +183,7 @@ public class MsgNotifyController {
|
|||||||
list.forEach(v -> {
|
list.forEach(v -> {
|
||||||
if (flag) {
|
if (flag) {
|
||||||
msgNotify.setSendTime(DateUtil.getDateTime());
|
msgNotify.setSendTime(DateUtil.getDateTime());
|
||||||
|
msgNotifyUser.setSendTime(DateUtil.getDateTime());
|
||||||
}
|
}
|
||||||
msgNotifyUser.setUserId(v.getString("id"));
|
msgNotifyUser.setUserId(v.getString("id"));
|
||||||
msgNotifyUser.setTitleId(msgNotify.getId());
|
msgNotifyUser.setTitleId(msgNotify.getId());
|
||||||
@@ -194,6 +199,7 @@ public class MsgNotifyController {
|
|||||||
userScopes.forEach(v -> {
|
userScopes.forEach(v -> {
|
||||||
if (flag) {
|
if (flag) {
|
||||||
msgNotify.setSendTime(DateUtil.getDateTime());
|
msgNotify.setSendTime(DateUtil.getDateTime());
|
||||||
|
msgNotifyUser.setSendTime(DateUtil.getDateTime());
|
||||||
}
|
}
|
||||||
msgNotifyUser.setUserId(v.getString("id"));
|
msgNotifyUser.setUserId(v.getString("id"));
|
||||||
msgNotifyUser.setTitleId(msgNotify.getId());
|
msgNotifyUser.setTitleId(msgNotify.getId());
|
||||||
@@ -208,6 +214,7 @@ public class MsgNotifyController {
|
|||||||
for (String u : users) {
|
for (String u : users) {
|
||||||
if (flag) {
|
if (flag) {
|
||||||
msgNotify.setSendTime(DateUtil.getDateTime());
|
msgNotify.setSendTime(DateUtil.getDateTime());
|
||||||
|
msgNotifyUser.setSendTime(DateUtil.getDateTime());
|
||||||
}
|
}
|
||||||
msgNotifyUser.setUserId(u);
|
msgNotifyUser.setUserId(u);
|
||||||
msgNotifyUser.setTitleId(msgNotify.getId());
|
msgNotifyUser.setTitleId(msgNotify.getId());
|
||||||
@@ -224,6 +231,7 @@ public class MsgNotifyController {
|
|||||||
for (User u : userList) {
|
for (User u : userList) {
|
||||||
msgNotifyUser.setUserId(u.getId());
|
msgNotifyUser.setUserId(u.getId());
|
||||||
msgNotifyUser.setTitleId(msgNotify.getId());
|
msgNotifyUser.setTitleId(msgNotify.getId());
|
||||||
|
msgNotifyUser.setSendTime(DateUtil.getDateTime());
|
||||||
}
|
}
|
||||||
dao.insert(msgNotifyUser);
|
dao.insert(msgNotifyUser);
|
||||||
|
|
||||||
|
|||||||
@@ -25,13 +25,14 @@ const setting = {
|
|||||||
},
|
},
|
||||||
methods:{
|
methods:{
|
||||||
onOpen(option,ext){
|
onOpen(option,ext){
|
||||||
console.log(option)
|
this.formData = option
|
||||||
this.formData = { ...option }
|
|
||||||
this.ext = ext
|
this.ext = ext
|
||||||
this.visible = true
|
this.visible = true
|
||||||
},
|
},
|
||||||
onConfirm(){
|
onConfirm(){
|
||||||
this.$emit('confirm', { option:this.formData,ext:this.ext })
|
this.$emit('confirm', { option:this.formData,ext:this.ext })
|
||||||
|
this.formData ={}
|
||||||
|
this.visible = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -323,7 +323,6 @@ const subjectForm = {
|
|||||||
//删除选项图片
|
//删除选项图片
|
||||||
removeOptionImg(subjectIndex, optionIndex){
|
removeOptionImg(subjectIndex, optionIndex){
|
||||||
this.$set(this.subjects[subjectIndex].options[optionIndex], "imgUrl", null)
|
this.$set(this.subjects[subjectIndex].options[optionIndex], "imgUrl", null)
|
||||||
console.log(this.subjects[subjectIndex])
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//打开选项设置
|
//打开选项设置
|
||||||
@@ -336,11 +335,7 @@ const subjectForm = {
|
|||||||
|
|
||||||
//选项设置确认
|
//选项设置确认
|
||||||
onSettingConfirm({option, ext}){
|
onSettingConfirm({option, ext}){
|
||||||
this.subjects[ext.subjectIndex].options[ext.optionIndex] = option
|
this.$set(this.subjects[ext.subjectIndex].options, ext.optionIndex, option)
|
||||||
console.log(this.subjects[ext.subjectIndex].options[ext.optionIndex])
|
|
||||||
|
|
||||||
// this.$set(this.subjects[ext.subjectIndex].options[ext.optionIndex], "isCorrect", option.isCorrect)
|
|
||||||
// this.$set(this.subjects[ext.subjectIndex].options[ext.optionIndex], "hint", option.hint)
|
|
||||||
},
|
},
|
||||||
|
|
||||||
//保存
|
//保存
|
||||||
|
|||||||
Reference in New Issue
Block a user