Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
R
rbc-demo
Overview
Overview
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
王衍超
rbc-demo
Commits
e6ece811
Commit
e6ece811
authored
Mar 11, 2022
by
袁成
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' of
ssh://nvwa.jiuqi.com.cn:2222/GFP/RBC/rbc-frontend
into develop-yuancheng
parents
fe3e28cb
5d1bf5c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
20 deletions
+6
-20
table-view.vue
...iew/src/components/custom-query/table-view/table-view.vue
+6
-20
No files found.
develop/@rbc/workflow-job-view/src/components/custom-query/table-view/table-view.vue
View file @
e6ece811
...
...
@@ -7,7 +7,7 @@
:table=
"table"
:no-data-text=
'noDataText'
:row-class-name=
"rowClassName"
:columns=
"
newC
olumnsData"
:columns=
"
c
olumnsData"
:loading=
"loading"
:table-data=
"tableData"
:highlight-row=
'isHighLightRow'
...
...
@@ -100,25 +100,6 @@ export default {
type
:
Boolean
}
},
computed
:
{
newColumnsData
()
{
const
tableColumns
=
this
.
table
.
columns
if
(
tableColumns
)
{
for
(
let
i
=
0
;
i
<
tableColumns
.
length
;
i
++
)
{
let
tableColumn
=
tableColumns
[
i
];
if
(
tableColumn
.
bodyAlign
)
{
for
(
let
j
=
0
;
j
<
this
.
columnsData
.
length
;
j
++
)
{
let
column
=
this
.
columnsData
[
j
];
if
(
column
.
key
===
tableColumn
.
key
)
{
column
.
className
=
`column-align-
${
tableColumn
.
bodyAlign
}
`
}
}
}
}
}
return
this
.
columnsData
}
},
watch
:
{
tableHeight
:{
handler
(
nv
,
ov
){
...
...
@@ -390,6 +371,9 @@ export default {
}
else
{
this
.
singleCol
.
align
=
colItem
.
format
&&
colItem
.
format
.
type
==
"NUMBER"
?
"right"
:
"left"
;
}
if
(
colItem
.
headerAlign
)
{
this
.
singleCol
.
headerAlign
=
colItem
.
headerAlign
;
}
if
(
colItem
.
tooltip
)
{
this
.
singleCol
.
tooltip
=
true
;
}
...
...
@@ -397,6 +381,8 @@ export default {
this
.
singleCol
.
sortable
=
colItem
.
sortable
;
}
this
.
singleCol
.
resizable
=
true
;
this
.
singleCol
.
showOverflow
=
true
;
this
.
singleCol
.
showHeaderOverflow
=
true
;
this
.
isHaveChildrenColums
=
true
;
if
(
colItem
.
type
!=
"ACTION"
&&
colItem
.
columnType
.
name
==
"fixed"
)
{
this
.
singleCol
.
fixed
=
colItem
.
columnType
.
align
;
...
...
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