讲师管理bug

This commit is contained in:
zhangsir
2024-12-31 09:21:33 +08:00
parent 6ca854aab1
commit 13101873f3
4 changed files with 31 additions and 8 deletions

View File

@@ -90,6 +90,9 @@
</a-modal>
</div>
<!-- 抽屉 -->
<div class="example" v-if="example">
<a-spin />
</div>
<a-drawer class="largeDrawerInside" v-model:visible="teacherdialog" :closable="false" :title="false" placement="right" width="60%" :maskClosable="false" >
<div style="padding:24px;">
<div class="headers" style="margin-top: -24px">
@@ -318,6 +321,7 @@ export default{
setup() {
const formRef = ref();
const state = reactive({
example: false,
editParams: true,
editIndex: 0,
tableDataTotal: 0,
@@ -816,6 +820,7 @@ const getTableDate = (obj) => {
dialog({
content: val?'是否确认提交一旦提交将进入BPM系统审核流程':'是否确认保存',
ok: () => {
state.example = true;
if (state.vf == false) {
updateTrainOrg(state.formParam).then(res => {
if(res.data.code == 200){
@@ -826,10 +831,12 @@ const getTableDate = (obj) => {
message.error(res.data.msg)
}
state.teacherdialog = false;
state.example = false;
}).catch(err=>{
message.destroy();
message.error(err.data.msg)
state.teacherdialog = false;
state.example = false;
cancel()
})
}else {
@@ -838,11 +845,13 @@ const getTableDate = (obj) => {
state.teacherdialog = false;
cancel()
searchSubmit();
state.example = false;
}).catch(err=>{
message.destroy();
message.error(err.data.msg)
state.teacherdialog = false;
cancel()
state.example = false;
})
}
}
@@ -903,6 +912,18 @@ const getTableDate = (obj) => {
</script>
<style lang="scss" scoped>
.example{
width: 100%;
height: 100%;
background: rgba(0, 0, 0, 0.45);
position: fixed;
top: 0;
left: 0;
z-index: 999999;
display: flex;
justify-content: center;
align-items: center;
}
.headers {
height: 73px;
border-bottom: 1px solid #e8e8e8;