|
|
@@ -1,12 +1,12 @@
|
|
|
<template>
|
|
|
- <uni-popup ref="fileRef" type="center" background-color="#fff">
|
|
|
- <view class="dialog-container">
|
|
|
- <view class="dialog-header">
|
|
|
- <text class="dialog-title">{{ form.title }}</text>
|
|
|
- <view class="dialog-close" @click="close">
|
|
|
- <text>×</text>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
+ <cwg-popup :title="form.title" :visible="visible" @close="close" @confirm="submit" >
|
|
|
+<!-- <view class="dialog-container">-->
|
|
|
+<!-- <view class="dialog-header">-->
|
|
|
+<!-- <text class="dialog-title">{{ form.title }}</text>-->
|
|
|
+<!-- <view class="dialog-close" @click="close">-->
|
|
|
+<!-- <text>×</text>-->
|
|
|
+<!-- </view>-->
|
|
|
+<!-- </view>-->
|
|
|
<uni-forms ref="formRef" :rules="rules" :model="form" labelWidth="200" label-position="top"
|
|
|
class="crm-form">
|
|
|
<uni-row class="form-row uni-row1">
|
|
|
@@ -55,12 +55,12 @@
|
|
|
</template>
|
|
|
</uni-row>
|
|
|
</uni-forms>
|
|
|
- <view class="dialog-footer">
|
|
|
- <view class="btn btn-cancel" @click="close">{{ t('Btn.Cancel') }}</view>
|
|
|
- <view class="btn btn-confirm" @click="submit">{{ t('Btn.Confirm') }}</view>
|
|
|
- </view>
|
|
|
- </view>
|
|
|
- </uni-popup>
|
|
|
+<!-- <view class="dialog-footer">-->
|
|
|
+<!-- <view class="btn btn-cancel" @click="close">{{ t('Btn.Cancel') }}</view>-->
|
|
|
+<!-- <view class="btn btn-confirm" @click="submit">{{ t('Btn.Confirm') }}</view>-->
|
|
|
+<!-- </view>-->
|
|
|
+<!-- </view>-->
|
|
|
+ </cwg-popup>
|
|
|
</template>
|
|
|
|
|
|
<script setup lang="ts">
|
|
|
@@ -82,6 +82,7 @@ const emit = defineEmits(["success"]);
|
|
|
|
|
|
const fileRef = ref<any>(null);
|
|
|
const formRef = ref<any>(null);
|
|
|
+const visible = ref(false);
|
|
|
|
|
|
const form = ref<AddBankForm>({});
|
|
|
|
|
|
@@ -111,12 +112,14 @@ const open = async (item) => {
|
|
|
|
|
|
|
|
|
getBankList()
|
|
|
- fileRef.value?.open();
|
|
|
+ visible.value = true
|
|
|
+ // fileRef.value?.open();
|
|
|
};
|
|
|
|
|
|
// 关闭弹窗
|
|
|
const close = () => {
|
|
|
- fileRef.value?.close();
|
|
|
+ // fileRef.value?.close();
|
|
|
+ visible.value = false
|
|
|
resetForm();
|
|
|
};
|
|
|
|