|
@@ -538,13 +538,13 @@
|
|
|
</h4>
|
|
</h4>
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
- <span class="text-black">SRM系统尚未正式上线使用</span>
|
|
|
|
|
|
|
+ <span class="text-black">账号未授权</span>
|
|
|
<template #footer>
|
|
<template #footer>
|
|
|
<div class="dialog-footer">
|
|
<div class="dialog-footer">
|
|
|
- <el-button @click="dialogVisible = false">取消</el-button>
|
|
|
|
|
- <el-button type="primary" color="#063e8d" @click="confirmSrm">
|
|
|
|
|
|
|
+ <el-button @click="dialogVisible = false">确定</el-button>
|
|
|
|
|
+ <!-- <el-button type="primary" color="#063e8d" @click="confirmSrm">
|
|
|
继续访问
|
|
继续访问
|
|
|
- </el-button>
|
|
|
|
|
|
|
+ </el-button> -->
|
|
|
</div>
|
|
</div>
|
|
|
</template>
|
|
</template>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
@@ -683,8 +683,9 @@ const portalSections: PortalSection[] = [
|
|
|
height: "210px",
|
|
height: "210px",
|
|
|
apps: [
|
|
apps: [
|
|
|
{ label: "设备管理(PMS)", image: pmsimage, active: true },
|
|
{ label: "设备管理(PMS)", image: pmsimage, active: true },
|
|
|
- { label: "中航北斗", image: zhonghangimage },
|
|
|
|
|
{ label: "质量安全管理(QHSE)", image: qhseimage },
|
|
{ label: "质量安全管理(QHSE)", image: qhseimage },
|
|
|
|
|
+ { label: "中航北斗", image: zhonghangimage },
|
|
|
|
|
+
|
|
|
{ label: "智慧连油", image: lianyouimage },
|
|
{ label: "智慧连油", image: lianyouimage },
|
|
|
{ label: "智慧注气", image: zhuqiimage },
|
|
{ label: "智慧注气", image: zhuqiimage },
|
|
|
{ label: "视频中心(VCS)", image: videoimage },
|
|
{ label: "视频中心(VCS)", image: videoimage },
|
|
@@ -1060,25 +1061,25 @@ const handlePortalAppClick = async (app: PortalApp) => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (app.label === "供应商管理(SRM)") {
|
|
if (app.label === "供应商管理(SRM)") {
|
|
|
- // ElMessageBox.confirm("即将跳转到供应商管理系统,是否继续?", "提示", {
|
|
|
|
|
- // confirmButtonText: "继续",
|
|
|
|
|
- // cancelButtonText: "取消",
|
|
|
|
|
- // }).then(async () => {});
|
|
|
|
|
- dialogVisible.value = true;
|
|
|
|
|
- // if (userStore.getUser.username && getAccessToken()) {
|
|
|
|
|
- // const res = await srmLogin({
|
|
|
|
|
- // username: userStore.getUser.username,
|
|
|
|
|
- // });
|
|
|
|
|
-
|
|
|
|
|
- // if (res) {
|
|
|
|
|
- // window.open(
|
|
|
|
|
- // `https://srmqas.deepoil.cc/#/mixed-page/view/MXP00048?Authorization=${JSON.parse(res).msg}`,
|
|
|
|
|
- // "_blank",
|
|
|
|
|
- // );
|
|
|
|
|
- // }
|
|
|
|
|
- // } else {
|
|
|
|
|
- // router.push({ path: "/login" });
|
|
|
|
|
- // }
|
|
|
|
|
|
|
+ if (userStore.getUser.username && getAccessToken()) {
|
|
|
|
|
+ const res = await srmLogin({
|
|
|
|
|
+ username: userStore.getUser.username,
|
|
|
|
|
+ });
|
|
|
|
|
+
|
|
|
|
|
+ if (JSON.parse(res).msg === "账号未授权") {
|
|
|
|
|
+ dialogVisible.value = true;
|
|
|
|
|
+ return;
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
|
|
+ if (res) {
|
|
|
|
|
+ window.open(
|
|
|
|
|
+ `https://srm.deepoil.cc/#/mixed-page/view/MXP00048?Authorization=${JSON.parse(res).msg}`,
|
|
|
|
|
+ "_blank",
|
|
|
|
|
+ );
|
|
|
|
|
+ }
|
|
|
|
|
+ } else {
|
|
|
|
|
+ router.push({ path: "/login" });
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
if (app.label === "智能钻井") {
|
|
if (app.label === "智能钻井") {
|
|
@@ -2209,7 +2210,7 @@ onUnmounted(() => {
|
|
|
}
|
|
}
|
|
|
/* 下拉菜单主体 */
|
|
/* 下拉菜单主体 */
|
|
|
:deep(.el-dropdown-menu) {
|
|
:deep(.el-dropdown-menu) {
|
|
|
- background-color: rgba(0, 0, 0, 0.75) !important;
|
|
|
|
|
|
|
+ background-color: var(--dropdown-menu) !important;
|
|
|
border: none !important;
|
|
border: none !important;
|
|
|
border-radius: 5px;
|
|
border-radius: 5px;
|
|
|
box-shadow: none !important; /* 关键:去除阴影导致的“白边”视觉效果 */
|
|
box-shadow: none !important; /* 关键:去除阴影导致的“白边”视觉效果 */
|
|
@@ -2218,7 +2219,7 @@ onUnmounted(() => {
|
|
|
|
|
|
|
|
/* 菜单项 */
|
|
/* 菜单项 */
|
|
|
:deep(.el-dropdown-menu__item) {
|
|
:deep(.el-dropdown-menu__item) {
|
|
|
- background: #192a5b !important;
|
|
|
|
|
|
|
+ background: var(--dropdown-menu) !important;
|
|
|
color: #fff !important; /* 确保文字颜色可见 */
|
|
color: #fff !important; /* 确保文字颜色可见 */
|
|
|
padding: 0 !important;
|
|
padding: 0 !important;
|
|
|
margin: 0 !important;
|
|
margin: 0 !important;
|
|
@@ -2226,7 +2227,7 @@ onUnmounted(() => {
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
:deep(.el-dropdown-menu__item):hover {
|
|
:deep(.el-dropdown-menu__item):hover {
|
|
|
- background: #182342 !important;
|
|
|
|
|
|
|
+ background: var(--dropdown-menu-hover) !important;
|
|
|
color: #fff !important;
|
|
color: #fff !important;
|
|
|
}
|
|
}
|
|
|
:deep(.el-dropdown-menu) {
|
|
:deep(.el-dropdown-menu) {
|