Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
T
topsun-baoshen-excel
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
何远江
topsun-baoshen-excel
Commits
d4b3bc1a
Commit
d4b3bc1a
authored
May 16, 2025
by
tanghao
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
脚本标记问题处理
parent
c9fc8622
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
41 additions
and
6 deletions
+41
-6
OrderChange.vue
src/views/order/orderChange/OrderChange.vue
+14
-1
VarChange.vue
src/views/var/varChange/VarChange.vue
+27
-5
No files found.
src/views/order/orderChange/OrderChange.vue
View file @
d4b3bc1a
...
...
@@ -507,7 +507,20 @@ const showScriptNames = (array) => {
}
const
showScriptNumber
=
(
array
)
=>
{
let
value
=
array
?
array
.
map
(
item
=>
item
.
scripts
.
map
(
scrip
=>
scrip
.
scriptName
)).
length
:
0
let
arr
=
[]
let
value
=
0
;
if
(
array
){
console
.
log
(
"过滤前"
,
array
)
let
val
=
array
.
map
(
item
=>
item
.
scripts
.
map
(
scrip
=>
scrip
.
scriptName
))
val
.
forEach
(
item
=>
{
console
.
log
(
"item="
,
item
)
item
.
forEach
(
v
=>
{
arr
.
push
(
v
)
})
})
let
val1
=
arr
.
filter
(
item
=>
item
&&
item
!=
''
)
value
=
val1
.
length
}
return
value
}
...
...
src/views/var/varChange/VarChange.vue
View file @
d4b3bc1a
...
...
@@ -378,16 +378,38 @@ const showScriptNames = (array) => {
return
value
}
const
showScriptNumber
=
(
array
)
=>
{
// const showScriptNumber = (array) => {
// let value = 0;
// let arr = array.map(item =>{
// value += item.scripts.length
// // item.scripts.filter(Boolean)
// });
// return value
// }
const
showScriptNumber
=
(
array
)
=>
{
let
arr
=
[]
let
value
=
0
;
let
arr
=
array
.
map
(
item
=>
{
value
+=
item
.
scripts
.
length
// item.scripts.filter(Boolean)
});
if
(
array
){
console
.
log
(
"过滤前"
,
array
)
let
val
=
array
.
map
(
item
=>
item
.
scripts
.
map
(
scrip
=>
scrip
.
scriptName
))
val
.
forEach
(
item
=>
{
console
.
log
(
"item="
,
item
)
item
.
forEach
(
v
=>
{
arr
.
push
(
v
)
})
})
let
val1
=
arr
.
filter
(
item
=>
item
&&
item
!=
''
)
value
=
val1
.
length
}
return
value
}
const
showFilterScriptNames
=
(
array
)
=>
{
let
value
=
array
?
array
.
map
(
item
=>
item
.
filterScripts
.
map
(
scrip
=>
scrip
.
scriptName
)).
join
(
'
\
n'
):
''
return
value
...
...
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