From 3e3f3349b4119b9054caa6bbf74ff382c3ad4998 Mon Sep 17 00:00:00 2001 From: wanglei <1336977847@qq.com> Date: Wed, 26 Jun 2024 09:24:04 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E9=97=A8=E5=BA=97=E6=A1=A3=E6=A1=88?= =?UTF-8?q?=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../AppArchives/components/Add.vue | 5 +- .../AppArchives/components/List.vue | 137 ++++++++++++++---- 2 files changed, 110 insertions(+), 32 deletions(-) diff --git a/project/fengdu/AppOutSource/AppArchives/components/Add.vue b/project/fengdu/AppOutSource/AppArchives/components/Add.vue index 87686370..a4345fcf 100644 --- a/project/fengdu/AppOutSource/AppArchives/components/Add.vue +++ b/project/fengdu/AppOutSource/AppArchives/components/Add.vue @@ -247,7 +247,6 @@ export default { getCheckedTree() { const nodes = this.$refs.treeRef.getCheckedNodes() - console.log(nodes) if (!nodes.length) { return this.$message.error('请选择网格') } @@ -282,14 +281,14 @@ export default { async addOrUpdate() { try { - const {code, data} = await this.instance.post(`/app/appshoparchives/addOrUpdate`,{ + const {code} = await this.instance.post(`/app/appshoparchives/addOrUpdate`,{ ...this.form, fileId:this.form.fileUrl[0]?.id, fileUrl:this.form.fileUrl[0]?.path, }) if (code === 0) { this.$message.success('保存成功'); - this.form = {...data} + this.cancel() } } catch (e) { console.error(e) diff --git a/project/fengdu/AppOutSource/AppArchives/components/List.vue b/project/fengdu/AppOutSource/AppArchives/components/List.vue index 56986aa8..e30c4ff6 100644 --- a/project/fengdu/AppOutSource/AppArchives/components/List.vue +++ b/project/fengdu/AppOutSource/AppArchives/components/List.vue @@ -2,8 +2,7 @@