From 6a43e631b56914b9339909942ab0146ab9779b1a Mon Sep 17 00:00:00 2001 From: dt_2916866708 <> Date: Fri, 12 Jan 2024 15:26:43 +0800 Subject: [PATCH] =?UTF-8?q?=E5=95=86=E5=93=81=E5=88=86=E7=B1=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Category/edit.vue | 12 ++++-- src/components/Upload/index.vue | 39 +++++++++--------- src/views/product/productClassify/index.vue | 45 ++++++++++++--------- 3 files changed, 54 insertions(+), 42 deletions(-) diff --git a/src/components/Category/edit.vue b/src/components/Category/edit.vue index 61b7e3e..fdbba53 100644 --- a/src/components/Category/edit.vue +++ b/src/components/Category/edit.vue @@ -16,8 +16,8 @@ - + 确定 @@ -43,7 +43,7 @@ export default { }, data() { return { - model:"add", + model:"classifySave", loadingBtn: false, constants: [], editPram: { @@ -66,10 +66,13 @@ export default { // this.initEditData() }, methods: { + updateModel(e){ + this.model = e + }, uploadSuccess(e, res) { if (res.code == 20000) { ({ publicUrl: this.editPram.icon } = res.data); - } + } }, // 点击图标 addIcon() { }, @@ -84,6 +87,7 @@ export default { addTreeListLabelForCasCard(arr, child) { }, handlerSubmit() { + console.log(this.model,'454545') productApi[this.model](this.editPram).then((result) => { if(result.code==20000){ this.$parent.$parent.editDialogConfig.visible=false; diff --git a/src/components/Upload/index.vue b/src/components/Upload/index.vue index e5131a5..f8b9120 100644 --- a/src/components/Upload/index.vue +++ b/src/components/Upload/index.vue @@ -1,17 +1,15 @@