Compare commits

..

No commits in common. "a51187d14a3ab59f89c90afe064727b29816b7b1" and "434e41386fb6ec040f01ab6d76eaf6c02282f8d5" have entirely different histories.

7 changed files with 60 additions and 127 deletions

View File

@ -730,11 +730,6 @@ export default {
this.editUserInfoDialog = false; this.editUserInfoDialog = false;
}, },
async logout() { async logout() {
let redirectPath = ''
if (this.$route && this.$route.fullPath && !this.$route.fullPath.includes('/login')) {
redirectPath = this.$route.fullPath
sessionStorage.setItem('loginRedirectPath', redirectPath)
}
store.commit('tagsView/resetBreadcrumbState'); store.commit('tagsView/resetBreadcrumbState');
store.commit('permission/RESET_ROUTES'); store.commit('permission/RESET_ROUTES');
sessionStorage.removeItem("auths"); sessionStorage.removeItem("auths");
@ -755,10 +750,7 @@ export default {
localStorage.removeItem("org_type") localStorage.removeItem("org_type")
sessionStorage.removeItem('userId') sessionStorage.removeItem('userId')
this.$store.commit('setLoginState', false) this.$store.commit('setLoginState', false)
await this.$router.push({ await this.$router.push(getHomePath());
path: '/login',
query: redirectPath ? { redirect: redirectPath } : {}
});
}, },
async logout1() { async logout1() {
logoutAPI().then((res) => { logoutAPI().then((res) => {

View File

@ -148,9 +148,6 @@ router.beforeEach(async (to, from, next) => {
} }
// next(`/login?redirect=${to.path}`); // next(`/login?redirect=${to.path}`);
console.log("路由执行了2@@@") console.log("路由执行了2@@@")
if (to.fullPath && !to.fullPath.includes('/login')) {
sessionStorage.setItem('loginRedirectPath', to.fullPath)
}
next(homePath) next(homePath)
// next(`/beforeLogin`); // next(`/beforeLogin`);
// console.log("111行被打印了") // console.log("111行被打印了")
@ -180,9 +177,6 @@ router.beforeEach(async (to, from, next) => {
// console.log(error); // console.log(error);
Message.error(error || "Has Error"); Message.error(error || "Has Error");
// next(`/login?redirect=${to.path}`); // next(`/login?redirect=${to.path}`);
if (to.fullPath && !to.fullPath.includes('/login')) {
sessionStorage.setItem('loginRedirectPath', to.fullPath)
}
next(homePath) next(homePath)
// console.log("137行被打印了") // console.log("137行被打印了")
NProgress.done(); NProgress.done();

View File

@ -44,14 +44,6 @@ if (window.location.href.includes("dev.opencomputing.cn")) {
console.log("环境的前缀时" + testUrl); // 应该输出 'https://www.kaiyuancloud.cn/dev' console.log("环境的前缀时" + testUrl); // 应该输出 'https://www.kaiyuancloud.cn/dev'
let isRedirectingToLogin = false let isRedirectingToLogin = false
const saveLoginRedirectPath = () => {
const currentRoute = router.currentRoute
const fullPath = currentRoute && currentRoute.fullPath
if (fullPath && !fullPath.includes('/login')) {
sessionStorage.setItem('loginRedirectPath', fullPath)
}
}
const getErrorStatus = (error) => { const getErrorStatus = (error) => {
if (error && error.response && error.response.status) { if (error && error.response && error.response.status) {
return Number(error.response.status) return Number(error.response.status)
@ -163,7 +155,6 @@ service.interceptors.response.use(
if (code == 401) { if (code == 401) {
if (!isRedirectingToLogin) { if (!isRedirectingToLogin) {
isRedirectingToLogin = true isRedirectingToLogin = true
saveLoginRedirectPath()
showErrorMessage('登录已过期,请重新登录') showErrorMessage('登录已过期,请重新登录')
router.push({path: '/login'}).finally(() => { router.push({path: '/login'}).finally(() => {
isRedirectingToLogin = false isRedirectingToLogin = false

View File

@ -36,9 +36,9 @@
<h2>应用场景</h2> <h2>应用场景</h2>
<p>覆盖企业合同全生命周期审核链路</p> <p>覆盖企业合同全生命周期审核链路</p>
</div> </div>
<div class="case-scenario-grid"> <div class="scenario-grid">
<article class="case-feature-card scenario-card"> <article class="feature-card scenario-card">
<div class="case-feature-card__visual case-feature-card__visual--illustration visual-blue"> <div class="feature-card__visual feature-card__visual--illustration visual-blue">
<svg viewBox="0 0 400 200" fill="none"> <svg viewBox="0 0 400 200" fill="none">
<circle cx="320" cy="40" r="60" fill="#3b82f6" opacity="0.1" /> <circle cx="320" cy="40" r="60" fill="#3b82f6" opacity="0.1" />
<circle cx="80" cy="160" r="40" fill="#6366f1" opacity="0.1" /> <circle cx="80" cy="160" r="40" fill="#6366f1" opacity="0.1" />
@ -69,8 +69,8 @@
</g> </g>
</svg> </svg>
</div> </div>
<div class="case-feature-card__head"> <div class="feature-card__head">
<span class="case-icon-gradient"> <span class="icon-gradient">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24"> <svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414A1 1 0 0119 9.414V19a2 2 0 01-2 2z" /> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 12h6m-6 4h6m2 5H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414A1 1 0 0119 9.414V19a2 2 0 01-2 2z" />
</svg> </svg>
@ -80,8 +80,8 @@
<p>自动解析购销服务租赁合作类通用业务合同逐条对标企业风控红线快速筛查风险点输出初审意见减轻法务基础审核工作量快速完成业务前置审批</p> <p>自动解析购销服务租赁合作类通用业务合同逐条对标企业风控红线快速筛查风险点输出初审意见减轻法务基础审核工作量快速完成业务前置审批</p>
</article> </article>
<article class="case-feature-card scenario-card"> <article class="feature-card scenario-card">
<div class="case-feature-card__visual case-feature-card__visual--illustration visual-purple"> <div class="feature-card__visual feature-card__visual--illustration visual-purple">
<svg viewBox="0 0 400 200" fill="none"> <svg viewBox="0 0 400 200" fill="none">
<circle cx="100" cy="50" r="50" fill="#8b5cf6" opacity="0.1" /> <circle cx="100" cy="50" r="50" fill="#8b5cf6" opacity="0.1" />
<circle cx="300" cy="150" r="60" fill="#ec4899" opacity="0.1" /> <circle cx="300" cy="150" r="60" fill="#ec4899" opacity="0.1" />
@ -103,8 +103,8 @@
</g> </g>
</svg> </svg>
</div> </div>
<div class="case-feature-card__head"> <div class="feature-card__head">
<span class="case-icon-gradient"> <span class="icon-gradient">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24"> <svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" /> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 15v2m-6 4h12a2 2 0 002-2v-6a2 2 0 00-2-2H6a2 2 0 00-2 2v6a2 2 0 002 2zm10-10V7a4 4 0 00-8 0v4h8z" />
</svg> </svg>
@ -114,8 +114,8 @@
<p>针对投融资知识产权工程保密竞业等高风险专项合同联动完整法条与司法判例开展多层级风险推演梳理权责漏洞违约缺陷管辖争议等深层隐患输出完整风控评估文档</p> <p>针对投融资知识产权工程保密竞业等高风险专项合同联动完整法条与司法判例开展多层级风险推演梳理权责漏洞违约缺陷管辖争议等深层隐患输出完整风控评估文档</p>
</article> </article>
<article class="case-feature-card scenario-card"> <article class="feature-card scenario-card">
<div class="case-feature-card__visual case-feature-card__visual--illustration visual-green"> <div class="feature-card__visual feature-card__visual--illustration visual-green">
<svg viewBox="0 0 400 200" fill="none"> <svg viewBox="0 0 400 200" fill="none">
<circle cx="350" cy="60" r="50" fill="#10b981" opacity="0.1" /> <circle cx="350" cy="60" r="50" fill="#10b981" opacity="0.1" />
<circle cx="50" cy="140" r="40" fill="#14b8a6" opacity="0.1" /> <circle cx="50" cy="140" r="40" fill="#14b8a6" opacity="0.1" />
@ -150,8 +150,8 @@
</g> </g>
</svg> </svg>
</div> </div>
<div class="case-feature-card__head"> <div class="feature-card__head">
<span class="case-icon-gradient"> <span class="icon-gradient">
<svg fill="none" stroke="currentColor" viewBox="0 0 24 24"> <svg fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4" /> <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7h12m0 0l-4-4m4 4l-4 4m0 6H4m0 0l4 4m-4-4l4-4" />
</svg> </svg>
@ -224,8 +224,8 @@
<h2>项目亮点</h2> <h2>项目亮点</h2>
<p>全流程智能风控四大核心审查能力落地</p> <p>全流程智能风控四大核心审查能力落地</p>
</div> </div>
<div class="case-highlight-grid"> <div class="highlight-grid">
<article v-for="(item, index) in highlights" :key="item.title" class="case-highlight-card"> <article v-for="(item, index) in highlights" :key="item.title" class="highlight-card">
<span class="highlight-num">{{ index + 1 }}</span> <span class="highlight-num">{{ index + 1 }}</span>
<div> <div>
<h3>{{ item.title }}</h3> <h3>{{ item.title }}</h3>
@ -569,17 +569,15 @@ export default {
font-size: 20px; font-size: 20px;
} }
.case-scenario-grid, .scenario-grid,
.solution-grid, .solution-grid,
.case-highlight-grid { .highlight-grid {
display: grid; display: grid;
gap: 32px; gap: 32px;
} }
.contract-case-page .case-scenario-grid { .scenario-grid {
display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr));
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
gap: 32px !important;
} }
.solution-grid { .solution-grid {
@ -587,52 +585,49 @@ export default {
gap: 48px; gap: 48px;
} }
.contract-case-page .case-highlight-grid { .highlight-grid {
display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr));
grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
gap: 32px !important;
} }
.contract-case-page .case-feature-card, .feature-card,
.solution-item, .solution-item,
.contract-case-page .case-highlight-card { .highlight-card {
background: #fff; background: #fff;
border-radius: 18px; border-radius: 18px;
box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08); box-shadow: 0 10px 22px rgba(15, 23, 42, 0.08);
transition: all 0.3s ease; transition: all 0.3s ease;
} }
.contract-case-page .case-feature-card:hover, .feature-card:hover,
.solution-item:hover, .solution-item:hover,
.contract-case-page .case-highlight-card:hover { .highlight-card:hover {
transform: translateY(-4px); transform: translateY(-4px);
box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12); box-shadow: 0 18px 36px rgba(15, 23, 42, 0.12);
} }
.contract-case-page .case-feature-card { .feature-card {
display: block !important; overflow: hidden;
overflow: hidden !important;
} }
.case-feature-card__visual { .feature-card__visual {
display: flex; display: flex;
align-items: center; align-items: center;
justify-content: center; justify-content: center;
height: 190px; height: 190px;
} }
.case-feature-card__visual svg { .feature-card__visual svg {
width: 84px; width: 84px;
height: 84px; height: 84px;
} }
.case-feature-card__visual--illustration { .feature-card__visual--illustration {
position: relative; position: relative;
height: 192px; height: 192px;
overflow: hidden; overflow: hidden;
} }
.case-feature-card__visual--illustration > svg { .feature-card__visual--illustration > svg {
position: absolute; position: absolute;
inset: 0; inset: 0;
width: 100%; width: 100%;
@ -696,7 +691,7 @@ export default {
} }
} }
.case-feature-card__head { .feature-card__head {
display: flex; display: flex;
align-items: center; align-items: center;
gap: 12px; gap: 12px;
@ -704,28 +699,28 @@ export default {
margin-bottom: 16px; margin-bottom: 16px;
} }
.case-feature-card h3, .feature-card h3,
.solution-item h4, .solution-item h4,
.case-highlight-card h3 { .highlight-card h3 {
margin: 0; margin: 0;
color: #111827; color: #111827;
font-size: 20px; font-size: 20px;
font-weight: 700; font-weight: 700;
} }
.case-feature-card p, .feature-card p,
.solution-item p, .solution-item p,
.case-highlight-card p { .highlight-card p {
margin: 0; margin: 0;
color: #4b5563; color: #4b5563;
line-height: 1.7; line-height: 1.7;
} }
.case-feature-card > p { .feature-card > p {
padding: 0 32px 32px; padding: 0 32px 32px;
} }
.case-icon-gradient, .icon-gradient,
.solution-icon, .solution-icon,
.column-title span, .column-title span,
.highlight-num { .highlight-num {
@ -738,12 +733,12 @@ export default {
border-radius: 12px; border-radius: 12px;
} }
.case-icon-gradient { .icon-gradient {
width: 40px; width: 40px;
height: 40px; height: 40px;
} }
.case-icon-gradient svg { .icon-gradient svg {
width: 20px; width: 20px;
height: 20px; height: 20px;
} }
@ -809,8 +804,8 @@ export default {
margin-bottom: 8px; margin-bottom: 8px;
} }
.contract-case-page .case-highlight-card { .highlight-card {
display: flex !important; display: flex;
gap: 18px; gap: 18px;
padding: 32px; padding: 32px;
} }
@ -822,7 +817,7 @@ export default {
font-weight: 800; font-weight: 800;
} }
.case-highlight-card h3 { .highlight-card h3 {
margin-bottom: 12px; margin-bottom: 12px;
} }
@ -865,10 +860,10 @@ export default {
} }
@media (max-width: 1024px) { @media (max-width: 1024px) {
.case-scenario-grid, .scenario-grid,
.solution-grid, .solution-grid,
.case-highlight-grid { .highlight-grid {
grid-template-columns: 1fr !important; grid-template-columns: 1fr;
} }
} }
@ -901,10 +896,10 @@ export default {
font-size: 30px; font-size: 30px;
} }
.case-feature-card__head, .feature-card__head,
.case-feature-card > p, .feature-card > p,
.solution-item, .solution-item,
.case-highlight-card { .highlight-card {
padding: 24px; padding: 24px;
} }
} }

View File

@ -101,7 +101,7 @@ export default {
name: 'AgentStore', name: 'AgentStore',
data() { data() {
return { return {
activeMainTab: 'general', activeMainTab: 'industry',
activeSubTab: 'all', activeSubTab: 'all',
generalSubTabs: [ generalSubTabs: [
{ id: 'all', label: '全部' }, { id: 'all', label: '全部' },

View File

@ -66,8 +66,8 @@
<!-- 用户下拉菜单已登录 --> <!-- 用户下拉菜单已登录 -->
<el-dropdown v-if="loginState" @visible-change="handleShow" <el-dropdown v-if="loginState" @visible-change="handleShow"
class="avatar-container right-menu-item hover-effect nick-name-style" style="margin-right: 0" trigger="click"> class="avatar-container right-menu-item hover-effect nick-name-style" style="margin-right: 0" trigger="click">
<!-- 头像区域仅作为下拉菜单触发器 --> <!-- 头像区域添加点击事件 -->
<div class="avatar-wrapper"> <div class="avatar-wrapper" @click="goHome">
<i <i
style="font-size: 18px; color: #262626;font-weight: 400;cursor: pointer;display: flex;justify-content: flex-end;align-items: center"> style="font-size: 18px; color: #262626;font-weight: 400;cursor: pointer;display: flex;justify-content: flex-end;align-items: center">
<div class="imgUser"><img src="../../../../assets/image/user.png" alt=""></div> <div class="imgUser"><img src="../../../../assets/image/user.png" alt=""></div>
@ -787,11 +787,6 @@ export default Vue.extend({
// 退 // 退
async logout() { async logout() {
let redirectPath = ''
if (this.$route && this.$route.fullPath && !this.$route.fullPath.includes('/login')) {
redirectPath = this.$route.fullPath
sessionStorage.setItem('loginRedirectPath', redirectPath)
}
this.$store.commit('setLoginState', false) this.$store.commit('setLoginState', false)
store.commit('tagsView/resetBreadcrumbState'); store.commit('tagsView/resetBreadcrumbState');
store.commit('permission/RESET_ROUTES'); store.commit('permission/RESET_ROUTES');
@ -811,10 +806,9 @@ export default Vue.extend({
localStorage.removeItem("userId"); localStorage.removeItem("userId");
localStorage.removeItem("org_type") localStorage.removeItem("org_type")
localStorage.removeItem('userId') localStorage.removeItem('userId')
await this.$router.push({ if (!window.location.href.includes('homePage/index')) {
path: '/login', await this.$router.push(getHomePath());
query: redirectPath ? { redirect: redirectPath } : {} }
});
}, },
// //

View File

@ -462,10 +462,8 @@ export default {
console.log("生成的路径是", accessRoutes); console.log("生成的路径是", accessRoutes);
router.addRoutes(accessRoutes); router.addRoutes(accessRoutes);
// 退 //
if (this.redirectToSavedPage()) { if (org_type === "2" || org_type === "3") {
//
} else if (org_type === "2" || org_type === "3") {
this.$router.push("/product/productHome"); this.$router.push("/product/productHome");
} else if (response.roles.includes("运营")) { } else if (response.roles.includes("运营")) {
this.$router.push("/operation/supplierManagement"); this.$router.push("/operation/supplierManagement");
@ -742,35 +740,6 @@ export default {
this.capsTooltip = key && key.length === 1 && key >= "A" && key <= "Z"; this.capsTooltip = key && key.length === 1 && key >= "A" && key <= "Z";
}, },
getLoginRedirectPath() {
const queryRedirect = this.$route.query && this.$route.query.redirect
const rawPath = Array.isArray(queryRedirect)
? queryRedirect[0]
: queryRedirect || sessionStorage.getItem('loginRedirectPath')
if (!rawPath) return ''
let redirectPath = rawPath
try {
redirectPath = decodeURIComponent(rawPath)
} catch (error) {
redirectPath = rawPath
}
if (!redirectPath || !redirectPath.startsWith('/') || redirectPath.includes('/login')) {
sessionStorage.removeItem('loginRedirectPath')
return ''
}
return redirectPath
},
redirectToSavedPage() {
const redirectPath = this.getLoginRedirectPath()
if (!redirectPath) return false
sessionStorage.removeItem('loginRedirectPath')
this.$router.push(redirectPath)
return true
},
// //
handleLogin(formName) { handleLogin(formName) {
this.$refs[formName].validate((valid) => { this.$refs[formName].validate((valid) => {
@ -807,10 +776,8 @@ export default {
sessionStorage.setItem("org_type", res.org_type); sessionStorage.setItem("org_type", res.org_type);
sessionStorage.setItem("username", res['user'].username); sessionStorage.setItem("username", res['user'].username);
// 退 //
if (this.redirectToSavedPage()) { if (res.admin === 1) {
//
} else if (res.admin === 1) {
this.$router.push({ path: "/" }); this.$router.push({ path: "/" });
} else if ( } else if (
sessionStorage.getItem("org_type") == "2" || sessionStorage.getItem("org_type") == "2" ||