Parcourir la source

修改日志管理枚举值

林倩 il y a 4 ans
Parent
commit
4aea30f62f

+ 1 - 1
src/pages/log-manage/auth-risk-detection/detail.vue

@@ -44,7 +44,7 @@
                                 <label>必要参数:</label>
                                 <dg-checkbox-group
                                     v-model="form.necessaryParams"
-                                    enum="AuthenticationTypeEnum"
+                                    enum="AuthenticationNecessaryParamEnum"
                                     disabled
                                 ></dg-checkbox-group>
                             </div>

+ 1 - 1
src/pages/log-manage/auth-risk-detection/edit.vue

@@ -56,7 +56,7 @@
                                 <label>必要参数:</label>
                                 <dg-checkbox-group
                                     v-model="sizeForm.necessaryParams"
-                                    enum="AuthenticationTypeEnum"
+                                    enum="AuthenticationNecessaryParamEnum"
                                     disabled
                                 ></dg-checkbox-group>
                             </div>

+ 3 - 3
src/pages/log-manage/permiss-log-manage/DataConfig.js

@@ -77,7 +77,7 @@ export const authServiceLogTableHeader = [
     {
         label: "鉴权类型",
         prop: "authenticationType",
-        enum: "AuthenticationNecessaryParamEnum"
+        enum: "AuthenticationTypeEnum"
     },
     {
         label: "鉴权结果",
@@ -122,7 +122,7 @@ export const authBehaviorStatisticTableHeader = [
     {
         label: "鉴权类型",
         prop: "type",
-        enum: "AuthenticationNecessaryParamEnum"
+        enum: "AuthenticationTypeEnum"
     },
     {
         label: "鉴权成功次数",
@@ -217,7 +217,7 @@ export const authServiceLogDetail = [
     {
         label: "鉴权类型",
         value: "authenticationType",
-        enum: "AuthenticationNecessaryParamEnum"
+        enum: "AuthenticationTypeEnum"
     },
     {
         label: "鉴权结果",

+ 1 - 1
src/pages/log-manage/permiss-log-manage/auth-service-log.vue

@@ -18,7 +18,7 @@
                 <dg-select
                     v-model="form.authenticationType.value"
                     placeholder="请选择鉴权类型"
-                    enum="AuthenticationNecessaryParamEnum"
+                    enum="AuthenticationTypeEnum"
                     clearable
                     style="width: 9rem"
                 >

+ 1 - 19
src/router/lxr_permission.js

@@ -2,7 +2,7 @@ import router from "@/router/index.js";
 import store from "@/store";
 import NProgress from "nprogress"; // progress bar
 import "./progress.css";
-import { getToken, getUserName } from "@/utils/auth"; // getToken from cookie
+import {  getUserName } from "@/utils/auth"; // getToken from cookie
 import _ from "lodash";
 
 const { initSettings, getSetting, getSettings } = window.systemParamsUtils;
@@ -56,24 +56,6 @@ function noNeedLogin(to, from, next) {
     }
 }
 
-/**
- * 如果是Oauth2登录并且地址栏上有code字段,则去请求access_token
- * @param queryObject   地址栏上的参数
- */
-async function getAccessToken(queryObject) {
-    let code = queryObject.code.split("#/")[0];
-    try {
-        await store.dispatch("GetOAuthToken", { code });
-        if (getToken()) {
-            window.location.href = "http://" + window.location.host + decodeURIComponent(window.location.pathname);
-        }
-    } catch (reason) {
-        console.error(reason);
-        store.dispatch("FedLogout").then(() => {
-            location.reload();
-        });
-    }
-}
 
 /**
  * 检查是否在白名单中,进行页面跳转