Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-IM
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-IM
提交
169b1f7d
提交
169b1f7d
编写于
1月 22, 2021
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
加loading
上级
eff87121
变更
1
隐藏空白字符变更
内嵌
并排
正在显示
1 个修改的文件
包含
8 行增加
和
28 行删除
+8
-28
index.vue
src/views/IM/current-session/index.vue
+8
-28
未找到文件。
src/views/IM/current-session/index.vue
浏览文件 @
169b1f7d
...
...
@@ -198,12 +198,10 @@ import { mapGetters, mapMutations } from "vuex";
import
BreadCrumb
from
"@/components/breadcrumb.vue"
;
import
{
doUpload
,
getFilePath
}
from
"@/utils/qiniu-util"
;
import
{
validateWord
}
from
"@/utils/validate.js"
;
// import { openLoading, closeLoading } from "@/utils/utils";
import
{
openLoading
,
closeLoading
,
betaHandle
,
timeHandle
}
from
"@/utils/utils"
;
import
*
as
commonUtil
from
"@/utils/utils"
;
import
{
getPicaKFAccid
,
getPhomeDemain
}
from
"@/utils"
;
...
...
@@ -308,41 +306,21 @@ export default {
},
mounted
()
{
// this.resizeHeight();
this
.
$nextTick
(()
=>
{
_this
.
containerHeight
=
_this
.
p_getElm
(
'slidebar-container'
).
getBoundingClientRect
().
height
-
15
;
_this
.
p_getElm
(
'screenSet'
).
style
.
height
=
_this
.
getElmByID
(
'slidebar-container'
).
getBoundingClientRect
().
height
-
15
;
_this
.
getElmByID
(
'screenSet'
).
style
.
height
=
_this
.
containerHeight
-
152
+
"px"
;
console
.
log
(
'_this.containerHeight'
,
_this
.
containerHeight
);
_this
.
p_getElm
(
"sessionListId"
).
style
.
height
=
_this
.
containerHeight
-
252
+
'px'
;
_this
.
p_getElm
(
"msgContentId"
).
style
.
height
=
_this
.
containerHeight
-
287
+
'px'
;
_this
.
getElmByID
(
"sessionListId"
).
style
.
height
=
_this
.
containerHeight
-
252
+
'px'
;
_this
.
getElmByID
(
"msgContentId"
).
style
.
height
=
_this
.
containerHeight
-
287
+
'px'
;
});
},
methods
:
{
//
resizeHeight
(
cMinusHeight
=
152
,
iMinuxHeight
=
210
,
refHeightId
=
"slidebar-container"
,
containerHeightId
=
"screenSet"
)
{
_this
.
containerHeight
=
_this
.
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
;
_this
.
p_getElm
(
containerHeightId
).
style
.
height
=
_this
.
containerHeight
-
cMinusHeight
+
"px"
;
console
.
log
(
"containerHeight"
,
_this
.
containerHeight
);
window
.
onresize
=
function
()
{
console
.
log
(
"containerHeight2"
,
_this
.
containerHeight
);
_this
.
containerHeight
=
_this
.
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
15
;
_this
.
p_getElm
(
containerHeightId
).
style
.
height
=
_this
.
containerHeight
-
cMinusHeight
+
"px"
;
};
},
p_getElm
(
elmId
)
{
// 获取元素
getElmByID
(
elmId
)
{
return
document
.
getElementById
(
elmId
);
},
...
...
@@ -855,6 +833,7 @@ export default {
});
return
;
}
openLoading
(
_this
);
doUpload
(
_this
,
file
,
...
...
@@ -863,6 +842,7 @@ export default {
"progress"
,
""
).
then
(
function
(
resData
)
{
closeLoading
(
_this
)
let
params
=
{};
params
.
fileSize
=
resData
.
size
;
params
.
fileExt
=
resData
.
ext
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录