+ style="display: flex;flex-direction: column;justify-content: center;align-items: center;margin-top: 25px">
登录
@@ -189,19 +181,19 @@ import {
retrieveCodeAPI,
} from "@/api/login";
import store from "@/store";
-import {JSEncrypt} from "jsencrypt";
+import { JSEncrypt } from "jsencrypt";
import BeforeLogin from "@/views/beforeLogin/index.vue";
import promotionalInvitationCode from "@/views/customer/promotionalInvitationCode"
-import {mapState} from "vuex";
+import { mapState } from "vuex";
import axios from "axios";
import './js/wxLogin.js'
-import {Message} from "element-ui";
-import router, {resetRouter} from "@/router";
-import {reqNewHomeFestival} from "@/api/newHome";
+import { Message } from "element-ui";
+import router, { resetRouter } from "@/router";
+import { reqNewHomeFestival } from "@/api/newHome";
import { getHomePath } from '@/views/setting/tools'
export default {
name: "indexNew",
- components: {BeforeLogin, promotionalInvitationCode},
+ components: { BeforeLogin, promotionalInvitationCode },
data() {
return {
wechat_openid: '',
@@ -231,9 +223,9 @@ export default {
},
activeName: 'first',
rules: {
- username: [{required: true, message: "请输入用户名/手机号", trigger: "blur"}],
- password: [{required: true, message: "请输入密码", trigger: "blur"}],
- code: [{required: true, message: "请输入验证码", trigger: "blur"}],
+ username: [{ required: true, message: "请输入用户名/手机号", trigger: "blur" }],
+ password: [{ required: true, message: "请输入密码", trigger: "blur" }],
+ code: [{ required: true, message: "请输入验证码", trigger: "blur" }],
},
capsTooltip: false,
passwordType: "password",
@@ -245,9 +237,9 @@ export default {
codeid: "",
},
forms: {
- username: [{required: true, message: "请输入姓名", trigger: "blur"}],
- password: [{required: true, message: "请输入密码", trigger: "blur"}],
- vcode: [{required: true, message: "请输入验证码", trigger: "blur"}],
+ username: [{ required: true, message: "请输入姓名", trigger: "blur" }],
+ password: [{ required: true, message: "请输入密码", trigger: "blur" }],
+ vcode: [{ required: true, message: "请输入验证码", trigger: "blur" }],
},
isLogo: false,
isShowSaleProduct: false,
@@ -286,7 +278,7 @@ export default {
window.addEventListener('message', (event) => {
// this.$message.success("event.data.type",event)
if (event.data.type === 'wx_login_success') {
- const {code} = event.data
+ const { code } = event.data
console.log(event.data)
// 处理微信返回的code
this.$message.success("code", code)
@@ -296,9 +288,9 @@ export default {
// this.audioElement = new Audio('https://www.opencomputing.cn/dev/idfile?path=/batch_upload/phone-ring.mp3');
// // 设置音频循环播放
// this.audioElement.loop = true;
-// if (window.location.href.includes("ncmatch")) {
-// this.$store.commit('login/setLogoutUrl',window.location.href)
-// }
+ // if (window.location.href.includes("ncmatch")) {
+ // this.$store.commit('login/setLogoutUrl',window.location.href)
+ // }
},
methods: {
@@ -343,13 +335,13 @@ export default {
this.getCodeTimer = setInterval(async () => {
try {
- const res = await reqGetCodeAPI({state: this.wxState});
+ const res = await reqGetCodeAPI({ state: this.wxState });
if (!res.status) return;
clearInterval(this.getCodeTimer); // 清理定时器
this.showWxCode = true;
- const response = await loginUserAPI({wechatCode: res.code});
+ const response = await loginUserAPI({ wechatCode: res.code });
console.log("response:", response);
if (response.status) {
@@ -361,7 +353,7 @@ export default {
return;
}
- const {data, admin, user, userId, org_type} = response;
+ const { data, admin, user, userId, org_type } = response;
// 存储用户信息
localStorage.setItem("user_info", JSON.stringify(user));
@@ -404,7 +396,7 @@ export default {
} else if (response.roles.includes("运维")) {
this.$router.push("/operationAndMaintenance/workOrderProcessing");
} else {
- this.$router.push({path: "/"});
+ this.$router.push({ path: "/" });
}
} else if (response.action === "redirect") {
this.open2(response.msg)
@@ -686,7 +678,7 @@ export default {
}
},
getCode() { //获取验证码
- getCodeAPI({username: this.loginForm.username}).then((res) => {
+ getCodeAPI({ username: this.loginForm.username }).then((res) => {
console.log(res);
if (res.status) {
this.loginForm.codeid = res.codeid;
@@ -729,7 +721,7 @@ export default {
});
},
getCode1() {
- retrieveCodeAPI({username: this.form.username}).then((res) => {
+ retrieveCodeAPI({ username: this.form.username }).then((res) => {
if (res.status == true) {
this.form.id = res.userid;
this.form.codeid = res.codeid;
@@ -765,7 +757,7 @@ export default {
console.log(tab, event);
},
checkCapslock(e) {
- const {key} = e;
+ const { key } = e;
this.capsTooltip = key && key.length === 1 && key >= "A" && key <= "Z";
},
handleLogin(formName) { //登录
@@ -838,7 +830,7 @@ export default {
sessionStorage.setItem("username", res['user'].username);//就这行代码,注释就能登录上了,我想存的就是这个
if (res.admin === 1) {
console.log("走了admin", res)
- this.$router.push({path: "/"});
+ this.$router.push({ path: "/" });
} else if (
sessionStorage.getItem("org_type") == "2" ||
sessionStorage.getItem("org_type") == "3"
@@ -870,7 +862,7 @@ export default {
} else if (res.roles.includes('运维')) {
this.$router.push('/operationAndMaintenance/workOrderProcessing');
} else {
- this.$router.push({path: "/"});
+ this.$router.push({ path: "/" });
}
this.$message({
message: "登录成功~",
@@ -928,7 +920,7 @@ export default {
handleRegister() {
console.log("注册按钮被点击了")
//注册
- this.$router.push({name: "registrationPage"});
+ this.$router.push({ name: "registrationPage" });
},
cancelReset() {
this.dialogVisible = false;
@@ -979,10 +971,12 @@ export default {
$cursor: black;
$light_gray: #eee;
$dark_gray: #889aa4;
+
.main-box {
position: relative;
width: 100vw;
height: 100vh;
+
//border:1px solid red;
img {
width: 100%;
@@ -1051,6 +1045,7 @@ $dark_gray: #889aa4;
.login-form-style {
background-color: transparent;
+
//padding-top: 70px;
.el-input {
input {
@@ -1193,7 +1188,7 @@ $dark_gray: #889aa4;
}
.logo-top1 {
- width: 220px !important;
+ width: 260px !important;
height: 80px !important;
position: absolute;
top: 3%;
@@ -1209,6 +1204,7 @@ $dark_gray: #889aa4;
//border: 5px solid red !important;
//width: 95% !important;
}
+
.login-form {
width: 90% !important;
//border: 5px solid red !important;
@@ -1216,6 +1212,7 @@ $dark_gray: #889aa4;
top: 13%;
right: 5%;
}
+
.go-register {
padding-right: 10px;
//border:1px solid red;
diff --git a/f/web-kboss/src/views/registrationPage/indexNew.vue b/f/web-kboss/src/views/registrationPage/indexNew.vue
index d1927ed..862993f 100644
--- a/f/web-kboss/src/views/registrationPage/indexNew.vue
+++ b/f/web-kboss/src/views/registrationPage/indexNew.vue
@@ -1,169 +1,197 @@
+
-

-
+ alt="">
-
+
+
![]()
+

+
+
@@ -172,213 +200,204 @@
From 2144f3dcbca12de0a20cbdcef64a0bd0004dee35 Mon Sep 17 00:00:00 2001
From: hrx <18603305412@163.com>
Date: Thu, 30 Oct 2025 14:01:02 +0800
Subject: [PATCH 3/5] updata
---
.../layout/components/Sidebar/SidebarItem.vue | 13 +-
f/web-kboss/src/main.js | 2 +-
f/web-kboss/src/router/index.js | 439 +++++++++++-------
f/web-kboss/src/store/modules/permission.js | 52 ++-
.../homePage/components/topBox/index.vue | 1 +
5 files changed, 308 insertions(+), 199 deletions(-)
diff --git a/f/web-kboss/src/layout/components/Sidebar/SidebarItem.vue b/f/web-kboss/src/layout/components/Sidebar/SidebarItem.vue
index 8587f51..da82b10 100644
--- a/f/web-kboss/src/layout/components/Sidebar/SidebarItem.vue
+++ b/f/web-kboss/src/layout/components/Sidebar/SidebarItem.vue
@@ -6,7 +6,6 @@
-
@@ -94,7 +93,17 @@ export default {
}
diff --git a/f/web-kboss/src/main.js b/f/web-kboss/src/main.js
index 4d0b2f1..aef1694 100644
--- a/f/web-kboss/src/main.js
+++ b/f/web-kboss/src/main.js
@@ -4,7 +4,7 @@ import Cookies from 'js-cookie'
import 'normalize.css/normalize.css' // a modern alternative to CSS resets
-import '@/assets/css/iconfont/iconfont.css'
+import './assets/css/iconfont/iconfont.css'
import Element from 'element-ui'
import './styles/element-variables.scss'
diff --git a/f/web-kboss/src/router/index.js b/f/web-kboss/src/router/index.js
index a3304b5..395cf4a 100644
--- a/f/web-kboss/src/router/index.js
+++ b/f/web-kboss/src/router/index.js
@@ -308,7 +308,7 @@ export const asyncRoutes = [
title: "全部产品",
fullPath: "/product",
noCache: true,
- icon: "el-icon-s-platform"
+ icon: "el-icon-goods"
},
alwaysShow: true,
children: [
@@ -340,15 +340,11 @@ export const asyncRoutes = [
alwaysShow: true,
children: [
{
- path: "baidu",
- component: () => import('@/views/product/productHome/productIndex/index.vue'),
- name: 'BaiduOrder',
- meta: {
- title: "百度订单",
- fullPath: "/product/overview",
- noCache: true
- }
- }
+ path: "orderManagement",
+ component: () => import("@/views/customer/orderManagement"),
+ name: "OrderManagement",
+ meta: { title: "百度订单", fullPath: "/customer/orderManagement", noCache: true, },
+ },
]
},
@@ -362,20 +358,16 @@ export const asyncRoutes = [
title: "资源管理",
fullPath: "/resourceManagement",
noCache: true,
- icon: "el-icon-copy-document"
+ icon: "el-icon-s-management"
},
alwaysShow: true,
children: [
{
- path: "baidu",
- component: () => import('@/views/product/productHome/productIndex/index.vue'),
- name: 'BaiduResource',
- meta: {
- title: "百度资源",
- fullPath: "/resourceManagement/baidu",
- noCache: true
- }
- }
+ path: "userResource", component: () => import(
+ // "@/views/customer/userResource/iframeJiNan.vue"//iframe报错
+ "@/views/customer/userResource"
+ ), name: "userResource", meta: { title: "百度资源", fullPath: "/customer/userResource", noCache: true },
+ },
]
},
@@ -783,163 +775,258 @@ export const asyncRoutes = [
{
},
- // // 客户
+ // 工单管理 - 变为一级菜单
{
- path: "/customer", component: Layout, redirect: "/customer/workOrderManagement", meta: {
- title: "客户", icon: "el-icon-s-custom", noCache: true, fullPath: "/customer",
+ path: "/workOrderManagement",
+ component: Layout,
+ meta: {
+ title: "工单管理",
+ icon: "el-icon-s-ticket",
+ noCache: true,
+ fullPath: "/workOrderManagement"
},
children: [
- // 工单
{
- path: "workOrderManagement",
+ path: "index",
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: "百度云" }
- },
-
-
- ]
- },
- // 完善信息
- {
- 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" },
- },
-
- // 资源示例
- {
- 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 },
- },],
+ meta: { title: "工单管理", fullPath: "/workOrderManagement/index" },
+ }
+ ]
},
+ // 退订管理 - 变为一级菜单(包含子菜单)
+ {
+ path: "/unsubscribeManagement",
+ component: Layout,
+ redirect: "/unsubscribeManagement/BaiduNetdisk", // 修正重定向路径
+ alwaysShow: true, // 添加这个属性到路由层级,不是meta里面
+ meta: {
+ title: "退订管理",
+ icon: "el-icon-circle-close",
+ noCache: true,
+ fullPath: "/unsubscribeManagement"
+ },
+ children: [
+ {
+ path: "BaiduNetdisk",
+ component: () => import("@/views/customer/unsubscribe/BaiduNetdisk.vue"),
+ name: "BaiduNetdisk",
+ meta: {
+ title: "百度云",
+ fullPath: "/unsubscribeManagement/BaiduNetdisk"
+ }
+ }
+ ]
+ },
+ // 信息完善 - 变为一级菜单
+ {
+ path: "/informationPerfect",
+ component: Layout,
+ meta: {
+ title: "信息完善",
+ icon: "el-icon-edit-outline",
+ noCache: true,
+ fullPath: "/informationPerfect"
+ },
+ children: [
+ {
+ path: "index",
+ component: () => import('@/views/customer/ncApprove/index.vue'),
+ name: "InformationPerfect",
+ meta: { title: "信息完善", fullPath: "/informationPerfect/index" },
+ }
+ ]
+ },
+ // 充值管理 - 变为一级菜单
+ {
+ path: "/rechargeManagement",
+ component: Layout,
+ meta: {
+ title: "充值管理",
+ icon: "el-icon-money",
+ noCache: true,
+ fullPath: "/rechargeManagement"
+ },
+ children: [
+ {
+ path: "index",
+ component: () => import("@/views/customer/rechargeRecord"),
+ name: "RechargeManagement",
+ meta: { title: "充值管理", fullPath: "/rechargeManagement/index" },
+ }
+ ]
+ },
+ // 发票管理 - 变为一级菜单
+ {
+ path: "/invoiceManagement",
+ component: Layout,
+ meta: {
+ title: "发票管理",
+ icon: "el-icon-document",
+ noCache: true,
+ fullPath: "/invoiceManagement"
+ },
+ children: [
+ {
+ path: "index",
+ component: () => import("@/views/customer/invoice"),
+ name: "InvoiceManagement",
+ meta: { title: "发票管理", fullPath: "/invoiceManagement/index" },
+ }
+ ]
+ },
+
+ // // 客户 - 注释掉
+ // {
+ // 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: "百度云" }
+ // },
+
+ // ]
+ // },
+ // // 完善信息
+ // {
+ // 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" },
+ // },
+
+ // // 资源示例
+
+ // // 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: "/qualificationReview",
@@ -992,7 +1079,7 @@ export const asyncRoutes = [
component: Layout,
name: "demandMangement",
redirect: "/demandMangement/index",
- meta: { fullPath: "/demandMangement", title: "需求管理", noCache: true, icon: 'el-icon-s-home' },
+ meta: { fullPath: "/demandMangement", title: "需求管理", noCache: true, icon: 'el-icon-s-claim' },
children: [
{
path: "index",
@@ -1013,7 +1100,7 @@ export const asyncRoutes = [
component: Layout,
name: "productMangement",
redirect: "/productMangement/index",
- meta: { fullPath: "/productMangement", title: "商品管理", noCache: true, icon: 'el-icon-s-home' },
+ meta: { fullPath: "/productMangement", title: "商品管理", noCache: true, icon: 'el-icon-s-shop' },
children: [
{
path: "index",
@@ -1725,8 +1812,12 @@ export const asyncRoutes = [
},
{
path: "/administrator", component: Layout, redirect: "/administrator/index", meta: {
- title: "企业管理", icon: "el-icon-s-tools", noCache: true, fullPath: "/administrator",
- }, children: [
+ title: "企业管理",
+ icon: "el-icon-s-custom",
+ noCache: true,
+ fullPath: "/administrator"
+ },
+ children: [
{
path: "departmentManagement",
component: () => import("@/views/administrator/departmentManagement"),
diff --git a/f/web-kboss/src/store/modules/permission.js b/f/web-kboss/src/store/modules/permission.js
index 21d03d7..e4c1672 100644
--- a/f/web-kboss/src/store/modules/permission.js
+++ b/f/web-kboss/src/store/modules/permission.js
@@ -34,18 +34,18 @@ function filterAsyncRoutes(routes, permissions) {
}
// 新增:为普通用户添加订单管理和资源管理路由
-function addUserRoutes(routes, userType) {
- console.log("addUserRoutes - userType:", userType);
+function addUserRoutes(routes, userType, orgType) {
+ console.log("addUserRoutes - userType:", userType, "orgType:", orgType);
- // 如果是普通用户(org_type为2),添加订单管理和资源管理路由
- if (userType === 'user') {
+ const userRoutes = [];
+
+ // 如果是普通用户(org_type为2或userType为user),添加订单管理和资源管理路由
+ if (userType === 'user' || orgType == 2) {
const orderManagementRoute = routes.find(route => route.path === "/orderManagement");
const resourceManagementRoute = routes.find(route => route.path === "/resourceManagement");
- const userRoutes = [];
-
if (orderManagementRoute) {
- console.log("添加订单管理路由");
+ console.log("添加订单管理路由");
userRoutes.push(JSON.parse(JSON.stringify(orderManagementRoute))); // 深拷贝
}
@@ -53,11 +53,21 @@ function addUserRoutes(routes, userType) {
console.log("添加资源管理路由");
userRoutes.push(JSON.parse(JSON.stringify(resourceManagementRoute))); // 深拷贝
}
-
- return userRoutes;
}
- return [];
+ // 新增:为所有用户添加五个新的客户菜单
+ const newCustomerRoutes = [
+ routes.find(route => route.path === "/workOrderManagement"),
+ routes.find(route => route.path === "/unsubscribeManagement"),
+ routes.find(route => route.path === "/informationPerfect"),
+ routes.find(route => route.path === "/rechargeManagement"),
+ routes.find(route => route.path === "/invoiceManagement")
+ ].filter(route => route); // 过滤掉undefined
+
+ console.log("添加新的客户菜单路由:", newCustomerRoutes.map(r => r.path));
+ userRoutes.push(...newCustomerRoutes);
+
+ return userRoutes;
}
function filterRoutesMobile(routes) {
@@ -145,20 +155,18 @@ const actions = {
accessedRoutes = [];
}
- // 新增:为普通用户添加订单管理和资源管理路由
- if (userType === 'user' || orgType == 2) {
- console.log("为普通用户添加订单管理和资源管理路由");
- const userSpecificRoutes = addUserRoutes(asyncRoutes, userType);
+ // 新增:为普通用户添加订单管理和资源管理路由以及新的五个客户菜单
+ console.log("为用户添加特定路由");
+ const userSpecificRoutes = addUserRoutes(asyncRoutes, userType, orgType);
- // 确保不重复添加路由
- userSpecificRoutes.forEach(route => {
- if (!accessedRoutes.some(r => r.path === route.path)) {
- accessedRoutes.push(route);
- }
- });
+ // 确保不重复添加路由
+ userSpecificRoutes.forEach(route => {
+ if (!accessedRoutes.some(r => r.path === route.path)) {
+ accessedRoutes.push(route);
+ }
+ });
- console.log("添加用户特定路由后的accessedRoutes:", accessedRoutes);
- }
+ console.log("添加用户特定路由后的accessedRoutes:", accessedRoutes);
}
console.log("ACTION generateRoutes - calculated accessedRoutes:", accessedRoutes);
diff --git a/f/web-kboss/src/views/homePage/components/topBox/index.vue b/f/web-kboss/src/views/homePage/components/topBox/index.vue
index 1eb3ae2..7f46fac 100644
--- a/f/web-kboss/src/views/homePage/components/topBox/index.vue
+++ b/f/web-kboss/src/views/homePage/components/topBox/index.vue
@@ -13,6 +13,7 @@
+
{{ translations[language].home }}
From 54e01453d5ebff7700bdeb34ec090efac0c2a76b Mon Sep 17 00:00:00 2001
From: hrx <18603305412@163.com>
Date: Thu, 30 Oct 2025 16:57:08 +0800
Subject: [PATCH 4/5] updata
---
.../src/layout/components/Sidebar/index.vue | 7 +-
f/web-kboss/src/main.js | 1 -
f/web-kboss/src/router/index.js | 39 +-
f/web-kboss/src/store/modules/permission.js | 7 +-
f/web-kboss/src/styles/index.css | 60 ++
.../productMangement/commonBox/index.vue | 922 +++++++++++-------
.../src/views/homePage/mainPage/index.vue | 3 +-
.../src/views/product/mainPage/index.vue | 11 +-
8 files changed, 663 insertions(+), 387 deletions(-)
diff --git a/f/web-kboss/src/layout/components/Sidebar/index.vue b/f/web-kboss/src/layout/components/Sidebar/index.vue
index 42cc42c..9763d74 100644
--- a/f/web-kboss/src/layout/components/Sidebar/index.vue
+++ b/f/web-kboss/src/layout/components/Sidebar/index.vue
@@ -1,4 +1,3 @@
-