From 217fd4724df09d649f05b1ae36f3d4bdb5d51392 Mon Sep 17 00:00:00 2001 From: lcc <805383944@qq.com> Date: Wed, 15 Oct 2025 10:14:49 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E4=BA=A7=E5=93=81=E6=8E=92?= =?UTF-8?q?=E5=BA=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- admin/src/api/car/product/index.js | 11 ++++++++ .../src/views/car/product/components/edit.vue | 12 ++++++++- admin/src/views/car/product/index.vue | 27 +++++++++++++++++++ 3 files changed, 49 insertions(+), 1 deletion(-) diff --git a/admin/src/api/car/product/index.js b/admin/src/api/car/product/index.js index 852a5f1..0810d0a 100644 --- a/admin/src/api/car/product/index.js +++ b/admin/src/api/car/product/index.js @@ -76,3 +76,14 @@ export async function updateProductCps(data) { } return Promise.reject(new Error(res.data.message)); } + +export async function updateProductSort(id, sort) { + const res = await request.put('/car/product/sort', { + id, + sort + }); + if (res.data.code === 0) { + return res.data.message; + } + return Promise.reject(new Error(res.data.message)); +} diff --git a/admin/src/views/car/product/components/edit.vue b/admin/src/views/car/product/components/edit.vue index 5c4cfe0..3a29591 100644 --- a/admin/src/views/car/product/components/edit.vue +++ b/admin/src/views/car/product/components/edit.vue @@ -79,6 +79,15 @@ v-model="form.discounts3" /> + + + --> +