详情弹框关闭时将tabs项置空
Showing
1 changed file
with
4 additions
and
1 deletions
| 1 | <template> | 1 | <template> |
| 2 | <!-- 编辑 --> | 2 | <!-- 编辑 --> |
| 3 | <el-dialog :close-on-click-modal="false" top="0" custom-class="dialogBox editDialogBox mainCenter" | 3 | <el-dialog :close-on-click-modal="false" top="0" @close="closeDialog" custom-class="dialogBox editDialogBox mainCenter" |
| 4 | :visible.sync="dialogVisible" width="85%"> | 4 | :visible.sync="dialogVisible" width="85%"> |
| 5 | <div slot="title" class="dialog_title" ref="dialogTitle"> | 5 | <div slot="title" class="dialog_title" ref="dialogTitle"> |
| 6 | <b>{{ title || '标题' }}</b> | 6 | <b>{{ title || '标题' }}</b> |
| ... | @@ -218,6 +218,9 @@ export default { | ... | @@ -218,6 +218,9 @@ export default { |
| 218 | }, | 218 | }, |
| 219 | closeDialog () { | 219 | closeDialog () { |
| 220 | this.dialogVisible = false; | 220 | this.dialogVisible = false; |
| 221 | //关闭弹框时将tabs项置空 | ||
| 222 | this.editItem = ""; | ||
| 223 | this.headerList = []; | ||
| 221 | }, | 224 | }, |
| 222 | submitForm () { | 225 | submitForm () { |
| 223 | let _this = this; | 226 | let _this = this; | ... | ... |
-
Please register or sign in to post a comment