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
7c2d4382
Commit
7c2d4382
authored
Feb 23, 2022
by
罗超
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
2
parent
f41bfd2b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
3 deletions
+29
-3
replenish.vue
src/components/stuMan/subscribe/replenish.vue
+29
-3
No files found.
src/components/stuMan/subscribe/replenish.vue
View file @
7c2d4382
...
...
@@ -20,12 +20,22 @@
filled
v-model=
"stuInfo"
stack-label
use-input
option-value=
"StuId"
option-label=
"StuName"
:options=
"stuOptions"
label=
"学员列表"
class=
"col-10"
/>
@
filter=
"filterStu"
>
<template
v-slot:no-option
>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
</q-item>
</
template
>
</q-select>
<div
class=
"col-2 q-pt-md"
>
<q-btn
size=
"sm"
...
...
@@ -75,6 +85,7 @@ export default {
if
(
val
)
{
this
.
getStu
();
this
.
stuOptions
=
[];
this
.
AllStuOptions
=
[];
}
}
},
...
...
@@ -84,7 +95,8 @@ export default {
ChapterNo
:
0
},
stuInfo
:
""
,
stuOptions
:
[]
stuOptions
:
[],
AllStuOptions
:
[]
};
},
methods
:
{
...
...
@@ -98,7 +110,21 @@ export default {
};
getCanMakeupStuList
(
msg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
stuOptions
=
res
.
Data
;
this
.
stuOptions
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
Data
));
this
.
AllStuOptions
=
JSON
.
parse
(
JSON
.
stringify
(
res
.
Data
));
}
});
},
//筛选学生
filterStu
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
""
)
{
this
.
stuOptions
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllStuOptions
));
}
else
{
const
needle
=
val
.
toLowerCase
();
this
.
stuOptions
=
this
.
AllStuOptions
.
filter
(
v
=>
v
.
StuName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
}
});
},
...
...
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