|
@@ -1,5 +1,5 @@
|
|
|
<template>
|
|
<template>
|
|
|
- <cwg-popup :title="title" :visible="visible" @close="onPopupClose" @confirm="submit">
|
|
|
|
|
|
|
+ <cwg-popup :title="title" :visible="visible" @close="close" @confirm="submit">
|
|
|
<!-- <uni-popup ref="popupRef" type="center" style="z-index: 999;">-->
|
|
<!-- <uni-popup ref="popupRef" type="center" style="z-index: 999;">-->
|
|
|
<!-- <view class="dialog-container">-->
|
|
<!-- <view class="dialog-container">-->
|
|
|
<!-- <view class="dialog-header">-->
|
|
<!-- <view class="dialog-header">-->
|
|
@@ -341,13 +341,14 @@ const open = async (type: number) => {
|
|
|
|
|
|
|
|
// 关闭弹窗
|
|
// 关闭弹窗
|
|
|
const close = () => {
|
|
const close = () => {
|
|
|
|
|
+ resetForm();
|
|
|
visible.value = false
|
|
visible.value = false
|
|
|
|
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
// 弹窗真正关闭后清空表单
|
|
// 弹窗真正关闭后清空表单
|
|
|
const onPopupClose = () => {
|
|
const onPopupClose = () => {
|
|
|
- resetForm();
|
|
|
|
|
|
|
+
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
// 重置表单
|
|
// 重置表单
|