|
|
|
|
@ -1,6 +1,6 @@
|
|
|
|
|
<script setup>
|
|
|
|
|
import { ElMessage } from "element-plus";
|
|
|
|
|
import { reactive, ref, computed, watch, onActivated, onDeactivated } from "vue";
|
|
|
|
|
import { reactive, ref, computed, watch,onUnmounted, onActivated, onDeactivated } from "vue";
|
|
|
|
|
|
|
|
|
|
import { sendBonus } from "@/api/bonus";
|
|
|
|
|
|
|
|
|
|
@ -20,6 +20,9 @@ const emit = defineEmits(["update:show", "reload"]);
|
|
|
|
|
const showDialog = computed({
|
|
|
|
|
get: () => props.show,
|
|
|
|
|
set: (value) => {
|
|
|
|
|
if(!value){
|
|
|
|
|
formRef.value.resetFields();
|
|
|
|
|
}
|
|
|
|
|
emit("update:show", value);
|
|
|
|
|
},
|
|
|
|
|
});
|
|
|
|
|
@ -65,6 +68,10 @@ onActivated(() => {
|
|
|
|
|
onDeactivated(() => {
|
|
|
|
|
console.log("onDeactivated");
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
onUnmounted(() => {
|
|
|
|
|
console.log("onUnmounted");
|
|
|
|
|
});
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<template>
|
|
|
|
|
|