Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
C
center-marketing
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
center-marketing
Commits
0005ac5b
提交
0005ac5b
authored
8月 19, 2021
作者:
pengxiaohui
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
update: 人员列表增加签到状态筛选条件
上级
9c1e3c3f
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
21 行增加
和
7 行删除
+21
-7
List.vue
src/modules/tools/signIn/views/List.vue
+1
-1
PersonList.vue
src/modules/tools/signIn/views/components/PersonList.vue
+20
-6
没有找到文件。
src/modules/tools/signIn/views/List.vue
浏览文件 @
0005ac5b
...
...
@@ -68,7 +68,7 @@
:visible
.
sync=
"personDrawerVisible"
:close-on-click-modal=
"false"
:destroy-on-close=
"true"
size=
"11
0
0px"
size=
"11
5
0px"
top=
"15px"
@
close=
"handleClose"
>
<person-list
:id=
"selectedActivity.id"
/>
...
...
src/modules/tools/signIn/views/components/PersonList.vue
浏览文件 @
0005ac5b
...
...
@@ -12,12 +12,18 @@
<el-option
label=
"邮箱"
value=
"email"
></el-option>
</el-select>
</
template
>
<
template
v-slot:filter-status=
"{ params }"
>
<el-select
v-model=
"params.sign_in_status"
placeholder=
"请选择类型"
size=
"small"
clearable
>
<el-option
label=
"已签到"
:value=
"1"
></el-option>
<el-option
label=
"未签到"
:value=
"0"
></el-option>
</el-select>
</
template
>
<
template
#
footer
>
<div
style=
"font-size:14px;"
>
已选中
{{
multipleSelection
.
length
}}
项
<el-button
style=
"margin:0 15px;"
size=
"mini"
:disabled=
"!multipleSelection.length"
@
click=
"handleRemove"
>
删除
</el-button>
<
!--
<el-button
size=
"mini"
:disabled=
"!multipleSelection.length"
@
click=
"exportSelected"
>
导出
</el-button>
--
>
<el-dropdown
size=
"small"
@
command=
"handleCommand"
>
<
el-button
size=
"mini"
@
click=
"fetchExportStudentList"
>
{{
multipleSelection
.
length
?
'导出选中项'
:
'导出全部'
}}
</el-button
>
<
!--
<
el-dropdown
size=
"small"
@
command=
"handleCommand"
>
<el-button
type=
"primary"
size=
"mini"
>
导出
<i
class=
"el-icon-arrow-down el-icon--right"
></i>
</el-button>
...
...
@@ -25,7 +31,7 @@
<el-dropdown-item
command=
"all"
>
导出全部
</el-dropdown-item>
<el-dropdown-item
command=
"selected"
:disabled=
"!multipleSelection.length"
>
导出选中项
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
</el-dropdown>
-->
<el-button
style=
"margin-left:15px;"
size=
"mini"
:disabled=
"!multipleSelection.length"
@
click=
"fetchBatchSignin(1)"
>
标记为已签到
</el-button>
<el-button
style=
"margin-left:15px;"
size=
"mini"
:disabled=
"!multipleSelection.length"
@
click=
"fetchBatchSignin(0)"
>
取消签到
</el-button>
</div>
...
...
@@ -87,7 +93,8 @@ export default {
},
filters
:
[
{
prop
:
'type'
,
slots
:
'filter-type'
},
{
type
:
'input'
,
placeholder
:
'请输入'
,
prop
:
'key'
,
size
:
'small'
}
{
type
:
'input'
,
placeholder
:
'请输入'
,
prop
:
'key'
,
size
:
'small'
},
{
prop
:
'sign_in_status'
,
slots
:
'filter-status'
},
],
columns
:
[
{
type
:
'selection'
,
minWidth
:
'50px'
,
fixed
:
'left'
},
...
...
@@ -101,12 +108,12 @@ export default {
{
prop
:
'sign_in_status'
,
label
:
'签到状态'
,
minWidth
:
'
8
0px'
,
minWidth
:
'
7
0px'
,
computed
({
row
})
{
return
row
.
sign_in_status
===
0
?
'未签到'
:
'已签到'
}
},
{
prop
:
'sign_in_time'
,
label
:
'签到时间'
,
minWidth
:
'1
3
0px'
}
{
prop
:
'sign_in_time'
,
label
:
'签到时间'
,
minWidth
:
'1
5
0px'
}
]
}
}
...
...
@@ -237,9 +244,16 @@ export default {
},
fetchExportStudentList
()
{
const
params
=
{}
console
.
log
(
this
.
tableOptions
.
remote
.
params
)
if
(
this
.
tableOptions
.
remote
.
params
.
key
)
{
params
[
this
.
tableOptions
.
remote
.
params
.
type
]
=
this
.
tableOptions
.
remote
.
params
.
key
}
if
(
this
.
tableOptions
.
remote
.
params
.
sign_in_status
!==
''
)
{
params
.
sign_in_status
=
this
.
tableOptions
.
remote
.
params
.
sign_in_status
}
if
(
this
.
multipleSelection
.
length
>
0
)
{
params
.
ids
=
this
.
multipleSelection
.
map
(
item
=>
item
.
id
)
}
exportStudents
(
this
.
id
,
params
).
then
(
res
=>
{
if
(
res
&&
res
.
type
===
'text/xlsx'
)
{
const
url
=
URL
.
createObjectURL
(
res
)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论