From 9e7bb14499a182e406d2ba71aa5d19a33f6333fc 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: Wed, 13 Aug 2025 09:54:33 +0800
Subject: [PATCH 1/6] bugfix
---
f/web-kboss/src/router/index.js | 7 ++---
.../ncmatch/mainPage/sendProduct/index.vue | 26 ++++++++++++++-----
f/web-kboss/src/views/setting/tools.js | 6 ++---
3 files changed, 25 insertions(+), 14 deletions(-)
diff --git a/f/web-kboss/src/router/index.js b/f/web-kboss/src/router/index.js
index 657b6da..6b074fb 100644
--- a/f/web-kboss/src/router/index.js
+++ b/f/web-kboss/src/router/index.js
@@ -66,10 +66,9 @@ export const constantRoutes = [
hidden: true
},
{
- hidden: true,
alwaysShow: true,
path: "/productMangement",
- component: Layout,
+ component:Layout,
name: "productMangement",
redirect: "/productMangement/index",
meta: { fullPath: "/productMangement", title: "商品管理", noCache: true, icon: 'el-icon-s-home' },
@@ -183,7 +182,6 @@ export const constantRoutes = [
meta: { title: "注册" },
},
{
- hidden: true,
path: "/ncmatchHome",
component: () => import("@/views/homePage/ncmatch/index.vue"),
name: "ncmatchHome",
@@ -747,7 +745,6 @@ export const asyncRoutes = [
meta: { title: "工单管理", fullPath: "/customer/workOrderManagement" },
},
{
- hidden: true,
path: 'approve',
component: () => import('@/views/customer/ncApprove/index.vue'),
name: "Approve",
@@ -839,7 +836,7 @@ export const asyncRoutes = [
), name: "userResource", meta: { title: "资源实例", fullPath: "/customer/userResource", noCache: true },
},
{
- hidden: true,
+
path: "sshTerminal",
component: () => import(
// "@/views/customer/userResource/iframeJiNan.vue"//iframe报错
diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue
index dc14526..7531083 100644
--- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue
+++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue
@@ -125,17 +125,31 @@
-
+
折
+ 折后价:
+¥{{ (form.price * form.discount/10).toFixed(2 ) }}
+-
+
-
+
+
+ 平台服务费用
+
+
+
+
+ ¥{{ ((form.price * form.discount/10)*0.03).toFixed(2) }}
+
+ -
+
{{ publish_type === '2' ? '发布需求' : '发布商品'
}}
- 重置
+
diff --git a/f/web-kboss/src/views/setting/tools.js b/f/web-kboss/src/views/setting/tools.js
index 9ea8160..f8523fb 100644
--- a/f/web-kboss/src/views/setting/tools.js
+++ b/f/web-kboss/src/views/setting/tools.js
@@ -1,6 +1,6 @@
export function getHomePath() {
- let homePath= "/homePage/index"
- // let homePath= "/ncmatchHome/index"
+ // let homePath= "/homePage/index"
+ let homePath= "/ncmatchHome/index"
// 业主机构信息
let url_link = window.location.href || '';
@@ -24,5 +24,5 @@ export function getHomePath() {
}
}
console.log("res是",homePath)
- return "/homePage/index"
+ return homePath
}
From 459aec92f9ca21b68a7816c1a2d7af7714eb7887 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: Wed, 13 Aug 2025 09:58:32 +0800
Subject: [PATCH 2/6] bugfix
---
f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue | 2 +-
.../views/homePage/ncmatch/mainPage/sendProduct/index.vue | 7 ++++++-
2 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue
index db339cc..3260a08 100644
--- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue
+++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue
@@ -246,7 +246,7 @@ export default Vue.extend({
-
+
diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue
index 7531083..7b5041c 100644
--- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue
+++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/sendProduct/index.vue
@@ -169,8 +169,9 @@
- {{ publish_type === '2' ? '发布需求' : '发布商品'
+ {{ isEdit ? '编辑商品' : (publish_type === '2' ? '发布需求' : '发布商品')
}}
+ 确定修改
@@ -214,6 +215,10 @@ export default {
publish_type: {
type: String,
default: '1' // 默认值为 'product'
+ },
+ isEdit: {
+ type: Boolean,
+ default: false
}
},
components: {
From 387c066aaf91dcf3b4dee1761131970f6f8d5e76 Mon Sep 17 00:00:00 2001
From: ping <1017253325@qq.com>
Date: Wed, 13 Aug 2025 14:30:23 +0800
Subject: [PATCH 3/6] update
---
b/baiducloud/get_baidu_orderlist.dspy | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/b/baiducloud/get_baidu_orderlist.dspy b/b/baiducloud/get_baidu_orderlist.dspy
index 3687cea..3ef76e3 100644
--- a/b/baiducloud/get_baidu_orderlist.dspy
+++ b/b/baiducloud/get_baidu_orderlist.dspy
@@ -41,7 +41,7 @@ async def affirmbz_order(ns={}):
orgid = await sor.R('bz_order', {'id': ns['orderid']})
servicename = orgid[0]['servicename']
- # product_url = None
+ product_url = None
# if ('BCC' in servicename) or ('GPU' in servicename):
# product_url = 'https://console.vcp.baidu.com/bcc/#/bcc/instance/list'
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 4/6] 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 @@
+
+
+
+
+
+
diff --git a/f/web-kboss/src/views/customer/approveMangement/pendingPro.vue b/f/web-kboss/src/views/customer/approveMangement/pendingPro.vue
new file mode 100644
index 0000000..be376cc
--- /dev/null
+++ b/f/web-kboss/src/views/customer/approveMangement/pendingPro.vue
@@ -0,0 +1,26 @@
+
+
+
+
+
+
diff --git a/f/web-kboss/src/views/customer/demand/demandList.vue b/f/web-kboss/src/views/customer/demand/demandList.vue
new file mode 100644
index 0000000..7baa918
--- /dev/null
+++ b/f/web-kboss/src/views/customer/demand/demandList.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+
diff --git a/f/web-kboss/src/views/customer/demand/rejectDemand.vue b/f/web-kboss/src/views/customer/demand/rejectDemand.vue
new file mode 100644
index 0000000..6f936cf
--- /dev/null
+++ b/f/web-kboss/src/views/customer/demand/rejectDemand.vue
@@ -0,0 +1,36 @@
+
+
+
+
+
+
diff --git a/f/web-kboss/src/views/customer/productMangement/commonBox/index.vue b/f/web-kboss/src/views/customer/productMangement/commonBox/index.vue
index a7d7278..cd8a272 100644
--- a/f/web-kboss/src/views/customer/productMangement/commonBox/index.vue
+++ b/f/web-kboss/src/views/customer/productMangement/commonBox/index.vue
@@ -12,7 +12,7 @@
-
+
重置
@@ -22,17 +22,21 @@
-
{{ item.label }}
+
导出
-
@@ -49,14 +53,29 @@
+
+
+ 审核通过
+ 审核不通过
+ 待审核
+
+
+
+
+ 已上架
+ 已下架
+ 未上架
+
+
+
-
-
-
+
@@ -65,12 +84,19 @@
- 查看
- 修改
+ 查看
+ 修改
+ 审核
+
- 上架
- 下架
- 删除
+ 上架
+ 下架
+
+ 删除
+
+
@@ -80,21 +106,35 @@
layout="total, prev, pager, next" :total="total_count">
-
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue
index 3260a08..dc4f58c 100644
--- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue
+++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/index.vue
@@ -181,20 +181,12 @@ export default Vue.extend({
-
-
+ -->
@@ -435,7 +427,6 @@ export default Vue.extend({
justify-content: flex-start;
align-items: center;
position: relative;
- height: 100px;
.header-content {
width: 100%;
@@ -506,7 +497,7 @@ export default Vue.extend({
margin: 20px auto;
margin-top: 10px;
border-radius: 10px;
- overflow: hidden;
+ overflow: visible;
background-color: white;
height: 360px;
diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/menuAside/buildNcmatchTree.js b/f/web-kboss/src/views/homePage/ncmatch/mainPage/menuAside/buildNcmatchTree.js
index f2b130e..3649feb 100644
--- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/menuAside/buildNcmatchTree.js
+++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/menuAside/buildNcmatchTree.js
@@ -1,12 +1,20 @@
-export function buildDynamicStructure(data, parentId = "None", currentLevel = 1) {
+export function buildDynamicStructure(data, parentId = null, currentLevel = 1) {
// 1. 找出当前层级的节点
const currentNodes = data.filter(item => item.parentid === parentId);
if (currentNodes.length === 0) return [];
// 2. 处理每个节点
- return currentNodes.map(node => {
+ return currentNodes.map((node, index) => {
const resultNode = {};
+ // 为每个节点添加唯一id
+ if (node.id) {
+ resultNode.id = node.id;
+ } else {
+ // 如果没有id,生成一个唯一的id
+ resultNode.id = `level${currentLevel}_${parentId || 'root'}_${index}_${Date.now()}`;
+ }
+
// 设置层级名称字段
if (currentLevel === 1) {
resultNode.first_level_name = node.name;
@@ -15,6 +23,9 @@ export function buildDynamicStructure(data, parentId = "None", currentLevel = 1)
resultNode.second_level_name = node.name;
} else if (currentLevel === 3) {
resultNode.third_level_name = node.name;
+ } else if (currentLevel === 4) {
+ // 第四级节点也需要保存name字段
+ resultNode.name = node.name;
}
// 3. 递归处理子节点
@@ -27,9 +38,12 @@ export function buildDynamicStructure(data, parentId = "None", currentLevel = 1)
} else if (currentLevel === 2) {
resultNode.thirdClassification = children;
} else if (currentLevel === 3) {
+
// 第四级特殊处理为product_list
+
resultNode.product_list = children.map(child => ({
- first_level_name: child.third_level_name || child.name
+ id: child.id,
+ first_level_name: child.name // 修复:使用 child.name 而不是 child.third_level_name
}));
}
}
diff --git a/f/web-kboss/src/views/homePage/ncmatch/mainPage/menuAside/index.vue b/f/web-kboss/src/views/homePage/ncmatch/mainPage/menuAside/index.vue
index ad5c17f..6bd2303 100644
--- a/f/web-kboss/src/views/homePage/ncmatch/mainPage/menuAside/index.vue
+++ b/f/web-kboss/src/views/homePage/ncmatch/mainPage/menuAside/index.vue
@@ -4,14 +4,14 @@
热门推荐 / 活动促销
- -
{{ category.first_level_name }}
|
@@ -19,12 +19,12 @@
-