Commit 9ce27299 by chenwq

fix(allocationNumDialog): 修复对话框关闭事件未正确传递参数的问题

在GLDialog组件中添加:before-close属性,确保在点击关闭按钮时能正确传递'close'参数给handleClose方法,保持关闭行为的一致性。
1 parent 8d98f569
<!-- 盘点 --> <!-- 盘点 -->
<template> <template>
<GLDialog title="调拨" :visible.sync="allocationNumVisible" class="allocationNumDailog" okText="确定" @onCancel="handleClose" @onOk="handleAddConfirm"> <GLDialog title="调拨" :visible.sync="allocationNumVisible" :before-close="e => handleClose(undefined, 'close')" class="allocationNumDailog" okText="确定" @onCancel="handleClose" @onOk="handleAddConfirm">
<div class="gl-form-page gl-form-min"> <div class="gl-form-page gl-form-min">
<el-form ref="allocationNumForm" size="small" :model="infoForm" :rules="formRules" label-width="154px"> <el-form ref="allocationNumForm" size="small" :model="infoForm" :rules="formRules" label-width="154px">
<el-form-item label="调拨数量:" prop="allocationNum"> <el-form-item label="调拨数量:" prop="allocationNum">
<el-input placeholder="请输入调拨数量" v-model="infoForm.allocationNum" clearable @input="handleUpgradeNum"></el-input> <el-input placeholder="请输入调拨数量" v-model="infoForm.allocationNum" clearable @input="handleUpgradeNum"></el-input>
</el-form-item> </el-form-item>
</el-form> </el-form>
</div> </div>
</GLDialog> </GLDialog>
</template> </template>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!