main #34

Merged
charles merged 191 commits from main into prod 2025-11-19 16:18:39 +08:00
6 changed files with 110 additions and 28 deletions
Showing only changes of commit 4b258baf41 - Show all commits

View File

@ -19,6 +19,7 @@ import ShowGpu from "@/views/product/productHome/capitalOnline/productItem/GpuPr
import ShowEip from "@/views/product/productHome/capitalOnline/Net/Eip/showEip/index.vue";
import CreateEip from "@/views/product/productHome/capitalOnline/Net/Eip/createEip/index.vue";
import { getHomePath } from '@/views/setting/tools'
import { h } from "vue";
Vue.use(Router);
// const originalPush = Router.prototype.push
@ -192,7 +193,7 @@ export const constantRoutes = [
meta: { title: "算力供需广场", fullPath: "/ncmatch/supplyAndDemandSquare" },
},
{
path: "search",
path: "search",
component: () => import("@/views/homePage/ncmatch/searchBox/index.vue"),
name: "search",
hidden: true,
@ -200,18 +201,18 @@ export const constantRoutes = [
},
{
path: "historyBox",
component: () => import("@/views/homePage/ncmatch/historyBox/index.vue"),
name: "historyBox",
hidden: true,
meta: { title: "浏览记录", fullPath: "/ncmatch/historyBox" },
},
{
path: "favoriteBox",
component: () => import("@/views/homePage/ncmatch/favoriteBox/index.vue"),
name: "favoriteBox",
hidden: true,
meta: { title: "我的关注", fullPath: "/ncmatch/favoriteBox" },
},
component: () => import("@/views/homePage/ncmatch/historyBox/index.vue"),
name: "historyBox",
hidden: true,
meta: { title: "浏览记录", fullPath: "/ncmatch/historyBox" },
},
{
path: "favoriteBox",
component: () => import("@/views/homePage/ncmatch/favoriteBox/index.vue"),
name: "favoriteBox",
hidden: true,
meta: { title: "我的关注", fullPath: "/ncmatch/favoriteBox" },
},
]
},
{
@ -369,13 +370,13 @@ export const asyncRoutes = [
path: "/consultingMangement",
name: 'ConsultingMangement',
component: Layout,
meta: { title: "咨询表单", fullPath: "/consultingMangement", noCache: true,icon: "el-icon-s-platform" },
meta: { title: "咨询表单", fullPath: "/consultingMangement", noCache: true, icon: "el-icon-s-platform" },
children: [
{
path: "index",
component: () => import('@/views/operation/consultingMangement/index.vue'),
name: 'ConsultingMangement',
meta: { title: "咨询表单", fullPath: "/consultingMangement/index", noCache: true,icon: "el-icon-s-platform" },
meta: { title: "咨询表单", fullPath: "/consultingMangement/index", noCache: true, icon: "el-icon-s-platform" },
}
]
},
@ -769,6 +770,31 @@ export const asyncRoutes = [
name: "WorkOrderManagement",
meta: { title: "工单管理", fullPath: "/customer/workOrderManagement" },
},
{
path: "unsubscribe",
// 不要写 component
component: () => import("@/views/customer/unsubscribe"),
name: "Unsubscribe",
meta: {
title: "退订管理",
alwaysShow: true
},
children: [
{
path: "BaiduNetdisk",
component: () => import("@/views/customer/unsubscribe/BaiduNetdisk.vue"),
name: "BaiduNetdisk",
meta: { title: "百度云" }
},
{
path: "JDNetdisk", // 可选:默认子路由
// component: () => import("@/views/customer/unsubscribe/JDNetdisk/index.vue"),
name: "JDNetdisk",
meta: { title: "其他" }
}
]
},
{
path: 'approve',
component: () => import('@/views/customer/ncApprove/index.vue'),
@ -891,7 +917,7 @@ export const asyncRoutes = [
},
{
path: "/qualificationReview",
component:Layout,
component: Layout,
name: "qualificationReview",
redirect: "/qualificationReview/index",
meta: { fullPath: "/qualificationReview", title: "资质审核", noCache: true, icon: 'el-icon-s-home' },
@ -913,7 +939,7 @@ export const asyncRoutes = [
},
{
path: "/approveMangement",
component:Layout,
component: Layout,
name: "approveMangement",
redirect: "/approveMangement/index",
meta: { fullPath: "/approveMangement", title: "供需审核", noCache: true, icon: 'el-icon-s-home' },
@ -935,7 +961,7 @@ export const asyncRoutes = [
},
{
path: "/productMangement",
component:Layout,
component: Layout,
name: "productMangement",
redirect: "/productMangement/index",
meta: { fullPath: "/productMangement", title: "商品管理", noCache: true, icon: 'el-icon-s-home' },
@ -956,7 +982,7 @@ export const asyncRoutes = [
},
{
path: "/menuMangement",
component:Layout,
component: Layout,
name: "menuMangement",
redirect: "/menuMangement/index",
meta: { fullPath: "/menuMangement", title: "菜单管理", noCache: true, icon: 'el-icon-s-home' },
@ -971,7 +997,7 @@ export const asyncRoutes = [
},
{
path: "/demandMangement",
component:Layout,
component: Layout,
name: "demandMangement",
redirect: "/demandMangement/index",
meta: { fullPath: "/demandMangement", title: "需求管理", noCache: true, icon: 'el-icon-s-home' },
@ -990,7 +1016,7 @@ export const asyncRoutes = [
},
]
},
{
path: "/sales", component: Layout,
@ -1028,7 +1054,8 @@ export const asyncRoutes = [
component: () => import("@/views/sales/floorPrice"),
name: "floorPrice",
meta: { title: "底价设置", fullPath: "/sales/floorPrice" },
}, {
},
{
path: "bdUserMangement",
component: () => import("@/views/sales/BdUserMangement"),
name: "floorPrice",
@ -1046,7 +1073,8 @@ export const asyncRoutes = [
title: "账单管理", fullPath: "/sales/BdUserMangement/billMangement",
},
},]
}, {
},
{
path: "customerManagement",
component: () => import("@/views/sales/customerManagement"),
name: "Customer",

View File

@ -4,7 +4,7 @@
<el-col :span="8" style="overflow-x: auto;min-width: 100px;" class="treeCard">
<el-card class="left" style="font-size: 14px;overflow-x: auto!important;padding: 0!important;min-width: 200px;">
<el-button type="primary" size="small" v-if="treeData.length==[]" @click="addDepartment()">请添加部门</el-button>
<Tree id="tree" style="overflow-x: auto!important; height: calc(100vh - 106px);!important;" v-else ref="tree" node-key="id" :tree-data="treeData" :add-form-arr="addFormArr" :add-form="addForm" @treeDelChange="treeDelChange" :default-props="defaultProps" :default-expand-all="true" :is-add-del="true" @treeSubmitChange="treeSubmitChange" @treeUpdateChange="treeUpdateChange" @treeEditChange="treeEditChange"></Tree>
<Tree id="tree" style="overflow-x: auto!important; height: calc(100vh - 106px);" v-else ref="tree" node-key="id" :tree-data="treeData" :add-form-arr="addFormArr" :add-form="addForm" @treeDelChange="treeDelChange" :default-props="defaultProps" :default-expand-all="true" :is-add-del="true" @treeSubmitChange="treeSubmitChange" @treeUpdateChange="treeUpdateChange" @treeEditChange="treeEditChange"></Tree>
</el-card>
</el-col>
<el-col :span="16">
@ -349,6 +349,9 @@ export default {
</script>
<style lang="scss" scoped>
.el-button{
margin-bottom: 10px;
}
.departmentManagement {
height: 85vh;
.left {
@ -376,7 +379,3 @@ padding: 0;
}
}
</style>
<style>
</style>

View File

@ -0,0 +1,22 @@
<template>
<div class="box">
<iframe src="https://console.vcp.baidu.com/billing/#/refund/list" frameborder="0" class="baidu-style"></iframe>
</div>
</template>
<script>
export default {
}
</script>
<style lang="less" scoped>
.box{
padding: 10px;
}
.baidu-style{
width: 100%;
height: calc(100vh - 100px);
}
</style>

View File

@ -0,0 +1,15 @@
<template>
<div>
京东云 测试menu
</div>
</template>
<script>
export default {
}
</script>
<style lang="less" scoped>
</style>

View File

@ -0,0 +1,15 @@
<template>
<div>
<router-view></router-view>
</div>
</template>
<script>
export default {
}
</script>
<style lang="less" scoped>
</style>

View File

@ -231,6 +231,8 @@ export default {
})
},
treeDelChange(obj) {
delPermissionAPI({ id: obj.data.id }).then(res => {
@ -251,6 +253,7 @@ export default {
})
},
treeUpdateChange(obj) {
console.log('obj.node:', obj.node);
this.isDisabled = false
this.form = JSON.parse(JSON.stringify(obj.node))
// console.log(obj);