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
提交
f3129bea
提交
f3129bea
编写于
1月 26, 2021
作者:
guangjun.yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
其它页面高度设置问题
上级
78342176
变更
6
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
3 行增加
和
33 行删除
+3
-33
index.js
src/utils/index.js
+0
-28
list.vue
src/views/IM/chain-history/list.vue
+1
-1
index.vue
src/views/IM/chain-message/index.vue
+1
-1
index.vue
src/views/IM/current-session/index.vue
+0
-1
detail.vue
src/views/IM/search-message/detail.vue
+0
-1
list.vue
src/views/IM/search-message/list.vue
+1
-1
未找到文件。
src/utils/index.js
浏览文件 @
f3129bea
...
@@ -42,38 +42,10 @@ function getUrlParmByCode(paramList) {
...
@@ -42,38 +42,10 @@ function getUrlParmByCode(paramList) {
return
''
return
''
}
}
// 计算高度
export
function
resizeHeight
(
cMinusHeight
=
152
,
iMinuxHeight
=
210
,
refHeightId
=
'sidebarWrapperId'
,
containerHeightId
=
'appContainerId'
,
innerHeightId
=
'elTableId'
){
// if (!p_getElm(refHeightId) || !p_getElm(containerHeightId) || !p_getElm(innerHeightId)) {
// // window.onresize = null
// console.warn('No certain dom id!!!');
// }
let
containerHeight
=
document
.
body
.
clientHeight
-
80
;
// let containerHeight = p_getElm(refHeightId).getBoundingClientRect().height - 50
p_getElm
(
containerHeightId
).
style
.
height
=
containerHeight
-
cMinusHeight
+
'px'
p_getElm
(
innerHeightId
).
style
.
height
=
containerHeight
-
iMinuxHeight
+
'px'
if
(
p_getElm
(
'elTableIdInner'
)){
p_getElm
(
'elTableIdInner'
).
style
.
height
=
containerHeight
-
iMinuxHeight
+
'px'
}
window
.
onresize
=
function
()
{
containerHeight
=
p_getElm
(
refHeightId
).
getBoundingClientRect
().
height
-
50
p_getElm
(
containerHeightId
).
style
.
height
=
containerHeight
-
cMinusHeight
+
'px'
p_getElm
(
innerHeightId
).
style
.
height
=
containerHeight
-
iMinuxHeight
+
'px'
if
(
p_getElm
(
'elTableIdInner'
))
{
p_getElm
(
'elTableIdInner'
).
style
.
height
=
containerHeight
-
iMinuxHeight
+
'px'
}
}
}
function
p_getElm
(
elmId
)
{
function
p_getElm
(
elmId
)
{
return
document
.
getElementById
(
elmId
)
return
document
.
getElementById
(
elmId
)
}
}
export
function
deepCopy
(
obj
)
{
export
function
deepCopy
(
obj
)
{
var
result
=
Array
.
isArray
(
obj
)
?
[]
:
{};
var
result
=
Array
.
isArray
(
obj
)
?
[]
:
{};
for
(
var
key
in
obj
)
{
for
(
var
key
in
obj
)
{
...
...
src/views/IM/chain-history/list.vue
浏览文件 @
f3129bea
...
@@ -105,7 +105,7 @@ export default {
...
@@ -105,7 +105,7 @@ export default {
},
},
// 挂载到Dom完成时
// 挂载到Dom完成时
mounted
()
{
mounted
()
{
commonUtil
.
resizeHeight
();
commonUtil
.
resizeHeight
(
92
);
this
.
search
();
this
.
search
();
},
},
methods
:
{
methods
:
{
...
...
src/views/IM/chain-message/index.vue
浏览文件 @
f3129bea
...
@@ -114,7 +114,7 @@ export default {
...
@@ -114,7 +114,7 @@ export default {
},
},
// 挂载到Dom完成时
// 挂载到Dom完成时
mounted
()
{
mounted
()
{
commonUtil
.
resizeHeight
();
commonUtil
.
resizeHeight
(
92
);
this
.
getFiveContentList
();
this
.
getFiveContentList
();
},
},
methods
:
{
methods
:
{
...
...
src/views/IM/current-session/index.vue
浏览文件 @
f3129bea
...
@@ -203,7 +203,6 @@ import {
...
@@ -203,7 +203,6 @@ import {
closeLoading
,
closeLoading
,
betaHandle
,
betaHandle
,
}
from
"@/utils/utils"
;
}
from
"@/utils/utils"
;
import
*
as
commonUtil
from
"@/utils/utils"
;
import
{
getPicaKFAccid
,
getPhomeDemain
}
from
"@/utils"
;
import
{
getPicaKFAccid
,
getPhomeDemain
}
from
"@/utils"
;
import
UserInfo
from
"@/components/IM/user-info.vue"
;
import
UserInfo
from
"@/components/IM/user-info.vue"
;
// const CONTAINER_HEIGHT = 300;
// const CONTAINER_HEIGHT = 300;
...
...
src/views/IM/search-message/detail.vue
浏览文件 @
f3129bea
...
@@ -56,7 +56,6 @@ import BreadCrumb from "@/components/breadcrumb.vue";
...
@@ -56,7 +56,6 @@ import BreadCrumb from "@/components/breadcrumb.vue";
import
{
doUpload
,
getFilePath
}
from
"@/utils/qiniu-util"
;
import
{
doUpload
,
getFilePath
}
from
"@/utils/qiniu-util"
;
import
{
openLoading
,
closeLoading
,
betaHandle
,
timeHandle
}
from
"@/utils/utils"
;
import
{
openLoading
,
closeLoading
,
betaHandle
,
timeHandle
}
from
"@/utils/utils"
;
import
{
getPicaKFAccid
}
from
"@/utils"
;
import
{
getPicaKFAccid
}
from
"@/utils"
;
// import * as commonUtil from "@/utils/utils";
export
default
{
export
default
{
components
:
{
components
:
{
BreadCrumb
BreadCrumb
...
...
src/views/IM/search-message/list.vue
浏览文件 @
f3129bea
...
@@ -108,7 +108,7 @@ export default {
...
@@ -108,7 +108,7 @@ export default {
},
},
// 挂载到Dom完成时
// 挂载到Dom完成时
mounted
()
{
mounted
()
{
commonUtil
.
resizeHeight
();
commonUtil
.
resizeHeight
(
92
);
this
.
searchMessage
();
this
.
searchMessage
();
},
},
methods
:
{
methods
:
{
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录