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
bc5b44c3
Commit
bc5b44c3
authored
Apr 29, 2021
by
黄奎
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://gitlab.oytour.com/luochao/confucius
parents
ea62d681
d68c76db
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
3 deletions
+12
-3
classstu-form.vue
src/components/course/classstu-form.vue
+12
-3
No files found.
src/components/course/classstu-form.vue
View file @
bc5b44c3
...
...
@@ -33,8 +33,8 @@
<div
style=
"margin:10px 0 15px 0;"
>
邀请新学员
</div>
</div>
<div
class=
"drop_NameDown"
>
<q-select
standout=
"bg-primary text-white"
v-model=
"checkedStudent"
:options=
"InvitationList
"
option-value=
"StuId"
option-label=
"StuName"
label=
"选择学员"
/>
<q-select
dense
standout
filled
v-model=
"checkedStudent"
:options=
"InvitationOptions
"
@
filter=
"filterInvitaFn"
emit-value
map-options
input-debounce=
"0"
use-input
option-value=
"StuId"
option-label=
"StuName"
label=
"选择学员"
/>
</div>
<q-card-actions
align=
"right"
class=
"bg-white"
style=
"margin-top:20px;"
>
<q-btn
label=
"取消"
flat
color=
"grey-10"
style=
"font-weight:400 !important"
@
click=
"ishowInvit=false"
/>
...
...
@@ -148,6 +148,7 @@
},
InvitationList
:
[],
//学员下拉数据
checkedStudent
:
''
,
//选择学员
InvitationOptions
:[]
}
},
created
()
{
...
...
@@ -158,6 +159,14 @@
this
.
getStudentList
();
},
methods
:
{
filterInvitaFn
(
val
,
update
,
abort
)
{
update
(()
=>
{
this
.
InvitationOptions
=
this
.
InvitationList
.
filter
(
v
=>
v
.
StuName
.
indexOf
(
val
)
>
-
1
);
});
},
//获取学员信息
getStudentData
()
{
this
.
studentList
=
[];
...
...
@@ -220,7 +229,7 @@
GetStudentList
({}).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
InvitationList
=
res
.
Data
;
console
.
log
(
"this.InvitationList"
,
this
.
InvitationList
)
;
this
.
InvitationOptions
=
this
.
InvitationList
;
}
})
},
...
...
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