Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
confucius
Project
Project
Details
Activity
Releases
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
罗超
confucius
Commits
f25e8d43
Commit
f25e8d43
authored
Aug 19, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b76a84e6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
21 deletions
+7
-21
classstutree-form.vue
src/components/exam/classstutree-form.vue
+7
-21
No files found.
src/components/exam/classstutree-form.vue
View file @
f25e8d43
...
...
@@ -268,7 +268,6 @@
dataList
:
[],
//数据列表
checkedStu
:
[],
//选中数据
checked
:
false
,
isReSearch
:
false
}
},
mounted
()
{
...
...
@@ -332,30 +331,17 @@
},
//装进右侧选中方法
getCkedChild
(){
if
(
!
this
.
isReSearch
){
this
.
checkedStu
=
[];
this
.
dataList
.
forEach
(
x
=>
{
x
.
SubList
.
forEach
(
y
=>
{
if
(
y
.
IsCheck
){
this
.
checkedStu
.
push
(
y
);
}
})
})
}
else
{
let
newArr
=
[];
this
.
dataList
.
forEach
(
x
=>
{
x
.
SubList
.
forEach
(
y
=>
{
if
(
y
.
IsCheck
){
newArr
.
push
(
y
);
}
})
this
.
checkedStu
=
[];
this
.
dataList
.
forEach
(
x
=>
{
x
.
SubList
.
forEach
(
y
=>
{
if
(
y
.
IsCheck
){
this
.
checkedStu
.
push
(
y
);
}
})
this
.
checkedStu
=
this
.
checkedStu
.
concat
(
newArr
);
}
})
},
//重新查询
research
()
{
this
.
isReSearch
=
true
;
this
.
getClassStudentTree
();
},
//获取题库分页列表
...
...
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