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
83e9cb68
Commit
83e9cb68
authored
Sep 26, 2021
by
莫坚培
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: 渲染工作完成&去掉部分刷新逻辑
parent
95b3e4a4
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
19 deletions
+20
-19
color.js
js/color.js
+16
-16
dashboard.js
js/dashboard.js
+0
-0
tokenSetting.js
js/tokenSetting.js
+2
-2
treeConfig.js
js/treeConfig.js
+2
-1
No files found.
js/color.js
View file @
83e9cb68
...
...
@@ -120,20 +120,20 @@
var
elem
=
this
.
bindElem
;
var
top
=
elem
.
offsetTop
;
var
left
=
elem
.
offsetLeft
;
console
.
log
(
elem
)
console
.
log
(
elem
.
offsetTop
)
console
.
log
(
elem
.
offsetLeft
)
setTimeout
(()
=>
{
console
.
log
(
elem
.
offsetTop
)
console
.
log
(
elem
.
offsetLeft
)
},
1000
)
//
console.log(elem)
//
console.log( elem.offsetTop)
//
console.log( elem.offsetLeft)
//
setTimeout(()=>{
//
console.log( elem.offsetTop)
//
console.log( elem.offsetLeft)
//
},1000)
while
(
elem
.
offsetParent
)
{
top
+=
elem
.
offsetParent
.
offsetTop
;
left
+=
elem
.
offsetParent
.
offsetLeft
;
elem
=
elem
.
offsetParent
;
}
console
.
log
(
$
(
window
))
//
console.log($(window))
if
(
left
+
230
>
$
(
window
).
width
()){
left
=
left
-
200
+
this
.
bindElem
.
offsetWidth
}
...
...
@@ -141,8 +141,8 @@
top
=
top
-
406
-
this
.
bindElem
.
offsetHeight
}
top
=
top
+
this
.
bindElem
.
offsetHeight
console
.
log
(
'top'
,
JSON
.
parse
(
top
))
console
.
log
(
'left'
,
JSON
.
parse
(
left
))
//
console.log('top',JSON.parse(top))
//
console.log('left',JSON.parse(left))
this
.
pancelLeft
=
left
+
this
.
elem_colorPalette
.
clientWidth
;
this
.
pancelTop
=
top
+
this
.
elem_colorPalette
.
clientHeight
;
...
...
@@ -180,8 +180,8 @@
$
(
'.mycolordiv'
)[
i1
].
style
.
display
=
'none'
}
let
_that
=
this
console
.
log
(
_this
.
bindElem
)
console
.
log
(
$
(
_that
)[
0
])
//
console.log(_this.bindElem)
//
console.log($(_that)[0])
let
top
=
$
(
_that
)[
0
].
offsetTop
;
let
left
=
$
(
_that
)[
0
].
offsetLeft
;
let
arr
=
[]
...
...
@@ -189,7 +189,7 @@
if
(
_this
.
opt1
.
type
!==
'iframe'
){
while
(
$
(
_that
)[
0
].
offsetParent
)
{
arr
.
push
(
$
(
_that
)[
0
].
offsetParent
)
console
.
log
(
$
(
_that
)[
0
].
offsetParent
)
//
console.log($(_that)[0].offsetParent)
top
+=
$
(
_that
)[
0
].
offsetParent
.
offsetTop
;
left
+=
$
(
_that
)[
0
].
offsetParent
.
offsetLeft
;
_that
=
$
(
_that
)[
0
].
offsetParent
;
...
...
@@ -206,9 +206,9 @@
}
top
=
top
+
$
(
this
)[
0
].
offsetHeight
console
.
log
(
'top'
,
JSON
.
parse
(
top
))
console
.
log
(
'left'
,
JSON
.
parse
(
left
))
console
.
log
(
$
(
'body'
).
height
()
-
top
)
//
console.log('top',JSON.parse(top))
//
console.log('left',JSON.parse(left))
//
console.log($('body').height()-top)
if
(
_this
.
opt1
.
type
==
'iframe'
){
_this
.
util
.
css
(
_this
.
elem_wrap
,
{
...
...
js/dashboard.js
View file @
83e9cb68
This diff is collapsed.
Click to expand it.
js/tokenSetting.js
View file @
83e9cb68
...
...
@@ -3,7 +3,7 @@
* @description: 文件描述
* @Date: 2021-09-16 18:33:55
* @LastEditors: 莫靓仔
* @LastEditTime: 2021-09-2
3 09:52:46
* @LastEditTime: 2021-09-2
6 16:29:19
*/
let
setObj
=
{
// 厂家大佬
...
...
@@ -14,7 +14,7 @@ let setObj = {
},
// test-123
set2
:
{
devToken
:
'
cca20c8c-507b-43e0-8ca6-3571ae779698
'
,
devToken
:
'
5b0784dd-ad5b-43ec-a851-053763233c91
'
,
devAppId
:
'TEST123_o582'
,
devTenantId
:
'TEST123_o582'
}
...
...
js/treeConfig.js
View file @
83e9cb68
...
...
@@ -14,7 +14,8 @@ var panelId = "" // panelId写死,后面需修改为动态获取
// 获取url值
panelId
=
getParams
(
'panelId'
,
window
.
location
.
href
)
// 21302abdb343edf09f84b6f9d900537c
panelId
=
panelId
?
panelId
:
'1cff8876dc96a8adac114ecbe1bd9652'
// panelId = panelId ? panelId : '1cff8876dc96a8adac114ecbe1bd9652'
panelId
=
panelId
?
panelId
:
'1c792524337704365227fa09db2ac5e1'
// 复用树
var
reuseData
=
[
// { id:1, pId:0, name:"文件 1", open:true},
...
...
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