Skip to content
Toggle navigation
Toggle navigation
This project
Loading...
Sign in
csbr-daop
/
fe-data-trusted-space
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
4d42674d
authored
2025-04-15 16:15:23 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
登记进度节点多的时候显示横向滚动条
1 parent
48f9beef
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
10 deletions
src/components/Table/index.vue
src/views/data_asset/registerProgress.vue
src/components/Table/index.vue
View file @
4d42674
...
...
@@ -259,7 +259,7 @@ onMounted(() => {
<el-table-column
v-for=
"item in tableFields"
:label=
"item.label"
:width=
"item.width"
:min-width=
"item.minWidth"
:fixed=
"item.fixed"
:align=
"item.align"
:type=
"item.type == 'index' ? '' : undefined"
:sortable=
"item.sortable ?? false"
:prop=
"item.field"
:class-name=
"item.columClass"
:show-overflow-tooltip=
"item.type != 'switch'"
>
:show-overflow-tooltip=
"item.type != 'switch'
&& item.type != 'stepsBar'
"
>
<template
#
header
>
<template
v-if=
"!!item?.toolTipContent"
>
<span
style=
"color:#000;display: inline-block"
>
{{
item
.
label
}}
</span>
...
...
src/views/data_asset/registerProgress.vue
View file @
4d42674
...
...
@@ -117,13 +117,15 @@ const tableInfo = ref({
rowKey
:
'guid'
,
loading
:
false
,
fields
:
[{
label
:
"序号"
,
type
:
"index"
,
width
:
56
,
align
:
"center"
},
{
label
:
"数据资产名称"
,
field
:
"daName"
,
width
:
180
,
align
:
"left"
,
type
:
'text_btn'
,
value
:
'assetDetail'
,
columClass
:
'text_btn'
,
click
:
(
scope
)
=>
{
let
row
=
scope
.
row
;
router
.
push
({
name
:
'registerInfoDetail'
,
query
:
{
guid
:
row
.
guid
,
name
:
row
.
daName
,
tenantGuid
:
row
.
tenantGuid
,
tenantName
:
row
.
tenantName
,
type
:
'asset'
}
});
}
},
{
label
:
"数据资产名称"
,
field
:
"daName"
,
width
:
180
,
align
:
"left"
,
type
:
'text_btn'
,
value
:
'assetDetail'
,
columClass
:
'text_btn'
,
click
:
(
scope
)
=>
{
let
row
=
scope
.
row
;
router
.
push
({
name
:
'registerInfoDetail'
,
query
:
{
guid
:
row
.
guid
,
name
:
row
.
daName
,
tenantGuid
:
row
.
tenantGuid
,
tenantName
:
row
.
tenantName
,
type
:
'asset'
}
});
}
},
{
label
:
"所属公司"
,
field
:
"tenantName"
,
width
:
240
},
{
label
:
"数交所"
,
field
:
"exchangeName"
,
width
:
200
},
{
label
:
"流程状态"
,
field
:
"approveVO"
,
type
:
"approveTag"
,
width
:
96
,
align
:
'center'
},
...
...
@@ -134,7 +136,7 @@ const tableInfo = ref({
},
{
label
:
"证书状态"
,
field
:
"documentState"
,
type
:
"tag"
,
width
:
96
,
align
:
'center'
},
{
label
:
"审核阶段"
,
field
:
"progress"
,
className
:
'custom-steps'
,
type
:
"stepsBar"
,
width
:
320
,
align
:
'center'
,
fixed
:
'right'
,
stepsInfo
:
(
scope
)
=>
{
label
:
"审核阶段"
,
field
:
"progress"
,
className
:
'custom-steps
costume_scroll small
'
,
type
:
"stepsBar"
,
width
:
320
,
align
:
'center'
,
fixed
:
'right'
,
stepsInfo
:
(
scope
)
=>
{
let
nodes
=
scope
.
row
.
approveVO
?.
nodes
;
if
(
!
nodes
?.
length
)
{
return
null
;
...
...
@@ -142,6 +144,12 @@ const tableInfo = ref({
return
{
list
:
nodes
.
map
((
n
,
index
)
=>
{
return
{
tooltip
:
{
placement
:
'top'
,
content
:
n
.
processName
,
className
:
'step_title_tooltip'
,
effect
:
'light'
,
},
title
:
n
.
processName
,
value
:
index
+
1
}
...
...
@@ -209,11 +217,22 @@ onBeforeMount(() => {
:deep
(
.custom-steps
)
{
width
:
100%
;
height
:
6
0
px
;
height
:
6
4
px
;
display
:
flex
;
overflow
:
auto
hidden
;
&.costume_scroll
{
&.small
{
padding-bottom
:
4px
;
}
}
.el-steps
{
width
:
100%
;
.el-step
{
min-width
:
55px
;
}
}
}
</
style
>
\ No newline at end of file
...
...
Write
Preview
Styling with
Markdown
is supported
Attach a file
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 post a comment