Showing
1 changed file
with
6 additions
and
2 deletions
| @@ -70,13 +70,17 @@ const handleOk = async () => { | @@ -70,13 +70,17 @@ const handleOk = async () => { | ||
| 70 | resetFields() | 70 | resetFields() |
| 71 | } | 71 | } |
| 72 | 72 | ||
| 73 | +const handleCancel = () => { | ||
| 74 | + clearValidate() | ||
| 75 | + resetFields() | ||
| 76 | +} | ||
| 77 | + | ||
| 73 | defineExpose({ open }) | 78 | defineExpose({ open }) |
| 74 | </script> | 79 | </script> |
| 75 | 80 | ||
| 76 | <template> | 81 | <template> |
| 77 | <Modal | 82 | <Modal |
| 78 | - v-model:open="visible" title="属性下发" ok-text="确认" :width="400" cancel-text="取消" @cancel=" | ||
| 79 | - clearValidate()" @ok="handleOk" | 83 | + v-model:open="visible" title="属性下发" ok-text="确认" :width="400" cancel-text="取消" @cancel="handleCancel" @ok="handleOk" |
| 80 | > | 84 | > |
| 81 | <!-- <section> | 85 | <!-- <section> |
| 82 | <FormItem label="操作密码" :label-col="{ span: 24 }"> | 86 | <FormItem label="操作密码" :label-col="{ span: 24 }"> |