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({