授课记录调整1015

This commit is contained in:
wangxuemei
2024-10-15 13:51:25 +08:00
parent 2c739fe666
commit e61f032aea
6 changed files with 86 additions and 42 deletions

View File

@@ -105,8 +105,7 @@
</div>
<div class="tableBox ">
<div style="float: right;">
<div class="pa">
<a-pagination v-if="tableDataTotal > 10" :showSizeChanger="true" :showQuickJumper="false"
:hideOnSinglePage="true" :pageSize="searchParam.pageSize" :current="searchParam.pageNo" :total="tableDataTotal"
class="pagination" @change="changePagination" />
@@ -948,6 +947,8 @@ export default {
state.deleteInTeacherdialog = false
getTableDate();
}
}).catch((err)=>{
state.deleteInTeacherdialog = false
})
}
//确认启用停用
@@ -955,13 +956,15 @@ export default {
//调用接口
let ids = {
id: state.editTeacherid,
newStatus: state.newStatus
status: state.newStatus
}
console.log(ids)
updateTeacherState(ids).then((res) => {
message.success("操作成功");
state.editTeacher = false
getTableDate();
}).catch((err)=>{
state.editTeacher = false
})
}
//取消按钮 清空输入的数据
@@ -1491,4 +1494,22 @@ export default {
::v-deep .ant-modal-close {
display: none;
}
</style>
.tableBox {
padding-bottom: 20px;
 margin: 20px 38px 30px;
::v-deep .ant-select-dropdown{
display: inline-block;
}
::v-deep .ant-select-selection-item{
margin-left: 3px;
}
::v-deep .ant-pagination-options-size-changer.ant-select{
width: 84px;
}
.pa {
width: 100%;
display: flex;
justify-content: right;
}
}
</style >