mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-22 17:26:46 +08:00
讲师管理bug
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user