yanghao 1 месяц назад
Родитель
Сommit
a72620c547
3 измененных файлов с 19 добавлено и 0 удалено
  1. 1 0
      .env.prod
  2. 4 0
      components.d.ts
  3. 14 0
      src/views/index.vue

+ 1 - 0
.env.prod

@@ -1,5 +1,6 @@
 VITE_BASE_URL='https://portal.deepoil.cc'
 VITE_PMS_URL='https://aims.deepoil.cc'
+VITE_RDM_URL='https://rdm.deepoil.cc'
 VITE_DINGTALK_REDIRECT_URI='https://portal.deepoil.cc/login?loginType=dingding&type=20'
 
 

+ 4 - 0
components.d.ts

@@ -14,12 +14,16 @@ declare module 'vue' {
     CardItem: typeof import('./src/components/home/CardItem.vue')['default']
     ElBadge: typeof import('element-plus/es')['ElBadge']
     ElButton: typeof import('element-plus/es')['ElButton']
+    ElCheckbox: typeof import('element-plus/es')['ElCheckbox']
     ElDialog: typeof import('element-plus/es')['ElDialog']
     ElDrawer: typeof import('element-plus/es')['ElDrawer']
     ElDropdown: typeof import('element-plus/es')['ElDropdown']
     ElDropdownItem: typeof import('element-plus/es')['ElDropdownItem']
     ElDropdownMenu: typeof import('element-plus/es')['ElDropdownMenu']
+    ElForm: typeof import('element-plus/es')['ElForm']
+    ElFormItem: typeof import('element-plus/es')['ElFormItem']
     ElImage: typeof import('element-plus/es')['ElImage']
+    ElInput: typeof import('element-plus/es')['ElInput']
     ElPagination: typeof import('element-plus/es')['ElPagination']
     ElPopover: typeof import('element-plus/es')['ElPopover']
     ElTable: typeof import('element-plus/es')['ElTable']

+ 14 - 0
src/views/index.vue

@@ -870,6 +870,7 @@ const boldLabes = computed(() => [
   t("DigitalOperationPlatform.ehr"),
   t("DigitalOperationPlatform.zhanlue"),
   t("DigitalOperationPlatform.fm"),
+  t("DigitalOperationPlatform.rd"),
 ]);
 
 const searchKeyword = ref("");
@@ -1484,6 +1485,19 @@ const handlePortalAppClick = async (app: PortalApp) => {
       );
     }
   }
+
+  if (app.key === "rd") {
+    // if (userStore.getUser.username && getAccessToken()) {
+    //   const res = await rdLogin({
+    //     workcode: userStore.getUser.username,
+    //   });
+    // } else {
+    //   router.push({ path: "/login" });
+    // }
+    protectedOpen(
+      `${import.meta.env.VITE_RDM_URL}/portalLogin?username=${userStore.getUser.username}`,
+    );
+  }
 };
 
 async function loginWithDingTalk() {