Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
浙江兰德纵横网络技术股份有限公司
o2oa
提交
a82f1b68
o2oa
项目概览
浙江兰德纵横网络技术股份有限公司
/
o2oa
通知
339
Star
10
Fork
6
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
o2oa
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
a82f1b68
编写于
6月 22, 2021
作者:
F
fancy
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
IM聊天web端的一些问题修改,jira上的
上级
f9b83a34
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
35 addition
and
12 deletion
+35
-12
o2web/source/x_component_IMV2/Main.js
o2web/source/x_component_IMV2/Main.js
+35
-12
未找到文件。
o2web/source/x_component_IMV2/Main.js
浏览文件 @
a82f1b68
...
...
@@ -156,7 +156,14 @@ MWF.xApplication.IMV2.Main = new Class({
//修改群名
tapUpdateConvTitle
:
function
()
{
this
.
chatTitleMoreMenuNode
.
setStyle
(
"
display
"
,
"
none
"
);
var
form
=
new
MWF
.
xApplication
.
IMV2
.
UpdateConvTitleForm
(
this
,
{},
{},
{
app
:
this
.
app
});
var
title
=
""
;
for
(
var
i
=
0
;
i
<
this
.
conversationNodeItemList
.
length
;
i
++
)
{
var
c
=
this
.
conversationNodeItemList
[
i
];
if
(
this
.
conversationId
==
c
.
data
.
id
)
{
title
=
c
.
data
.
title
;
}
}
var
form
=
new
MWF
.
xApplication
.
IMV2
.
UpdateConvTitleForm
(
this
,
{},
{
"
defaultValue
"
:
title
},
{
app
:
this
.
app
});
form
.
create
();
},
//修改群成员
...
...
@@ -276,15 +283,17 @@ MWF.xApplication.IMV2.Main = new Class({
o2
.
Actions
.
load
(
"
x_message_assemble_communicate
"
).
ImAction
.
update
(
conv
,
function
(
json
)
{
var
newConv
=
json
.
data
;
//点击会话 刷新聊天界面
_self
.
tapConv
(
newConv
);
//刷新会话列表的title
for
(
var
i
=
0
;
i
<
this
.
conversationNodeItemList
.
length
;
i
++
)
{
var
cv
=
this
.
conversationNodeItemList
[
i
];
if
(
cv
.
data
.
id
==
convId
)
{
//刷新
cv
.
refreshConvTitle
(
title
);
}
}
// _self.tapConv(newConv);
// //刷新会话列表的title
// for (var i = 0; i < this.conversationNodeItemList.length; i++) {
// var cv = this.conversationNodeItemList[i];
// if (cv.data.id == convId) {
// //刷新
// cv.refreshConvTitle(title);
// }
// }
// 列表上的数据也要刷新
_self
.
reciveNewMessage
();
}.
bind
(
this
),
function
(
error
)
{
console
.
log
(
error
);
...
...
@@ -299,7 +308,9 @@ MWF.xApplication.IMV2.Main = new Class({
var
_self
=
this
;
o2
.
Actions
.
load
(
"
x_message_assemble_communicate
"
).
ImAction
.
update
(
conv
,
function
(
json
)
{
var
newConv
=
json
.
data
;
_self
.
tapConv
(
newConv
);
//_self.tapConv(newConv);
// 列表上的数据也要刷新
_self
.
reciveNewMessage
();
}.
bind
(
this
),
function
(
error
)
{
console
.
log
(
error
);
}.
bind
(
this
))
...
...
@@ -431,6 +442,10 @@ MWF.xApplication.IMV2.Main = new Class({
isNew
=
false
;
//刷新
cv
.
refreshLastMsg
(
nCv
.
lastMessage
);
cv
.
refreshData
(
nCv
);
if
(
this
.
conversationId
===
nCv
.
id
)
{
this
.
tapConv
(
nCv
);
}
}
}
//新会话 创建
...
...
@@ -893,9 +908,16 @@ MWF.xApplication.IMV2.ConversationItem = new Class({
this
.
messageTimeNode
.
set
(
"
text
"
,
time
);
}
},
// 更新聊天窗口上的标题 修改标题的时候使用 @Disuse 使用refreshData
refreshConvTitle
:
function
(
title
)
{
this
.
titleNode
.
set
(
"
text
"
,
title
);
},
// 更新会话数据
refreshData
:
function
(
data
)
{
this
.
data
=
data
;
// 更新聊天窗口上的标题 修改标题的时候使用
this
.
titleNode
.
set
(
"
text
"
,
data
.
title
);
},
addCheckClass
:
function
()
{
if
(
this
.
nodeBaseItem
)
{
if
(
!
this
.
nodeBaseItem
.
hasClass
(
"
check
"
))
{
...
...
@@ -1062,6 +1084,7 @@ MWF.xApplication.IMV2.UpdateConvTitleForm = new Class({
"
hasTop
"
:
true
,
"
hasIcon
"
:
false
,
"
draggable
"
:
true
,
"
defaultValue
"
:
""
,
// 默认值
"
title
"
:
MWF
.
xApplication
.
IMV2
.
LP
.
modifyGroupName
},
_createTableContent
:
function
()
{
...
...
@@ -1076,7 +1099,7 @@ MWF.xApplication.IMV2.UpdateConvTitleForm = new Class({
style
:
"
minder
"
,
hasColon
:
true
,
itemTemplate
:
{
title
:
{
text
:
MWF
.
xApplication
.
IMV2
.
LP
.
groupName
,
type
:
"
text
"
,
notEmpty
:
true
},
title
:
{
text
:
MWF
.
xApplication
.
IMV2
.
LP
.
groupName
,
type
:
"
text
"
,
notEmpty
:
true
,
value
:
this
.
options
[
"
defaultValue
"
]
},
}
},
this
.
app
);
this
.
form
.
load
();
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录