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
c12a66d3
Commit
c12a66d3
authored
Aug 25, 2021
by
zhengke
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
fa2923ff
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
48 additions
and
0 deletions
+48
-0
examPaper.vue
src/pages/course/examPaper.vue
+48
-0
No files found.
src/pages/course/examPaper.vue
View file @
c12a66d3
...
...
@@ -64,6 +64,19 @@
<q-select
@
input=
"refreshPage"
clearable
filled
v-model=
"msg.QExamineStatus"
:options=
"auditStatusList"
emit-value
map-options
label=
"审核状态"
/>
</div>
<div
class=
"col-3"
>
<q-select
v-model=
"msg.QCreateBy"
:options=
"EmployeeList"
filled
use-input
label=
"创建人"
@
input=
"refreshPage"
clearable
option-label=
"EmployeeName"
option-value=
"Id"
ref=
"EmployeeName"
class=
"col-6 q-pb-lg"
emit-value
map-options
@
filter=
"filterFn"
>
<
template
v-slot:no-option
>
<q-item>
<q-item-section
class=
"text-grey"
>
未找到相关数据
</q-item-section>
</q-item>
</
template
>
</q-select>
</div>
</div>
<div
class=
"page-option"
>
<q-btn
color=
"accent"
size=
"sm"
v-if=
"IsCreateFolder"
class=
"q-mr-md"
label=
"新增文件夹"
...
...
@@ -96,6 +109,9 @@
import
{
GetPaperPage
}
from
'../../api/teacher/index'
;
import
{
queryEmployee
}
from
'../../api/users/user'
;
//获取员工
//获取校区列表
export
default
{
components
:
{
...
...
@@ -116,6 +132,7 @@
QStartTime
:
""
,
//开始时间
QEndTime
:
""
,
//结束时间
QExamineStatus
:
''
,
//审核状态
QCreateBy
:
''
//创建人
},
pageCount
:
0
,
loading
:
false
,
...
...
@@ -146,6 +163,8 @@
label
:
"作废"
}
],
EmployeeList
:
[],
//员工列表
AllemployeeList
:
[],
//所有员工列表
}
},
created
()
{
...
...
@@ -161,9 +180,38 @@
})
},
mounted
()
{
this
.
getEmployee
();
this
.
getList
();
},
methods
:
{
//筛选员工
filterFn
(
val
,
update
)
{
update
(()
=>
{
if
(
val
===
''
)
{
this
.
EmployeeList
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
AllemployeeList
))
}
else
{
const
needle
=
val
.
toLowerCase
();
this
.
EmployeeList
=
this
.
AllemployeeList
.
filter
(
v
=>
v
.
EmployeeName
.
toLowerCase
().
indexOf
(
needle
)
>
-
1
);
}
})
},
//获取业务员
getEmployee
()
{
var
qMsg
=
{
Dept_Id
:
0
}
queryEmployee
(
qMsg
).
then
(
res
=>
{
if
(
res
.
Code
==
1
)
{
this
.
EmployeeList
=
res
.
Data
;
this
.
AllemployeeList
=
res
.
Data
;
let
obj
=
{
Id
:
0
,
EmployeeName
:
'不限'
}
this
.
EmployeeList
.
unshift
(
obj
);
}
})
},
//翻页
changePage
(
val
)
{
this
.
msg
.
pageIndex
=
val
;
...
...
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