热门推荐 / 活动促销
- - {{ category.first_level_name }} | @@ -19,12 +19,12 @@
From 285c9409d599ba0cbbe9f0bc4035a4da27c88fc9 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E6=9C=A8=E7=93=9C=E4=B8=80=E5=9D=97=E5=85=AB?=
<2523890936@qq.com>
Date: Thu, 14 Aug 2025 14:59:34 +0800
Subject: [PATCH] bugfix
---
f/web-kboss/src/api/ncmatch/index.js | 29 +-
f/web-kboss/src/router/index.js | 105 +++-
f/web-kboss/src/utils/eventBus.js | 6 +
.../customer/approveMangement/approvedPro.vue | 26 +
.../customer/approveMangement/pendingPro.vue | 26 +
.../src/views/customer/demand/demandList.vue | 36 ++
.../views/customer/demand/rejectDemand.vue | 36 ++
.../productMangement/commonBox/index.vue | 212 +++++--
.../productMangement/commonDetail/index.vue | 112 +++-
.../productMangement/productList/index.vue | 14 +-
.../productMangement/rejectedPro/index.vue | 37 ++
.../views/homePage/ncmatch/mainPage/index.vue | 15 +-
.../mainPage/menuAside/buildNcmatchTree.js | 20 +-
.../ncmatch/mainPage/menuAside/index.vue | 92 +--
.../ncmatch/mainPage/sendProduct/index.vue | 242 ++++++--
.../homePage/ncmatch/proDetail/index.vue | 8 +-
.../views/homePage/ncmatch/search/index.vue | 575 +++++++++++++++++-
.../homePage/ncmatch/searchBox/index.vue | 140 +++++
.../views/operation/menuMangement/index.vue | 326 ++++++++++
19 files changed, 1838 insertions(+), 219 deletions(-)
create mode 100644 f/web-kboss/src/utils/eventBus.js
create mode 100644 f/web-kboss/src/views/customer/approveMangement/approvedPro.vue
create mode 100644 f/web-kboss/src/views/customer/approveMangement/pendingPro.vue
create mode 100644 f/web-kboss/src/views/customer/demand/demandList.vue
create mode 100644 f/web-kboss/src/views/customer/demand/rejectDemand.vue
create mode 100644 f/web-kboss/src/views/customer/productMangement/rejectedPro/index.vue
create mode 100644 f/web-kboss/src/views/homePage/ncmatch/searchBox/index.vue
create mode 100644 f/web-kboss/src/views/operation/menuMangement/index.vue
diff --git a/f/web-kboss/src/api/ncmatch/index.js b/f/web-kboss/src/api/ncmatch/index.js
index d65504d..87097a7 100644
--- a/f/web-kboss/src/api/ncmatch/index.js
+++ b/f/web-kboss/src/api/ncmatch/index.js
@@ -84,8 +84,35 @@ export function reqSearchByMangement(data){
return request({
url: '/product/publish_product_search.dspy',
method: 'post',
- headers: { 'Content-Type': 'application/json' },
+ headers: { 'Content-Type': 'application/js1on' },
data
})
}
+//编辑商品
+export function reqEditProduct(data){
+ return request({
+ url: '/product/publish_product_update.dspy',
+ method: 'post',
+ headers: { 'Content-Type': 'multipart/form-data' },
+ data
+ })
+}
+//编辑非图片字段
+export function reqEditProductNoImg(data){
+ return request({
+ url: '/product/publish_product_update.dspy',
+ method: 'post',
+ headers: { 'Content-Type': 'application/js1on' },
+ data
+ })
+}
+//搜索
+export function reqSearch(data){
+ return request({
+ url: '/product/global_search.dspy',
+ method: 'post',
+ headers: { 'Content-Type': 'application/js1on' },
+ data
+ })
+}
\ No newline at end of file
diff --git a/f/web-kboss/src/router/index.js b/f/web-kboss/src/router/index.js
index 6b074fb..73925ea 100644
--- a/f/web-kboss/src/router/index.js
+++ b/f/web-kboss/src/router/index.js
@@ -65,24 +65,6 @@ export const constantRoutes = [
component: () => import('@/views/beforeLogin/index.vue'),
hidden: true
},
- {
- alwaysShow: true,
- path: "/productMangement",
- component:Layout,
- name: "productMangement",
- redirect: "/productMangement/index",
- meta: { fullPath: "/productMangement", title: "商品管理", noCache: true, icon: 'el-icon-s-home' },
- children: [
- {
- path: "index",
- component: () => import("@/views/customer/productMangement/productList/index.vue"),
- name: "productList",
- meta: { title: "商品清单", fullPath: "/productMangement/index" },
- },
-
- ]
- },
-
{
path: '/wxPage',
@@ -182,6 +164,7 @@ export const constantRoutes = [
meta: { title: "注册" },
},
{
+ hidden: true,
path: "/ncmatchHome",
component: () => import("@/views/homePage/ncmatch/index.vue"),
name: "ncmatchHome",
@@ -202,6 +185,13 @@ export const constantRoutes = [
hidden: true,
meta: { title: "算力供需广场", fullPath: "/ncmatch/supplyAndDemandSquare" },
},
+ {
+ path: "search",
+ component: () => import("@/views/homePage/ncmatch/searchBox/index.vue"),
+ name: "search",
+ hidden: true,
+ meta: { title: "产品查询", fullPath: "/ncmatch/searchBox" },
+ },
]
},
{
@@ -311,6 +301,85 @@ export const asyncRoutes = [
// name: 'productHome',
// meta: {title: "概览", fullPath: "/productHome", noCache: true}
// },
+ {
+ path: "/approveMangement",
+ component:Layout,
+ name: "approveMangement",
+ redirect: "/approveMangement/index",
+ meta: { fullPath: "/approveMangement", title: "审核管理", noCache: true, icon: 'el-icon-s-home' },
+ children: [
+ {
+ path: "pendingPro",
+ component: () => import("@/views/customer/approveMangement/pendingPro.vue"),
+ name: "pendingPro",
+ meta: { title: "待审清单", fullPath: "/approveMangement/index" },
+ },
+ {
+ path: "approvedPro",
+ component: () => import("@/views/customer/approveMangement/approvedPro.vue"),
+ name: "approvedPro",
+ meta: { title: "已审清单", fullPath: "/approveMangement/approvedPro" },
+ },
+
+ ]
+ },
+ {
+ path: "/productMangement",
+ component:Layout,
+ name: "productMangement",
+ redirect: "/productMangement/index",
+ meta: { fullPath: "/productMangement", title: "商品管理", noCache: true, icon: 'el-icon-s-home' },
+ children: [
+ {
+ path: "index",
+ component: () => import("@/views/customer/productMangement/productList/index.vue"),
+ name: "productList",
+ meta: { title: "商品发布清单", fullPath: "/productMangement/index" },
+ },
+ {
+ path: "rejectedPro",
+ component: () => import("@/views/customer/productMangement/rejectedPro/index.vue"),
+ name: "rejectedPro",
+ meta: { title: "商品未通过清单", fullPath: "/productMangement/index" },
+ },
+ ]
+ },
+ {
+ path: "/menuMangement",
+ component:Layout,
+ name: "menuMangement",
+ redirect: "/menuMangement/index",
+ meta: { fullPath: "/menuMangement", title: "菜单管理", noCache: true, icon: 'el-icon-s-home' },
+ children: [
+ {
+ path: "index",
+ component: () => import("@/views/operation/menuMangement/index.vue"),
+ name: "menuMangement",
+ meta: { title: "菜单管理", fullPath: "/menuMangement/index" },
+ },
+ ]
+ },
+ {
+ path: "/demandMangement",
+ component:Layout,
+ name: "demandMangement",
+ redirect: "/demandMangement/index",
+ meta: { fullPath: "/demandMangement", title: "需求管理", noCache: true, icon: 'el-icon-s-home' },
+ children: [
+ {
+ path: "index",
+ component: () => import("@/views/customer/demand/demandList.vue"),
+ name: "demandList",
+ meta: { title: "需求发布清单", fullPath: "/demandMangement/index" },
+ },
+ {
+ path: "rejectDemand",
+ component: () => import("@/views/customer/demand/rejectDemand.vue"),
+ name: "rejectDemand",
+ meta: { title: "需求未通过清单", fullPath: "/demandMangement/rejectDemand" },
+ },
+ ]
+ },
{
path: getHomePath() == '/ncmatchHome/index' ? "/ncmatchHome" : "/homePage",
diff --git a/f/web-kboss/src/utils/eventBus.js b/f/web-kboss/src/utils/eventBus.js
new file mode 100644
index 0000000..38bf2ea
--- /dev/null
+++ b/f/web-kboss/src/utils/eventBus.js
@@ -0,0 +1,6 @@
+import Vue from 'vue'
+
+// 创建事件总线实例
+const eventBus = new Vue()
+
+export default eventBus
diff --git a/f/web-kboss/src/views/customer/approveMangement/approvedPro.vue b/f/web-kboss/src/views/customer/approveMangement/approvedPro.vue
new file mode 100644
index 0000000..2e2c80c
--- /dev/null
+++ b/f/web-kboss/src/views/customer/approveMangement/approvedPro.vue
@@ -0,0 +1,26 @@
+
+