Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
B
bi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张苑
bi
Commits
16c4b648
Commit
16c4b648
authored
Sep 16, 2021
by
莫坚培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 增加token配置
parent
54ff996f
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
15 additions
and
20 deletions
+15
-20
dashboard.html
dashboard.html
+0
-0
index.html
dashboard/index.html
+1
-11
index.js
dashboard/js/index.js
+1
-2
index.html
index.html
+1
-0
dashboard.js
js/dashboard.js
+1
-3
data.js
js/data.js
+1
-3
domainSetting.js
js/domainSetting.js
+1
-1
tokenSetting.js
js/tokenSetting.js
+9
-0
preview.html
preview.html
+0
-0
No files found.
dashboard.html
View file @
16c4b648
This diff is collapsed.
Click to expand it.
dashboard/index.html
View file @
16c4b648
...
@@ -6,23 +6,13 @@
...
@@ -6,23 +6,13 @@
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
/>
<meta
http-equiv=
"Content-Security-Policy"
content=
"upgrade-insecure-requests"
/>
<meta
http-equiv=
"Content-Security-Policy"
content=
"upgrade-insecure-requests"
/>
<title>
仪表盘配置
</title>
<title>
仪表盘配置
</title>
<script
src=
"../js/tokenSetting.js"
></script>
<link
rel=
"stylesheet"
href=
"./global.css"
/>
<link
rel=
"stylesheet"
href=
"./global.css"
/>
<link
rel=
"stylesheet"
href=
"./libs/layui/css/layui.css"
/>
<link
rel=
"stylesheet"
href=
"./libs/layui/css/layui.css"
/>
<link
rel=
"stylesheet"
href=
"./styles/iconfont/iconfont.css"
/>
<link
rel=
"stylesheet"
href=
"./styles/iconfont/iconfont.css"
/>
<link
rel=
"stylesheet"
href=
"./libs/zTree_v3/css/zTreeStyle/zTreeStyle.css"
/>
<link
rel=
"stylesheet"
href=
"./libs/zTree_v3/css/zTreeStyle/zTreeStyle.css"
/>
<link
rel=
"stylesheet"
href=
"./pagination.css"
/>
<link
rel=
"stylesheet"
href=
"./pagination.css"
/>
<link
rel=
"stylesheet"
href=
"./index.css"
/>
<link
rel=
"stylesheet"
href=
"./index.css"
/>
<style
type=
"text/css"
>
/* @media screen and (max-width: 1100px) {
.z-contentBoxRight-table {
height: calc(100% - 220px);
width: 100%;
}
} */
</style>
</head>
</head>
<body>
<body>
...
...
dashboard/js/index.js
View file @
16c4b648
...
@@ -903,8 +903,7 @@ async function getToken() {
...
@@ -903,8 +903,7 @@ async function getToken() {
password
:
123456
,
password
:
123456
,
}
}
// 获取url值
// 获取url值
let
token
=
getParams
(
'token'
,
window
.
location
.
href
)
let
token
=
getParams
(
'token'
,
window
.
location
.
href
)
||
window
.
devToken
token
=
token
?
token
:
'cca20c8c-507b-43e0-8ca6-3571ae779698'
// 设置token,可删除
// 设置token,可删除
localStorage
.
setItem
(
"token"
,
token
)
localStorage
.
setItem
(
"token"
,
token
)
appId
=
getParams
(
'appId'
,
window
.
location
.
href
)
appId
=
getParams
(
'appId'
,
window
.
location
.
href
)
...
...
index.html
View file @
16c4b648
...
@@ -9,6 +9,7 @@
...
@@ -9,6 +9,7 @@
<title>
BI系统
</title>
<title>
BI系统
</title>
<script
src=
"./js/watcher.js"
></script>
<script
src=
"./js/watcher.js"
></script>
<script
src=
"./js/domainSetting.js"
></script>
<script
src=
"./js/domainSetting.js"
></script>
<script
src=
"./js/tokenSetting.js"
></script>
<link
rel=
"stylesheet"
href=
"https://at.alicdn.com/t/font_2431045_hbwl3x53oep.css"
>
<link
rel=
"stylesheet"
href=
"https://at.alicdn.com/t/font_2431045_hbwl3x53oep.css"
>
<link
rel=
"stylesheet"
href=
"./styles/date.css"
>
<link
rel=
"stylesheet"
href=
"./styles/date.css"
>
<link
rel=
"stylesheet"
href=
"./layui/css/layui.css"
>
<link
rel=
"stylesheet"
href=
"./layui/css/layui.css"
>
...
...
js/dashboard.js
View file @
16c4b648
...
@@ -11,9 +11,7 @@ appId = getParams('appId', window.location.href)
...
@@ -11,9 +11,7 @@ appId = getParams('appId', window.location.href)
// 测试 appId:APPDJLB_e39O token bff914c01c484e25b403b0bdbb7dfc22
// 测试 appId:APPDJLB_e39O token bff914c01c484e25b403b0bdbb7dfc22
appId
=
appId
?
appId
:
'TEST123_o582'
appId
=
appId
?
appId
:
'TEST123_o582'
var
token
=
''
var
token
=
getParams
(
'token'
,
window
.
location
.
href
)
||
window
.
devToken
token
=
getParams
(
'token'
,
window
.
location
.
href
)
token
=
token
?
token
:
'cca20c8c-507b-43e0-8ca6-3571ae779698'
localStorage
.
setItem
(
"token"
,
token
)
localStorage
.
setItem
(
"token"
,
token
)
var
zoomValue
=
100
var
zoomValue
=
100
var
getHistory
=
{}
var
getHistory
=
{}
...
...
js/data.js
View file @
16c4b648
...
@@ -20,9 +20,7 @@ function goToBi(event) {
...
@@ -20,9 +20,7 @@ function goToBi(event) {
appId
=
appId
?
appId
:
'TEST123_o582'
appId
=
appId
?
appId
:
'TEST123_o582'
// 颜色选择器的个数
// 颜色选择器的个数
// var colordiv
// var colordiv
var
token
=
''
var
token
=
getParams
(
'token'
,
window
.
location
.
href
)
||
window
.
devToken
token
=
getParams
(
'token'
,
window
.
location
.
href
)
token
=
token
?
token
:
'cca20c8c-507b-43e0-8ca6-3571ae779698'
localStorage
.
setItem
(
"token"
,
token
)
localStorage
.
setItem
(
"token"
,
token
)
var
tenantId
=
''
var
tenantId
=
''
...
...
js/domainSetting.js
View file @
16c4b648
...
@@ -3,7 +3,7 @@
...
@@ -3,7 +3,7 @@
* @description: 设置domain
* @description: 设置domain
* @Date: 2021-09-02 15:36:23
* @Date: 2021-09-02 15:36:23
* @LastEditors: 莫靓仔
* @LastEditors: 莫靓仔
* @LastEditTime: 2021-09-
02 16:37:03
* @LastEditTime: 2021-09-
16 18:44:31
*/
*/
if
(
window
.
location
.
host
.
indexOf
(
'shengyc.com'
)
>
-
1
)
{
if
(
window
.
location
.
host
.
indexOf
(
'shengyc.com'
)
>
-
1
)
{
document
.
domain
=
'shengyc.com'
document
.
domain
=
'shengyc.com'
...
...
js/tokenSetting.js
0 → 100644
View file @
16c4b648
/*
* @Author: 莫靓仔
* @description: 文件描述
* @Date: 2021-09-16 18:33:55
* @LastEditors: 莫靓仔
* @LastEditTime: 2021-09-16 18:33:55
*/
window
.
devToken
=
'cca20c8c-507b-43e0-8ca6-3571ae779698'
\ No newline at end of file
preview.html
View file @
16c4b648
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment