在线人员弹窗关闭输入框置空

This commit is contained in:
zhangsir
2024-08-12 09:53:10 +08:00
parent 6178a7074f
commit 66d2a905a5
2 changed files with 14 additions and 1 deletions

View File

@@ -344,6 +344,10 @@ export default {
manageStudyData: {
type: Object,
default: () => ({})
},
isShowDialog:{
type: Boolean,
default: false
}
},
data() {
@@ -418,6 +422,15 @@ export default {
this.learningSituation.name = ''
}
},
isShowDialog(val){
if(!val){
this.signup.status = null
this.signup.name = ''
this.learningRecords.status = null
this.learningRecords.name = ''
this.value = ''
}
}
},
mounted() {
this.getSignupList();

View File

@@ -196,7 +196,7 @@
</el-dialog>
<!--课程管理-->
<el-dialog custom-class="g-dialog" title="课程学习管理" width="900px" :visible.sync="manageStudy.dlgShow" :close-on-click-modal="false">
<manager :manageStudyData="manageStudyData"></manager>
<manager :manageStudyData="manageStudyData" :isShowDialog="manageStudy.dlgShow"></manager>
<template #footer>
<el-button @click="manageStudy.dlgShow = false">关闭</el-button>
</template>