From 4b5749d04ec50f6f2cc1485cece3ce11297e25a9 Mon Sep 17 00:00:00 2001 From: xuxiaoming Date: Fri, 18 Feb 2022 10:45:37 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=8F=91=E5=B8=83=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=9B=9E=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../demandPlanning/articleDemand/index.vue | 7 +++++-- .../demandPlanning/articleDemand/public.vue | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue index 6ed04ae..545551f 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/index.vue @@ -401,10 +401,13 @@ // }); } }, - cancelPublicDialog(opt) { + cancelPublicDialog(data) { this.showPublicDialog = false - if (opt == "submit") { + if (data !== false) { this.handleQuery() + this.historyList.push({ + publishedVersionNr:data["version"] + }) } }, toggleChar() { diff --git a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue index f77b0ca..d76a902 100644 --- a/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue +++ b/src/views/productionPlanning/customerForecastDemandReview/demandPlanning/articleDemand/public.vue @@ -156,7 +156,7 @@ publicData(this.formData).then(({ data = [] }) => { this.loading = false this.$message({ type: "success", message: "发布成功" }); - this.$emit("cancelHandle", "submit") + this.$emit("cancelHandle", this.formData) }).catch(() => { this.loading = false });