Commit 83e9cb68 authored by 莫坚培's avatar 莫坚培

feat: 渲染工作完成&去掉部分刷新逻辑

parent 95b3e4a4
......@@ -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, {
......
This diff is collapsed.
......@@ -3,7 +3,7 @@
* @description: 文件描述
* @Date: 2021-09-16 18:33:55
* @LastEditors: 莫靓仔
* @LastEditTime: 2021-09-23 09:52:46
* @LastEditTime: 2021-09-26 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'
}
......
......@@ -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},
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment