From 2e56e069d28b98ec1cdfe2fcf7f94edfab0b8f02 Mon Sep 17 00:00:00 2001 From: "DESKTOP-6C3NK6N\\WXS" <815034831@qq.com> Date: Wed, 7 Aug 2024 10:37:12 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8F=8D=E9=A6=88=E8=AE=BE=E7=BD=AE=E4=B8=BA?= =?UTF-8?q?=E5=B7=B2=E8=A7=A3=E5=86=B3=E5=90=8E=EF=BC=8C=E7=BB=9F=E8=AE=A1?= =?UTF-8?q?=E6=95=B0=E9=87=8F=E5=88=B7=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/feedBackTable/fun.js | 3 ++- src/components/feedBackTable/index.vue | 5 ++++- src/views/feedBack/index.vue | 5 +++-- .../trials-panel/trial-summary/trial-information/index.vue | 3 +++ 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/src/components/feedBackTable/fun.js b/src/components/feedBackTable/fun.js index d3083b5a..7e970a9f 100644 --- a/src/components/feedBackTable/fun.js +++ b/src/components/feedBackTable/fun.js @@ -3,7 +3,7 @@ import FEEDBACKCOMP from "./index.vue"; const FBConstructor = Vue.extend(FEEDBACKCOMP); const FBT = (options = {}) => { - const { data = {} } = options; + const { data = {}, callBack } = options; // if (!UserId) throw `UserId is requred.but ${UserId}` const id = `FB${new Date().getTime()}`; const instance = new FBConstructor(); @@ -13,6 +13,7 @@ const FBT = (options = {}) => { document.body.appendChild(instance.vm.$el); instance.vm.open({ ...data }); instance.vm.$on("success", (Id) => { + if (callBack) callBack(); }); instance.vm.$on("closed", () => { document.body.removeChild(instance.vm.$el); diff --git a/src/components/feedBackTable/index.vue b/src/components/feedBackTable/index.vue index d4bb1d11..bc957de7 100644 --- a/src/components/feedBackTable/index.vue +++ b/src/components/feedBackTable/index.vue @@ -10,7 +10,7 @@
{{ title }}
- + @@ -46,6 +46,9 @@ export default { return `${this.$t("feedBack:table:title")}`; } }, + success() { + this.$emit("success"); + }, }, }; diff --git a/src/views/feedBack/index.vue b/src/views/feedBack/index.vue index d5a6e827..63f6bd21 100644 --- a/src/views/feedBack/index.vue +++ b/src/views/feedBack/index.vue @@ -116,14 +116,14 @@ > {{ $t("common:button:reset") }} - {{ $t("common:button:export") }} - + --> { this.getList(); + this.$emit("success"); }, }); }, diff --git a/src/views/trials/trials-panel/trial-summary/trial-information/index.vue b/src/views/trials/trials-panel/trial-summary/trial-information/index.vue index 17553d56..11664b4c 100644 --- a/src/views/trials/trials-panel/trial-summary/trial-information/index.vue +++ b/src/views/trials/trials-panel/trial-summary/trial-information/index.vue @@ -179,6 +179,9 @@ export default { name: this.$route.query.researchProgramNo, trialId: this.trialId, }, + callBack: () => { + this.initForm(); + }, }); }, },