Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
X
xxx_phase2_web
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
夏敏伟
xxx_phase2_web
Commits
ee3fd650
Commit
ee3fd650
authored
Jul 08, 2024
by
以墨为白
🎧
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
解析excel
parent
7e70ee05
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
3 deletions
+10
-3
src/view/sjgl/wxk_public.vue
src/view/sjgl/wxk_public.vue
+10
-3
No files found.
src/view/sjgl/wxk_public.vue
View file @
ee3fd650
...
...
@@ -1301,14 +1301,15 @@ export default {
}
});
let
obj
=
[];
let
objNew
=
[];
//用于全部行
obj_tab
.
forEach
((
item
,
index
)
=>
{
if
(
index
<=
3
){
if
(
index
<=
3
){
//选择当前4行
let
arr
=
Object
.
values
(
item
);
obj
.
push
(
arr
);
}
objNew
.
push
(
Object
.
values
(
item
));
});
let
idsArr
=
[];
this
.
parameterArr
=
[];
obj
.
forEach
(
item1
=>
{
let
arr
=
this
.
psxz_tree_data
[
0
].
children
.
filter
(
item
=>
item
.
label
==
item1
[
0
]);
if
(
arr
.
length
>
0
){
...
...
@@ -1320,13 +1321,18 @@ export default {
let
arrChildren
=
arr
[
0
].
children
.
filter
(
item
=>
item
.
label
==
item1
[
1
]);
if
(
arrChildren
.
length
>
0
){
idsArr
.
push
(
arrChildren
[
0
].
id
);
this
.
parameterArr
.
push
({
name
:
arr
[
0
].
label
,
value
:
arrChildren
[
0
].
label
})
}
}
}
else
{
//当前4大类没找到其中对应的某一个如:没找到“产品类别代码”等
}
})
this
.
parameterArr
=
[];
this
.
parameterArr
.
push
({
name
:
Object
.
keys
(
obj_tab
[
0
])[
0
],
value
:
Object
.
keys
(
obj_tab
[
0
])[
1
]})
objNew
.
map
(
item1
=>
{
this
.
parameterArr
.
push
({
name
:
item1
[
0
],
value
:
item1
[
1
]});
});
console
.
log
(
this
.
parameterArr
)
this
.
clientDetails_check_typePsxz
=
idsArr
;
this
.
$refs
.
treePsxz
.
setCheckedKeys
(
idsArr
);
let
str
=
''
;
...
...
@@ -1346,6 +1352,7 @@ export default {
dangerouslyUseHTMLString
:
true
,
message
:
mesg
});
debugger
;
}
}
});
...
...
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