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
da83615f
authored
2026-01-13 09:17:47 +0800
by
lihua
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
解决翻页栏和展开收起问题
1 parent
883f5933
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
6 deletions
src/views/data_smart_contract/traceabilityInquiryManage.vue
src/views/data_smart_contract/traceabilityInquiryManage.vue
View file @
da83615
...
...
@@ -72,7 +72,9 @@ const getBlockTableData = () => {
processTableInfo
.
value
.
loading
=
false
processTableInfo
.
value
.
data
=
data
.
records
||
[]
processTableInfo
.
value
.
page
.
limit
=
data
.
pageSize
blockPage
.
value
.
limit
=
data
.
pageSize
;
processTableInfo
.
value
.
page
.
curr
=
data
.
pageIndex
blockPage
.
value
.
curr
=
data
.
pageIndex
;
processTableInfo
.
value
.
page
.
rows
=
data
.
totalRows
}
else
{
res
?.
msg
&&
proxy
.
$ElMessage
.
error
(
res
?.
msg
)
...
...
@@ -95,7 +97,7 @@ onBeforeMount(() => {
toBlockTableSearch
({});
})
const
activities
:
any
=
ref
(
[]
);
const
activities
:
any
=
ref
(
{}
);
const
detailLoading
=
ref
(
false
);
...
...
@@ -114,9 +116,9 @@ const handleTableExpandChange = (row: any, expandedRows: any[]) => {
detailLoading
.
value
=
false
;
if
(
res
?.
code
==
proxy
.
$passCode
)
{
const
data
=
res
.
data
?.
records
||
[]
activities
.
value
=
[];
activities
.
value
[
row
.
code
]
=
[];
for
(
const
d
of
data
)
{
activities
.
value
.
push
({
activities
.
value
[
row
.
code
]
.
push
({
timestamp
:
d
.
labelName
+
' '
+
d
.
updateTime
,
type
:
'primary'
,
hollow
:
true
,
...
...
@@ -124,7 +126,7 @@ const handleTableExpandChange = (row: any, expandedRows: any[]) => {
})
}
}
else
{
activities
.
value
=
[];
activities
.
value
[
row
.
code
]
=
[];
res
?.
msg
&&
proxy
.
$ElMessage
.
error
(
res
?.
msg
)
}
})
...
...
@@ -146,7 +148,7 @@ const handleTableExpandChange = (row: any, expandedRows: any[]) => {
<el-table-column
type=
"expand"
>
<template
#
default=
"scope"
>
<el-timeline
style=
"width: 100%;min-height: 150px;"
v-loading=
"detailLoading"
>
<el-timeline-item
v-for=
"(activity, index) in
activities
"
:key=
"index"
:timestamp=
"activity.timestamp"
<el-timeline-item
v-for=
"(activity, index) in
(activities[scope.row.code] || [])
"
:key=
"index"
:timestamp=
"activity.timestamp"
:hollow=
"activity.hollow"
:type=
"activity.type"
placement=
"top"
>
<div
class=
"list_panel"
>
<template
v-if=
"activity.info?.bizType == '合约'"
>
...
...
@@ -242,7 +244,7 @@ const handleTableExpandChange = (row: any, expandedRows: any[]) => {
</
template
>
</el-table-column>
</el-table>
<PageNav
:pageInfo=
"
blockP
age"
@
pageChange=
"processTablePageChange"
/>
<PageNav
:pageInfo=
"
processTableInfo.p
age"
@
pageChange=
"processTablePageChange"
/>
</div>
</div>
</template>
...
...
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