From 5e82b38f628a209917e392256e9a165409b464cf Mon Sep 17 00:00:00 2001
From: hrx <18603305412@163.com>
Date: Sun, 28 Sep 2025 17:58:45 +0800
Subject: [PATCH 1/2] uptada
---
f/web-kboss/src/App.vue | 1 +
.../components/FloatingBox/FloatingBox.vue | 2 +-
.../src/components/HomePageSticky/index.vue | 14 +-
.../src/layout/components/Sidebar/index.vue | 84 ++-
f/web-kboss/src/main.js | 1 +
f/web-kboss/src/router/index.js | 677 ++++++++----------
f/web-kboss/src/store/getters.js | 2 +
f/web-kboss/src/store/modules/permission.js | 134 ++--
f/web-kboss/src/store/modules/user.js | 18 +-
f/web-kboss/src/utils/permission.js | 2 +-
.../customer/unsubscribe/JDNetdisk/index.vue | 15 -
.../homePage/components/topBox/index.vue | 19 +-
.../src/views/homePage/mainPage/index.vue | 14 +-
13 files changed, 518 insertions(+), 465 deletions(-)
delete mode 100644 f/web-kboss/src/views/customer/unsubscribe/JDNetdisk/index.vue
diff --git a/f/web-kboss/src/App.vue b/f/web-kboss/src/App.vue
index a8af28e..0c63085 100644
--- a/f/web-kboss/src/App.vue
+++ b/f/web-kboss/src/App.vue
@@ -112,6 +112,7 @@ export default {
},
mounted() {
this.audioElement = new Audio('https://www.kaiyuancloud.cn/dev/idfile?path=/batch_upload/phone-ring.mp3');
+
// 设置音频循环播放
this.audioElement.loop = true;
if (sessionStorage.getItem('juese') === '销售' && !window.location.href.includes('login')) {
diff --git a/f/web-kboss/src/components/FloatingBox/FloatingBox.vue b/f/web-kboss/src/components/FloatingBox/FloatingBox.vue
index 92ea1f1..40cf304 100644
--- a/f/web-kboss/src/components/FloatingBox/FloatingBox.vue
+++ b/f/web-kboss/src/components/FloatingBox/FloatingBox.vue
@@ -95,7 +95,7 @@
style="width: 80px;height: 25px;display: flex!important;justify-content: center;align-items: center">
diff --git a/f/web-kboss/src/components/HomePageSticky/index.vue b/f/web-kboss/src/components/HomePageSticky/index.vue
index acc3098..b179b25 100644
--- a/f/web-kboss/src/components/HomePageSticky/index.vue
+++ b/f/web-kboss/src/components/HomePageSticky/index.vue
@@ -30,7 +30,17 @@ export default {
}
},
methods: {
+
+ // handleScroll(){
+
+ // console.log("滚动条事件");
+
+
+ // },
checkScreenHeight() {
+
+ console.log(9999);
+
const screenHeight = window.innerHeight;
// 可以根据实际需求调整阈值
this.shouldShow = screenHeight >= 900;
@@ -46,10 +56,10 @@ export default {
},
mounted() {
this.checkScreenHeight();
- window.addEventListener('scroll', this.handleScroll);
+ // window.addEventListener('scroll', this.handleScroll);
},
beforeDestroy() {
- window.removeEventListener('scroll', this.handleScroll);
+ // window.removeEventListener('scroll', this.handleScroll);
}
}
diff --git a/f/web-kboss/src/layout/components/Sidebar/index.vue b/f/web-kboss/src/layout/components/Sidebar/index.vue
index 16bb303..08bf1c2 100644
--- a/f/web-kboss/src/layout/components/Sidebar/index.vue
+++ b/f/web-kboss/src/layout/components/Sidebar/index.vue
@@ -1,4 +1,4 @@
-
+
@@ -620,7 +629,7 @@ export default Vue.extend({
},
// 改变面板数据
changeData(data) {
- this.showPanelData = data
+ this.showPanelData = data || []
// 更安全的初始化方式
this.secMenuData = data?.[0]?.secMenu || []
@@ -658,6 +667,8 @@ export default Vue.extend({
}).catch(error => {
console.error("获取导航数据失败:", error)
// 可以设置一些默认数据或显示错误信息
+ this.product_service = []
+ this.changeData([])
})
},
// 构建导航数据结构
diff --git a/f/web-kboss/src/views/homePage/mainPage/index.vue b/f/web-kboss/src/views/homePage/mainPage/index.vue
index 26f3656..243e30f 100644
--- a/f/web-kboss/src/views/homePage/mainPage/index.vue
+++ b/f/web-kboss/src/views/homePage/mainPage/index.vue
@@ -7,6 +7,7 @@
@navigate="handleNavigation"
:show-threshold-element-selector="'.tagUl'"
:show-offset="0"
+ id="sticky"
>
@@ -414,6 +415,17 @@ export default Vue.extend({
}
},
mounted() {
+ // 监听滚动 控制sticky显示隐藏
+ document.getElementById("homeOut").addEventListener('scroll', (e) =>{
+
+ // console.log("滚动条事件",e.target.scrollTop);
+ if (e.target.scrollTop > 500) {
+ document.getElementById('sticky').style.display = 'block'
+ } else {
+ document.getElementById('sticky').style.display = 'none'
+ }
+
+ })
this.initData()
},
computed: {
@@ -1356,4 +1368,4 @@ export default Vue.extend({
-
+
From 0fbccbea2384075e38be870d611bdcc5f0236b67 Mon Sep 17 00:00:00 2001
From: hrx <18603305412@163.com>
Date: Mon, 29 Sep 2025 09:47:50 +0800
Subject: [PATCH 2/2] uptada
---
f/web-kboss/src/router/index.js | 300 ++++++++++++++++----------------
1 file changed, 150 insertions(+), 150 deletions(-)
diff --git a/f/web-kboss/src/router/index.js b/f/web-kboss/src/router/index.js
index 5b6d339..bfd47cd 100644
--- a/f/web-kboss/src/router/index.js
+++ b/f/web-kboss/src/router/index.js
@@ -785,162 +785,162 @@ export const asyncRoutes = [
},
// // 客户
- // {
- // path: "/customer", component: Layout, redirect: "/customer/workOrderManagement", meta: {
- // title: "客户", icon: "el-icon-s-custom", noCache: true, fullPath: "/customer",
- // },
- // children: [
- // // 工单
- // {
- // path: "workOrderManagement",
- // component: () => import("@/views/customer/workOrderManagement"),
- // name: "WorkOrderManagement",
- // meta: { title: "工单管理", fullPath: "/customer/workOrderManagement" },
- // },
- // // 退订
- // {
- // path: "unsubscribe",
+ {
+ path: "/customer", component: Layout, redirect: "/customer/workOrderManagement", meta: {
+ title: "客户", icon: "el-icon-s-custom", noCache: true, fullPath: "/customer",
+ },
+ children: [
+ // 工单
+ {
+ path: "workOrderManagement",
+ component: () => import("@/views/customer/workOrderManagement"),
+ name: "WorkOrderManagement",
+ meta: { title: "工单管理", fullPath: "/customer/workOrderManagement" },
+ },
+ // 退订
+ {
+ path: "unsubscribe",
- // component: () => import("@/views/customer/unsubscribe"),
- // name: "Unsubscribe",
- // alwaysShow: true, // 确保父菜单始终显示
- // meta: {
- // title: "退订管理",
- // alwaysShow: true
- // },
- // children: [
- // {
- // path: "BaiduNetdisk",
- // component: () => import("@/views/customer/unsubscribe/BaiduNetdisk.vue"),
- // name: "BaiduNetdisk",
- // meta: { title: "百度云" }
- // },
+ component: () => import("@/views/customer/unsubscribe"),
+ name: "Unsubscribe",
+ alwaysShow: true, // 确保父菜单始终显示
+ meta: {
+ title: "退订管理",
+ alwaysShow: true
+ },
+ children: [
+ {
+ path: "BaiduNetdisk",
+ component: () => import("@/views/customer/unsubscribe/BaiduNetdisk.vue"),
+ name: "BaiduNetdisk",
+ meta: { title: "百度云" }
+ },
- // ]
- // },
- // // 完善信息
- // {
- // path: 'approve',
- // component: () => import('@/views/customer/ncApprove/index.vue'),
- // name: "Approve",
- // meta: { title: "信息完善", fullPath: "/customer/ncApprove" },
- // },
- // // 渠道管理
- // {
- // hidden: true,
- // path: "channelMangement",
- // component: () => import("@/views/customer/channelMangement/index.vue"),
- // name: "ChannelMangement",
- // meta: { title: "渠道管理", fullPath: "/customer/channelMangement" },
- // },
- // //渠道产品管理
- // {
- // hidden: true,
- // path: "channelProductMangement",
- // component: () => import("@/views/customer/channelMangement/channelProductMangement/index.vue"),
- // name: "channelProductMangement",
- // meta: { title: "渠道产品管理", fullPath: "/customer/channelMangement/channelProductMangement", noCache: true },
- // },
- // // 无权限
- // {
- // hidden: true,
- // path: "noChannelPermission",
- // component: () => import("@/views/customer/channelMangement/noChannelPermission/index.vue"),
- // name: "noChannelPermission",
- // meta: { title: "无权限", fullPath: "/customer/channelMangement/noChannelPermission", noCache: true },
- // },
- // // 聊天
- // {
- // hidden: true,
- // path: "chat",
- // component: () => import("@/views/product/productHome/chat/index.vue"),
- // name: "chat",
- // meta: {
- // title: "聊天", fullPath: "/product/productHome/chat", noCache: true
- // },
- // },
+ ]
+ },
+ // 完善信息
+ {
+ path: 'approve',
+ component: () => import('@/views/customer/ncApprove/index.vue'),
+ name: "Approve",
+ meta: { title: "信息完善", fullPath: "/customer/ncApprove" },
+ },
+ // 渠道管理
+ {
+ hidden: true,
+ path: "channelMangement",
+ component: () => import("@/views/customer/channelMangement/index.vue"),
+ name: "ChannelMangement",
+ meta: { title: "渠道管理", fullPath: "/customer/channelMangement" },
+ },
+ //渠道产品管理
+ {
+ hidden: true,
+ path: "channelProductMangement",
+ component: () => import("@/views/customer/channelMangement/channelProductMangement/index.vue"),
+ name: "channelProductMangement",
+ meta: { title: "渠道产品管理", fullPath: "/customer/channelMangement/channelProductMangement", noCache: true },
+ },
+ // 无权限
+ {
+ hidden: true,
+ path: "noChannelPermission",
+ component: () => import("@/views/customer/channelMangement/noChannelPermission/index.vue"),
+ name: "noChannelPermission",
+ meta: { title: "无权限", fullPath: "/customer/channelMangement/noChannelPermission", noCache: true },
+ },
+ // 聊天
+ {
+ hidden: true,
+ path: "chat",
+ component: () => import("@/views/product/productHome/chat/index.vue"),
+ name: "chat",
+ meta: {
+ title: "聊天", fullPath: "/product/productHome/chat", noCache: true
+ },
+ },
- // // 个人中心
- // {
- // hidden: true,
- // path: "customerInformation",
- // component: () => import("@/views/customer/customerInformation"),
- // name: "customerInformation",
- // meta: { title: "个人中心", fullPath: "/customer/customerInformation" },
- // },
- // // 充值管理
- // {
- // path: "rechargeRecord",
- // component: () => import("@/views/customer/rechargeRecord"),
- // name: "RechargeRecord",
- // meta: { title: "充值管理", fullPath: "/customer/rechargeRecord" },
- // },
- // // 订单管理
- // {
- // path: "orderManagement",
- // component: () => import("@/views/customer/orderManagement"),
- // name: "OrderManagement",
- // meta: { title: "产品订单", fullPath: "/customer/orderManagement", noCache: true, },
- // },
- // // 订单详情
- // {
- // path: "orderDetil",
- // component: () => import("@/views/customer/orderDetil"),
- // name: "orderDetil",
- // hidden: true,
- // meta: { title: "订单详情", fullPath: "/customer/orderDetil", noCache: true, },
- // },
- // // 促销邀请码
- // {
- // hidden: true,
- // path: "promotionalInvitationCode",
- // component: () => import("@/views/customer/promotionalInvitationCode"),
- // name: "PromotionalInvitationCode",
- // meta: { title: "促销邀请码", fullPath: "/customer/promotionalInvitationCode" },
- // },
+ // 个人中心
+ {
+ hidden: true,
+ path: "customerInformation",
+ component: () => import("@/views/customer/customerInformation"),
+ name: "customerInformation",
+ meta: { title: "个人中心", fullPath: "/customer/customerInformation" },
+ },
+ // 充值管理
+ {
+ path: "rechargeRecord",
+ component: () => import("@/views/customer/rechargeRecord"),
+ name: "RechargeRecord",
+ meta: { title: "充值管理", fullPath: "/customer/rechargeRecord" },
+ },
+ // 订单管理
+ {
+ path: "orderManagement",
+ component: () => import("@/views/customer/orderManagement"),
+ name: "OrderManagement",
+ meta: { title: "产品订单", fullPath: "/customer/orderManagement", noCache: true, },
+ },
+ // 订单详情
+ {
+ path: "orderDetil",
+ component: () => import("@/views/customer/orderDetil"),
+ name: "orderDetil",
+ hidden: true,
+ meta: { title: "订单详情", fullPath: "/customer/orderDetil", noCache: true, },
+ },
+ // 促销邀请码
+ {
+ hidden: true,
+ path: "promotionalInvitationCode",
+ component: () => import("@/views/customer/promotionalInvitationCode"),
+ name: "PromotionalInvitationCode",
+ meta: { title: "促销邀请码", fullPath: "/customer/promotionalInvitationCode" },
+ },
- // // 资源示例
- // {
- // path: "userResource", component: () => import(
- // // "@/views/customer/userResource/iframeJiNan.vue"//iframe报错
- // "@/views/customer/userResource"
- // ), name: "userResource", meta: { title: "资源实例", fullPath: "/customer/userResource", noCache: true },
- // },
- // // ssh登录
- // {
+ // 资源示例
+ {
+ path: "userResource", component: () => import(
+ // "@/views/customer/userResource/iframeJiNan.vue"//iframe报错
+ "@/views/customer/userResource"
+ ), name: "userResource", meta: { title: "资源实例", fullPath: "/customer/userResource", noCache: true },
+ },
+ // ssh登录
+ {
- // path: "sshTerminal",
- // component: () => import(
- // // "@/views/customer/userResource/iframeJiNan.vue"//iframe报错
- // "@/views/customer/userResource/SshTerminal.vue"
- // ),
- // name: "sshTerminal",
- // meta: { title: "ssh登录", fullPath: "/customer/SshTerminal", noCache: true },
- // },
- // // 审批记录
- // {
- // hidden: true, path: "approvalRecord", component: () => import(
- // // "@/views/customer/approvalRecord/iframeJiNan.vue"//iframe报错
- // "@/views/customer/approvalRecord"
- // ), name: "approvalRecord", meta: { title: "审批记录", fullPath: "/customer/approvalRecord" },
- // },
- // // 发票管理
- // {
- // path: "invoice",
- // component: () => import("@/views/customer/invoice"),
- // name: "Invoice",
- // meta: { title: "发票管理", fullPath: "/customer/invoice" },
- // },
- // // 产品最新页
- // {
- // hidden: true,
- // path: "productIndex",
- // component: () => import("@/views/product/productHome/productIndex/index.vue"),
- // name: "ProductIndex",
- // meta: { title: "产品最新页", fullPath: "/product/productHome/productIndex", noCache: true },
- // },],
- // },
+ path: "sshTerminal",
+ component: () => import(
+ // "@/views/customer/userResource/iframeJiNan.vue"//iframe报错
+ "@/views/customer/userResource/SshTerminal.vue"
+ ),
+ name: "sshTerminal",
+ meta: { title: "ssh登录", fullPath: "/customer/SshTerminal", noCache: true },
+ },
+ // 审批记录
+ {
+ hidden: true, path: "approvalRecord", component: () => import(
+ // "@/views/customer/approvalRecord/iframeJiNan.vue"//iframe报错
+ "@/views/customer/approvalRecord"
+ ), name: "approvalRecord", meta: { title: "审批记录", fullPath: "/customer/approvalRecord" },
+ },
+ // 发票管理
+ {
+ path: "invoice",
+ component: () => import("@/views/customer/invoice"),
+ name: "Invoice",
+ meta: { title: "发票管理", fullPath: "/customer/invoice" },
+ },
+ // 产品最新页
+ {
+ hidden: true,
+ path: "productIndex",
+ component: () => import("@/views/product/productHome/productIndex/index.vue"),
+ name: "ProductIndex",
+ meta: { title: "产品最新页", fullPath: "/product/productHome/productIndex", noCache: true },
+ },],
+ },
// 资质审核
{
path: "/qualificationReview",