Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
2f125393
提交
2f125393
编写于
5月 13, 2021
作者:
changdi.hao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
设置table的高度
上级
c68fca2d
流水线
#35668
已取消 于阶段
变更
2
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
22 行增加
和
1 行删除
+22
-1
table-component.vue
src/components/list/table-component.vue
+5
-0
diagnosis-list.vue
src/views/IM/diagnosis-admin/diagnosis-list.vue
+17
-1
未找到文件。
src/components/list/table-component.vue
浏览文件 @
2f125393
...
@@ -5,6 +5,7 @@
...
@@ -5,6 +5,7 @@
:data=
"tData"
:data=
"tData"
v-loading=
"loading"
v-loading=
"loading"
style=
"width: 100%"
style=
"width: 100%"
:height=
"tableHeight"
border
border
>
>
<el-table-column
prop=
"diagnoseLogId"
label=
"ID"
min-width=
"100"
align=
"center"
></el-table-column>
<el-table-column
prop=
"diagnoseLogId"
label=
"ID"
min-width=
"100"
align=
"center"
></el-table-column>
...
@@ -120,6 +121,10 @@ export default {
...
@@ -120,6 +121,10 @@ export default {
loading
:
{
loading
:
{
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
},
tableHeight
:
{
type
:
Number
,
default
:
500
}
}
},
},
data
()
{
data
()
{
...
...
src/views/IM/diagnosis-admin/diagnosis-list.vue
浏览文件 @
2f125393
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
<div
class=
"component-content screenSet"
id=
"screenSet"
>
<div
class=
"component-content screenSet"
id=
"screenSet"
>
<div
class=
"title"
>
咨询订单管理后台
</div>
<div
class=
"title"
>
咨询订单管理后台
</div>
<el-form
:inline=
"true"
class=
"demo-form-inline
"
:model=
"searchParam"
label-width=
"80px
"
>
<el-form
:inline=
"true"
class=
"demo-form-inline
from-box"
:model=
"searchParam"
label-width=
"80px"
ref=
"from
"
>
<el-row
:gutter=
"20"
type=
"flex"
justify=
"center"
>
<el-row
:gutter=
"20"
type=
"flex"
justify=
"center"
>
<el-col
:span=
"8"
class=
"t-c"
>
<el-col
:span=
"8"
class=
"t-c"
>
<el-form-item
label=
"姓名"
>
<el-form-item
label=
"姓名"
>
...
@@ -147,6 +147,7 @@
...
@@ -147,6 +147,7 @@
:pageSize=
"searchParam.pageSize"
:pageSize=
"searchParam.pageSize"
:totalRows=
"totalRows"
:totalRows=
"totalRows"
:loading=
"loading"
:loading=
"loading"
:tableHeight=
"tableHeight"
@
timeHandle=
"timeHandle"
@
timeHandle=
"timeHandle"
@
endDiagnosis=
"endDiagnosis"
@
endDiagnosis=
"endDiagnosis"
@
callAll=
"callAll"
@
callAll=
"callAll"
...
@@ -165,6 +166,7 @@
...
@@ -165,6 +166,7 @@
:pageSize=
"searchParam.pageSize"
:pageSize=
"searchParam.pageSize"
:totalRows=
"totalRows"
:totalRows=
"totalRows"
:loading=
"loading"
:loading=
"loading"
:tableHeight=
"tableHeight"
@
timeHandle=
"timeHandle"
@
timeHandle=
"timeHandle"
@
endDiagnosis=
"endDiagnosis"
@
endDiagnosis=
"endDiagnosis"
@
callAll=
"callAll"
@
callAll=
"callAll"
...
@@ -183,6 +185,7 @@
...
@@ -183,6 +185,7 @@
:pageSize=
"searchParam.pageSize"
:pageSize=
"searchParam.pageSize"
:totalRows=
"totalRows"
:totalRows=
"totalRows"
:loading=
"loading"
:loading=
"loading"
:tableHeight=
"tableHeight"
@
timeHandle=
"timeHandle"
@
timeHandle=
"timeHandle"
@
endDiagnosis=
"endDiagnosis"
@
endDiagnosis=
"endDiagnosis"
@
callAll=
"callAll"
@
callAll=
"callAll"
...
@@ -201,6 +204,7 @@
...
@@ -201,6 +204,7 @@
:pageSize=
"searchParam.pageSize"
:pageSize=
"searchParam.pageSize"
:totalRows=
"totalRows"
:totalRows=
"totalRows"
:loading=
"loading"
:loading=
"loading"
:tableHeight=
"tableHeight"
@
timeHandle=
"timeHandle"
@
timeHandle=
"timeHandle"
@
endDiagnosis=
"endDiagnosis"
@
endDiagnosis=
"endDiagnosis"
@
callAll=
"callAll"
@
callAll=
"callAll"
...
@@ -314,6 +318,7 @@ export default {
...
@@ -314,6 +318,7 @@ export default {
},
},
liveBack
:
false
,
liveBack
:
false
,
timeClickFlag
:
true
,
timeClickFlag
:
true
,
tableHeight
:
500
,
endDateOpt
:
{
endDateOpt
:
{
disabledData
:
(
time
)
=>
{
disabledData
:
(
time
)
=>
{
if
(
this
.
searchParam
.
createdTimeEnd
!=
""
&&
this
.
searchParam
.
createdTimeEnd
!=
null
)
{
if
(
this
.
searchParam
.
createdTimeEnd
!=
""
&&
this
.
searchParam
.
createdTimeEnd
!=
null
)
{
...
@@ -364,6 +369,9 @@ export default {
...
@@ -364,6 +369,9 @@ export default {
}
}
}
}
},
},
created
()
{
this
.
setTableHeight
()
},
mounted
()
{
mounted
()
{
this
.
liveBack
=
this
.
$route
.
query
.
liveBack
||
false
this
.
liveBack
=
this
.
$route
.
query
.
liveBack
||
false
// if(this.liveBack) {
// if(this.liveBack) {
...
@@ -377,6 +385,14 @@ export default {
...
@@ -377,6 +385,14 @@ export default {
this
.
search
()
this
.
search
()
},
},
methods
:
{
methods
:
{
// 设置table的高度
setTableHeight
()
{
this
.
$nextTick
(()
=>
{
if
(
document
.
getElementsByClassName
(
'from-box'
)
&&
document
.
getElementsByClassName
(
'from-box'
)[
0
].
clientHeight
)
{
this
.
tableHeight
=
window
.
innerHeight
-
64
-
140
-
10
-
160
-
document
.
getElementsByClassName
(
'from-box'
)[
0
].
clientHeight
}
})
},
changeBeginTime
(
val
)
{
changeBeginTime
(
val
)
{
this
.
beginFlag
=
false
this
.
beginFlag
=
false
this
.
endFlag
=
false
this
.
endFlag
=
false
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录