出门证bug修复

This commit is contained in:
hongchao 2025-07-09 10:34:09 +08:00
parent 258fcfb470
commit 0a831b2842
1 changed files with 10 additions and 2 deletions

View File

@ -339,7 +339,7 @@
</el-dialog>
<!-- 出门证 -->
<el-dialog :visible.sync="showPass" width="800px" append-to-body>
<el-dialog :visible.sync="showPass" width="800px" append-to-body @close="handleDialogClose">
<el-form :model="passForm" label-width="80px" size="small" inline @submit.native.prevent>
<el-form-item label="车牌号:">
<el-input v-model="passForm.carNumber" placeholder="请输入车牌号" clearable style="width: 240px" />
@ -375,7 +375,7 @@
</div>
<div slot="footer" class="dialog-footer" style="text-align: center">
<el-button type="primary" @click="printPass"> </el-button>
<el-button @click="showPass = false"> </el-button>
<el-button @click="handleDialogClose"> </el-button>
</div>
</el-dialog>
</div>
@ -632,6 +632,14 @@ export default {
targetStyles: ['*'],
maxWidth: '900'
})
},
handleDialogClose() {
this.showPass = false
this.passForm = {
passCode: '',
passContent: '',
passTime: ''
}
}
},