Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
factory_front
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
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
qinjianhui
factory_front
Commits
46bb957d
Commit
46bb957d
authored
Aug 01, 2025
by
wuqian
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修复ts
parent
d4383eaa
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
src/views/order/podUs/index.vue
+12
-3
No files found.
src/views/order/podUs/index.vue
View file @
46bb957d
...
...
@@ -1373,9 +1373,7 @@
<
div
class
=
"flex-between"
>
<
div
v
-
if
=
"cardItem.imageAry"
class
=
"images-position"
>
<
div
v
-
for
=
"(item, index) in JSON.parse(
cardItem.imageAry || '',
)?.filter((el: { title: string
}
) => el.title)||[]"
v
-
for
=
"(item, index) in filteredImages(cardItem.imageAry)"
:
key
=
"index"
:
title
=
"item.title"
class
=
"item-image"
...
...
@@ -2256,6 +2254,17 @@ const pickerOptions = {
}
,
],
}
const
filteredImages
=
(
imageAry
:
string
|
null
)
=>
{
if
(
!
imageAry
)
return
[]
try
{
const
parsed
=
JSON
.
parse
(
imageAry
)
return
Array
.
isArray
(
parsed
)
?
parsed
.
filter
((
el
:
{
title
:
string
}
)
=>
el
.
title
)
:
[]
}
catch
{
return
[]
}
}
const
timeRange
=
ref
<
string
[]
>
([])
const
getDateRange
=
(
days
=
0
,
type
:
'past'
|
'future'
=
'past'
)
=>
{
const
end
=
dayjs
()
...
...
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