From 8c7a9272e3fd3ce60ed3be6850890b8a57ba9b0b Mon Sep 17 00:00:00 2001 From: lion <120344285@qq.com> Date: Wed, 17 May 2023 14:47:46 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=A7=E5=93=81=E6=9B=B4=E6=94=B9=E5=BA=8F?= =?UTF-8?q?=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../activity/component/showActiveOrder.vue | 330 ++++---- .../productService/components/addProduct.vue | 20 +- .../productService/productServiceManage.vue | 772 +++++++++--------- 3 files changed, 590 insertions(+), 532 deletions(-) diff --git a/src/views/activity/component/showActiveOrder.vue b/src/views/activity/component/showActiveOrder.vue index 6c50a97..1486f62 100644 --- a/src/views/activity/component/showActiveOrder.vue +++ b/src/views/activity/component/showActiveOrder.vue @@ -1,166 +1,170 @@ - - - - - - {{name+'订单列表'}} - - - - - 导出 - - - - - - - - - - - - diff --git a/src/views/productService/components/addProduct.vue b/src/views/productService/components/addProduct.vue index d1ad768..61cebe0 100644 --- a/src/views/productService/components/addProduct.vue +++ b/src/views/productService/components/addProduct.vue @@ -235,7 +235,8 @@ return { id: '', isShow: false, - type: 'add', + type: 'add', + sortnumberNew:'', action: `${process.env.VUE_APP_BASE_API}api/admin/upload-file`, pickerOptions: { shortcuts: [{ @@ -376,7 +377,8 @@ time: [res?.start_time, res?.end_time], sortnumber: res?.sortnumber, content: res?.content - } + } + console.log("form",this.form) // this.$refs['tinymce'].setContent(this.form.content || ' ') }, @@ -440,7 +442,13 @@ // }else{ // return str // } - // }, + // }, + async updateSortNumber(){ + await this.getDetail() + this.form.sortnumber = this.sortnumberNew + await this.submit() + + }, submit() { if (this.type === 'add'||this.type === 'copy') { store({ @@ -471,7 +479,8 @@ }) return } - if (this.type === 'editor') { + if (this.type === 'editor') { + // return save({ id: this.id, name: this.form.name, @@ -495,7 +504,8 @@ Message({ type: 'success', message: '编辑商品成功' - }) + }) + this.sortnumberNew = "" this.isShow = false this.$emit('refresh') }) diff --git a/src/views/productService/productServiceManage.vue b/src/views/productService/productServiceManage.vue index 76cb25e..a4083c6 100644 --- a/src/views/productService/productServiceManage.vue +++ b/src/views/productService/productServiceManage.vue @@ -1,365 +1,409 @@ - - - - - - - - - - - - 所属商户 - - --> - - - {{item.name}} - - - - - - - - - 状态 - - - 未启用 - 启用 - 全部 - - - - - - 类别 - - - select.productTypeId = e.at(-1)"> - - - - - - 查询 - 新增 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 编辑 - 复制新增 - - 删除 - - - - - - - - - - - - - - - -