提交 4a00e667 编写于 作者: guangjun.yang's avatar guangjun.yang

设置会话标志

上级 7039a9d9
...@@ -286,8 +286,8 @@ export default { ...@@ -286,8 +286,8 @@ export default {
handler(newMsgList) { handler(newMsgList) {
let l = newMsgList.length; let l = newMsgList.length;
if(l >= 2) { if(l >= 2) {
for(let i = 1; i < l - 1; i ++) { for(let i = 1; i < l; i ++) {
if(newMsgList[i-1].taskLogId == newMsgList[i].taskLogId) { if(newMsgList[i-1].taskLogId !== newMsgList[i].taskLogId) {
newMsgList[i].sessionFlag = true; newMsgList[i].sessionFlag = true;
} }
} }
...@@ -310,19 +310,23 @@ export default { ...@@ -310,19 +310,23 @@ export default {
containerHeightId = "screenSet" containerHeightId = "screenSet"
) { ) {
let containerHeight = let containerHeight =
p_getElm(refHeightId).getBoundingClientRect().height - 15; this.p_getElm(refHeightId).getBoundingClientRect().height - 15;
p_getElm(containerHeightId).style.height = this.p_getElm(containerHeightId).style.height =
containerHeight - cMinusHeight + "px"; containerHeight - cMinusHeight + "px";
console.log('containerHeight', containerHeight); console.log('containerHeight', containerHeight);
window.onresize = function() { window.onresize = function() {
console.log('containerHeight2', containerHeight); console.log('containerHeight2', containerHeight);
containerHeight = containerHeight =
p_getElm(refHeightId).getBoundingClientRect().height - 15; this.p_getElm(refHeightId).getBoundingClientRect().height - 15;
p_getElm(containerHeightId).style.height = this.p_getElm(containerHeightId).style.height =
containerHeight - cMinusHeight + "px"; containerHeight - cMinusHeight + "px";
}; };
}, },
p_getElm(elmId){
return document.getElementById(elmId)
},
// 处理发送消息 // 处理发送消息
// 1: 先将消息体直接显示在对话框中 // 1: 先将消息体直接显示在对话框中
// 2: 设置一个时间戳,以便再次找回 // 2: 设置一个时间戳,以便再次找回
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册