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 @@ - - - - - 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 @@ - - - - -