|
@@ -1,7 +1,7 @@
|
|
/*
|
|
/*
|
|
* @Author: your name
|
|
* @Author: your name
|
|
* @Date: 2021-11-10 09:33:30
|
|
* @Date: 2021-11-10 09:33:30
|
|
- * @LastEditTime: 2023-04-13 13:35:55
|
|
|
|
|
|
+ * @LastEditTime: 2023-04-13 18:25:35
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
* @LastEditors: code4eat awesomedema@gmail.com
|
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
|
|
* @FilePath: /KC-MiddlePlatform/src/pages/index.tsx
|
|
* @FilePath: /KC-MiddlePlatform/src/pages/index.tsx
|
|
@@ -16,7 +16,7 @@ import TopBar from '@/components/topBar';
|
|
import { FastEntry, FastEntryTabType } from './components/FastEntry';
|
|
import { FastEntry, FastEntryTabType } from './components/FastEntry';
|
|
import { RecentlyVisited, RecentlyVisitedItemsType } from './components/RecentlyVisited';
|
|
import { RecentlyVisited, RecentlyVisitedItemsType } from './components/RecentlyVisited';
|
|
import { todoItem, TodoList } from './components/TodoList';
|
|
import { todoItem, TodoList } from './components/TodoList';
|
|
-import { getUserIndexData, todoListAct, UserInfo } from '@/service';
|
|
|
|
|
|
+import { getAllParams, getUserIndexData, todoListAct, UserInfo } from '@/service';
|
|
import { MsgRecord } from './components/MsgRecord';
|
|
import { MsgRecord } from './components/MsgRecord';
|
|
import { getParamsManaTableData } from '../platform/setting/paramsMana/service';
|
|
import { getParamsManaTableData } from '../platform/setting/paramsMana/service';
|
|
|
|
|
|
@@ -98,10 +98,10 @@ const IndexPage: React.FC<IndexPageType> = ({ location }) => {
|
|
|
|
|
|
const setIframeUrl = async () => {
|
|
const setIframeUrl = async () => {
|
|
|
|
|
|
- const resp = await getParamsManaTableData({ current: 1, pageSize: 100 });
|
|
|
|
|
|
+ const resp = await getAllParams();
|
|
|
|
|
|
if (resp) {
|
|
if (resp) {
|
|
- const needItem = resp.list.filter((a: any) => a.id == 31);
|
|
|
|
|
|
+ const needItem = resp.filter((a: any) => a.id == 31);
|
|
const userData = localStorage.getItem('userData');
|
|
const userData = localStorage.getItem('userData');
|
|
let token = '';
|
|
let token = '';
|
|
if (userData) {
|
|
if (userData) {
|
|
@@ -110,7 +110,7 @@ const IndexPage: React.FC<IndexPageType> = ({ location }) => {
|
|
}
|
|
}
|
|
|
|
|
|
if (needItem.length > 0) {
|
|
if (needItem.length > 0) {
|
|
- setspecialPageUrl(`http://eastern1.kcim-bi.163yun.com/dash/integration/56&rid=${needItem[0].value}&toolbar=[]&hideTitle=true&hideScaleBar=false&hidePageBar=false&token=${token}`);
|
|
|
|
|
|
+ setspecialPageUrl(`http://eastern1.kcim-bi.163yun.com/dash/integration/56?rid=${needItem[0].value}&toolbar=[]&hideTitle=true&hideScaleBar=false&hidePageBar=false&token=${token}`);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|