Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
dsk-operate-sys-cscec
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
fulixin
dsk-operate-sys-cscec
Commits
ae91667e
Commit
ae91667e
authored
Dec 21, 2023
by
tyn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
容器自适应
parent
41e3e6bd
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
13 deletions
+29
-13
index.vue
dsk-operate-ui/src/components/TableListCom/index.vue
+24
-8
detailsOfCooperation.vue
...components/EnterpriseList/detail/detailsOfCooperation.vue
+1
-1
index.vue
...nsultingOrgManagement/components/EnterpriseList/index.vue
+1
-1
index.vue
.../consultingOrgManagement/components/ProjectList/index.vue
+1
-1
Tables.vue
dsk-operate-ui/src/views/detail/party-a/component/Tables.vue
+2
-2
No files found.
dsk-operate-ui/src/components/TableListCom/index.vue
View file @
ae91667e
...
...
@@ -4,7 +4,7 @@
<el-table
v-if=
"tableDataTotal>0"
class=
"fixed-table"
:class=
"headerFixed ? 'headerFixed':''"
v-loading=
"tableLoading"
:data=
"tableData"
element-loading-text=
"Loading"
ref=
"tableRef"
border
fit
highlight-current-row
:default-sort=
"defaultSort?defaultSort:
{}"
@sort-change="sortChange" @selection-change="selectionChange" :cell-class-name="cellClassName" :cell-style="cellStyle"
:row-class-name="rowClassName" :row-style="rowStyle" :height="height" :maxHeight="
m
axHeight" v-sticky-header="stickyHeader">
:row-class-name="rowClassName" :row-style="rowStyle" :height="height" :maxHeight="
comM
axHeight" v-sticky-header="stickyHeader">
<el-table-column
type=
"selection"
:width=
"needSelection.width ? needSelection.width : '38px'"
v-if=
"needSelection.flag"
:fixed=
"needSelection.fixed"
:align=
"needSelection.align"
:show-overflow-tooltip=
"needSelection.showOverflowTooltip"
>
</el-table-column>
...
...
@@ -80,7 +80,7 @@ export default {
type
:
[
String
,
Number
]
},
maxHeight
:
{
type
:
[
String
,
Number
]
type
:
Boolean
},
isIndex
:
{
type
:
Boolean
,
...
...
@@ -168,7 +168,8 @@ export default {
data
()
{
return
{
current_page
:
this
.
queryParams
.
pageNum
,
show_page
:
this
.
paging
show_page
:
this
.
paging
,
comMaxHeight
:
null
};
},
watch
:
{
...
...
@@ -177,9 +178,24 @@ export default {
}
},
created
()
{
this
.
maxHeight
?
this
.
maxHeightInit
()
:
null
;
},
methods
:
{
// 自适应当前容器
async
maxHeightInit
()
{
try
{
await
this
.
$nextTick
();
/**
* @type {HTMLDivElement}
*/
const
container
=
document
.
querySelector
(
".table-list-com-ins .table-item"
);
if
(
container
)
{
this
.
comMaxHeight
=
`
${
container
.
offsetHeight
}
px`
;
}
}
catch
(
error
)
{
}
},
handleCurrentChange
(
e
)
{
if
(
this
.
MaxPage
<
e
)
{
this
.
show_page
=
false
;
...
...
@@ -262,10 +278,10 @@ export default {
}
.el-table
{
height
:
auto
;
display
:
flex
;
flex-direction
:
column
;
align-items
:
center
;
//
height: auto;
//
display: flex;
//
flex-direction: column;
//
align-items: center;
.el-table__header-wrapper
{
min-height
:
40px
;
}
...
...
dsk-operate-ui/src/views/consultingOrgManagement/components/EnterpriseList/detail/detailsOfCooperation.vue
View file @
ae91667e
...
...
@@ -53,7 +53,7 @@
<skeleton
v-if=
"tableLoading"
></skeleton>
<!-- table 列表 -->
<table-list-com
ref=
"tableContainer"
:tableData=
"tableDataList"
:formColum=
"formColum"
:tableDataTotal=
"total"
:queryParams=
"queryParams"
v-else-if=
"!tableLoading"
:maxHeight=
"
'100%'
"
@
handle-current-change=
"handleCurrentChange"
>
v-else-if=
"!tableLoading"
:maxHeight=
"
true
"
@
handle-current-change=
"handleCurrentChange"
>
<!-- 项目列表 -->
<template
slot=
"projectName"
slot-scope=
"
{data,row}">
<div
v-if=
"row.projectName"
class=
"no-line-feed "
>
{{
row
.
projectName
}}
</div>
...
...
dsk-operate-ui/src/views/consultingOrgManagement/components/EnterpriseList/index.vue
View file @
ae91667e
...
...
@@ -36,7 +36,7 @@
<skeleton
v-if=
"tableLoading"
></skeleton>
<!-- table 列表 -->
<table-list-com
ref=
"tableContainer"
:tableData=
"tableDataList"
:formColum=
"formColum"
:tableDataTotal=
"total"
:queryParams=
"queryParams"
v-else-if=
"!tableLoading"
:maxHeight=
"
'100%'
"
@
handle-current-change=
"handleCurrentChange"
>
v-else-if=
"!tableLoading"
:maxHeight=
"
true
"
@
handle-current-change=
"handleCurrentChange"
>
<!-- 咨询机构名称 -->
<template
slot=
"advisoryBodyName"
slot-scope=
"
{data,row}">
<div
v-if=
"row.advisoryBodyName"
class=
"no-line-feed "
>
{{
row
.
advisoryBodyName
}}
</div>
...
...
dsk-operate-ui/src/views/consultingOrgManagement/components/ProjectList/index.vue
View file @
ae91667e
...
...
@@ -71,7 +71,7 @@
<skeleton
v-if=
"tableLoading"
></skeleton>
<!-- table 列表 -->
<table-list-com
ref=
"tableContainer"
:tableData=
"tableDataList"
:formColum=
"formColum"
:tableDataTotal=
"total"
:queryParams=
"queryParams"
v-else-if=
"!tableLoading"
:maxHeight=
"
'100%'
"
@
handle-current-change=
"handleCurrentChange"
>
v-else-if=
"!tableLoading"
:maxHeight=
"
true
"
@
handle-current-change=
"handleCurrentChange"
>
<!-- 项目列表 -->
<template
slot=
"projectName"
slot-scope=
"
{data,row}">
<div
v-if=
"row.projectName"
class=
"no-line-feed"
v-html=
"row.projectName"
>
{{
row
.
projectName
}}
</div>
...
...
dsk-operate-ui/src/views/detail/party-a/component/Tables.vue
View file @
ae91667e
...
...
@@ -175,6 +175,8 @@ export default {
}
::v-deep
.table-item
{
position
:
relative
;
/* 留高度给骨架屏 */
min-height
:
360px
;
.table-empty-container
{
position
:
absolute
;
display
:
flex
;
...
...
@@ -184,8 +186,6 @@ export default {
justify-content
:
center
;
box-sizing
:
border-box
;
}
/* 留高度给骨架屏 */
min-height
:
360px
;
.el-table
td
.el-table__cell
{
border-bottom
:
0
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment