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
324c7b51
Commit
324c7b51
authored
Jul 17, 2024
by
高飞
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://192.168.168.218/xiaminwei/xxx_phase2_web
parents
8d1f37eb
ee3fd650
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
9 deletions
+16
-9
src/view/sjgl/wxk_public.vue
src/view/sjgl/wxk_public.vue
+16
-9
No files found.
src/view/sjgl/wxk_public.vue
View file @
324c7b51
...
...
@@ -1362,32 +1362,38 @@ export default {
}
});
let
obj
=
[];
obj_tab
.
forEach
((
item
,
index
)
=>
{
if
(
index
<=
3
)
{
let
objNew
=
[];
//用于全部行
obj_tab
.
forEach
((
item
,
index
)
=>
{
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
)
{
if
(
item1
[
1
]
!=
''
&&
item1
[
1
]
!=
undefined
)
{
item1
[
1
]
=
item1
[
1
]
+
''
;
obj
.
forEach
(
item1
=>
{
let
arr
=
this
.
psxz_tree_data
[
0
].
children
.
filter
(
item
=>
item
.
label
==
item1
[
0
]);
if
(
arr
.
length
>
0
){
if
(
item1
[
1
]
!=
''
&&
item1
[
1
]
!=
undefined
){
item1
[
1
]
=
item1
[
1
]
+
''
;
// let arrItem = item1[1].split(',');
// arrItem.forEach(i=>{
// })
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
=
''
;
...
...
@@ -1407,6 +1413,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