a-modal.main(
title='学生明细'
destroyOnClose
v-model:visible='props.visible'
:width="800",
@cancel='onCancel'
)
a-table.table(
rowKey='code'
size='middle'
:columns='columnStudent'
:data-source='studentData'
:pagination='false'
:loading="loadingUserList"
)
template(v-slot:studentEdit='{ text, record }')
.operation.pointer(@click="editUser(record)")
b-icon(type='iconbianji4')
template(v-slot:studentReset='{ text, record }')
.operation.pointer(@click="resetUser(record)")
b-icon(type='iconzhongzhi')
template(v-slot:studentDelete='{ text, record }')
.operation.pointer(@click="delUser(record.code)")
b-icon(type='iconshanchu')
template(#footer)
.btn-group.flex.flex-row.justify-between
a-button(
key='create'
type='primary'
@click="changeBoolean('modalStudentAdd',true)"
) 创建
.btn-right
a-button(key='back', type='primary', ghost @click='onCancel') 取消
a-button(key='submit', type='primary', @click='onCancel') 确定
.page.flex.flex-row.justify-end
a-pagination(
:size='pageConfig.size'
:current='pageConfig.current'
:total='pageConfig.totalSize'
:page-size="pageConfig.pageSize"
:page-size-options='pageConfig.options'
:show-quick-jumper='pageConfig.showJumper'
:showSizeChanger='pageConfig.showSize'
@change='getFetchData'
@showSizeChange='onChangeSize'
)
//- modal
the-edit-student(
key='modalStudentEdit'
:isEdit='true'
:visible='modalEditStudent'
:classId='classId'
@onSubmit="modalCallback('modalStudentEdit')"
@onCancel="modalCallback('modalStudentEdit')"
)
the-add-student(
key='modalStudentAdd'
:isEdit='false'
:visible='modalAddStudent'
:classId='classId'
@onSubmit="modalCallback('modalStudentAdd')"
@onCancel="modalCallback('modalStudentAdd')"
)