Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
eeb331d5
提交
eeb331d5
authored
6月 01, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 仪表盘编辑时清除临时数据缓存 去除不必要的debugger和日志
上级
837c4cd3
隐藏空白字符变更
内嵌
并排
正在显示
16 个修改的文件
包含
14 行增加
和
27 行删除
+14
-27
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+0
-1
index.vue
frontend/src/components/canvas/components/Editor/index.vue
+0
-3
snapshot.js
frontend/src/components/canvas/store/snapshot.js
+0
-1
style.js
frontend/src/components/canvas/utils/style.js
+0
-1
index.js
frontend/src/store/index.js
+0
-1
Slider.vue
...tend/src/views/panel/SubjectSetting/PreSubject/Slider.vue
+1
-1
SubjectTemplateItem.vue
...s/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue
+1
-1
index.vue
frontend/src/views/panel/SubjectSetting/index.vue
+2
-2
index.vue
frontend/src/views/panel/edit/index.vue
+5
-5
index.vue
frontend/src/views/panel/filter/index.vue
+1
-1
PanelList.vue
frontend/src/views/panel/list/PanelList.vue
+3
-1
SaveToTemplate.vue
frontend/src/views/panel/list/SaveToTemplate.vue
+0
-2
TemplateImport.vue
...end/src/views/panel/template/component/TemplateImport.vue
+0
-2
TemplateItem.vue
frontend/src/views/panel/template/component/TemplateItem.vue
+1
-1
index.vue
frontend/src/views/panel/template/index.vue
+0
-1
LazyTree.vue
frontend/src/views/system/authority/components/LazyTree.vue
+0
-3
没有找到文件。
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
eeb331d5
...
@@ -127,7 +127,6 @@ export default {
...
@@ -127,7 +127,6 @@ export default {
},
},
handleScaleChange
()
{
handleScaleChange
()
{
if
(
this
.
componentData
)
{
if
(
this
.
componentData
)
{
debugger
const
componentData
=
deepCopy
(
this
.
componentData
)
const
componentData
=
deepCopy
(
this
.
componentData
)
componentData
.
forEach
(
component
=>
{
componentData
.
forEach
(
component
=>
{
Object
.
keys
(
component
.
style
).
forEach
(
key
=>
{
Object
.
keys
(
component
.
style
).
forEach
(
key
=>
{
...
...
frontend/src/components/canvas/components/Editor/index.vue
浏览文件 @
eeb331d5
...
@@ -374,13 +374,11 @@ export default {
...
@@ -374,13 +374,11 @@ export default {
},
},
getComponentStyleDefault
(
style
)
{
getComponentStyleDefault
(
style
)
{
debugger
return
getStyle
(
style
,
[
'top'
,
'left'
,
'width'
,
'height'
,
'rotate'
])
return
getStyle
(
style
,
[
'top'
,
'left'
,
'width'
,
'height'
,
'rotate'
])
// return style
// return style
},
},
getComponentStyle
(
style
)
{
getComponentStyle
(
style
)
{
debugger
// return getStyle(style, ['top', 'left', 'width', 'height', 'rotate'])
// return getStyle(style, ['top', 'left', 'width', 'height', 'rotate'])
return
style
return
style
},
},
...
@@ -392,7 +390,6 @@ export default {
...
@@ -392,7 +390,6 @@ export default {
},
},
getTextareaHeight
(
element
,
text
)
{
getTextareaHeight
(
element
,
text
)
{
debugger
// eslint-disable-next-line prefer-const
// eslint-disable-next-line prefer-const
let
{
lineHeight
,
fontSize
,
height
}
=
element
.
style
let
{
lineHeight
,
fontSize
,
height
}
=
element
.
style
if
(
lineHeight
===
''
)
{
if
(
lineHeight
===
''
)
{
...
...
frontend/src/components/canvas/store/snapshot.js
浏览文件 @
eeb331d5
...
@@ -17,7 +17,6 @@ export default {
...
@@ -17,7 +17,6 @@ export default {
},
},
redo
(
state
)
{
redo
(
state
)
{
debugger
if
(
state
.
snapshotIndex
<
state
.
snapshotData
.
length
-
1
)
{
if
(
state
.
snapshotIndex
<
state
.
snapshotData
.
length
-
1
)
{
state
.
snapshotIndex
++
state
.
snapshotIndex
++
store
.
commit
(
'setComponentData'
,
deepCopy
(
state
.
snapshotData
[
state
.
snapshotIndex
]))
store
.
commit
(
'setComponentData'
,
deepCopy
(
state
.
snapshotData
[
state
.
snapshotIndex
]))
...
...
frontend/src/components/canvas/utils/style.js
浏览文件 @
eeb331d5
...
@@ -27,7 +27,6 @@ export function getStyle(style, filter = []) {
...
@@ -27,7 +27,6 @@ export function getStyle(style, filter = []) {
}
}
})
})
debugger
return
result
return
result
}
}
...
...
frontend/src/store/index.js
浏览文件 @
eeb331d5
...
@@ -78,7 +78,6 @@ const data = {
...
@@ -78,7 +78,6 @@ const data = {
},
},
setCurCanvasScale
(
state
,
curCanvasScale
)
{
setCurCanvasScale
(
state
,
curCanvasScale
)
{
debugger
state
.
curCanvasScale
=
curCanvasScale
state
.
curCanvasScale
=
curCanvasScale
},
},
...
...
frontend/src/views/panel/SubjectSetting/PreSubject/Slider.vue
浏览文件 @
eeb331d5
...
@@ -155,7 +155,7 @@ export default {
...
@@ -155,7 +155,7 @@ export default {
})
})
},
},
move
(
offset
,
direction
,
speed
)
{
move
(
offset
,
direction
,
speed
)
{
console
.
log
(
speed
)
//
console.log(speed)
if
(
!
this
.
transitionEnd
)
return
if
(
!
this
.
transitionEnd
)
return
this
.
transitionEnd
=
false
this
.
transitionEnd
=
false
direction
===
-
1
?
this
.
currentIndex
+=
offset
/
this
.
sliderWidth
:
this
.
currentIndex
-=
offset
/
this
.
sliderWidth
direction
===
-
1
?
this
.
currentIndex
+=
offset
/
this
.
sliderWidth
:
this
.
currentIndex
-=
offset
/
this
.
sliderWidth
...
...
frontend/src/views/panel/SubjectSetting/PreSubject/SubjectTemplateItem.vue
浏览文件 @
eeb331d5
...
@@ -194,7 +194,7 @@ export default {
...
@@ -194,7 +194,7 @@ export default {
this
.
$emit
(
'templateEdit'
,
this
.
template
)
this
.
$emit
(
'templateEdit'
,
this
.
template
)
},
},
handleDelete
()
{
handleDelete
()
{
console
.
log
(
'handleDelete'
)
//
console.log('handleDelete')
}
}
}
}
}
}
...
...
frontend/src/views/panel/SubjectSetting/index.vue
浏览文件 @
eeb331d5
...
@@ -85,10 +85,10 @@ export default {
...
@@ -85,10 +85,10 @@ export default {
methods
:
{
methods
:
{
handleChange
(
val
)
{
handleChange
(
val
)
{
console
.
log
(
val
)
//
console.log(val)
},
},
onChangePanelStyle
(
parma
)
{
onChangePanelStyle
(
parma
)
{
console
.
log
(
'parma:'
+
JSON
.
stringify
(
parma
))
//
console.log('parma:' + JSON.stringify(parma))
},
},
onColorChange
(
val
)
{
onColorChange
(
val
)
{
this
.
chart
.
customAttr
.
color
=
val
this
.
chart
.
customAttr
.
color
=
val
...
...
frontend/src/views/panel/edit/index.vue
浏览文件 @
eeb331d5
...
@@ -279,7 +279,6 @@ export default {
...
@@ -279,7 +279,6 @@ export default {
// 监听div变动事件
// 监听div变动事件
erd
.
listenTo
(
document
.
getElementById
(
'canvasInfo-main'
),
element
=>
{
erd
.
listenTo
(
document
.
getElementById
(
'canvasInfo-main'
),
element
=>
{
_this
.
$nextTick
(()
=>
{
_this
.
$nextTick
(()
=>
{
debugger
_this
.
restore
()
_this
.
restore
()
})
})
})
})
...
@@ -296,6 +295,9 @@ export default {
...
@@ -296,6 +295,9 @@ export default {
if
(
componentDataTemp
&&
canvasStyleDataTemp
)
{
if
(
componentDataTemp
&&
canvasStyleDataTemp
)
{
this
.
$store
.
commit
(
'setComponentData'
,
this
.
resetID
(
JSON
.
parse
(
componentDataTemp
)))
this
.
$store
.
commit
(
'setComponentData'
,
this
.
resetID
(
JSON
.
parse
(
componentDataTemp
)))
this
.
$store
.
commit
(
'setCanvasStyle'
,
JSON
.
parse
(
canvasStyleDataTemp
))
this
.
$store
.
commit
(
'setCanvasStyle'
,
JSON
.
parse
(
canvasStyleDataTemp
))
// 清空临时画布数据
this
.
$store
.
dispatch
(
'panel/setComponentDataTemp'
,
null
)
this
.
$store
.
dispatch
(
'panel/setCanvasStyleDataTemp'
,
null
)
}
else
if
(
panelId
)
{
}
else
if
(
panelId
)
{
findOne
(
panelId
).
then
(
response
=>
{
findOne
(
panelId
).
then
(
response
=>
{
this
.
$store
.
commit
(
'setComponentData'
,
this
.
resetID
(
JSON
.
parse
(
response
.
data
.
panelData
)))
this
.
$store
.
commit
(
'setComponentData'
,
this
.
resetID
(
JSON
.
parse
(
response
.
data
.
panelData
)))
...
@@ -354,7 +356,6 @@ export default {
...
@@ -354,7 +356,6 @@ export default {
return
data
return
data
},
},
handleDrop
(
e
)
{
handleDrop
(
e
)
{
debugger
e
.
preventDefault
()
e
.
preventDefault
()
e
.
stopPropagation
()
e
.
stopPropagation
()
let
component
let
component
...
@@ -415,7 +416,7 @@ export default {
...
@@ -415,7 +416,7 @@ export default {
},
},
handleMouseDown
()
{
handleMouseDown
()
{
console
.
log
(
'handleMouseDown123'
)
//
console.log('handleMouseDown123')
this
.
$store
.
commit
(
'setClickComponentStatus'
,
false
)
this
.
$store
.
commit
(
'setClickComponentStatus'
,
false
)
},
},
...
@@ -471,14 +472,13 @@ export default {
...
@@ -471,14 +472,13 @@ export default {
return
result
return
result
},
},
restore
()
{
restore
()
{
debugger
if
(
document
.
getElementById
(
'canvasInfo'
))
{
if
(
document
.
getElementById
(
'canvasInfo'
))
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
const
canvasHeight
=
document
.
getElementById
(
'canvasInfo'
).
offsetHeight
const
canvasHeight
=
document
.
getElementById
(
'canvasInfo'
).
offsetHeight
const
canvasWidth
=
document
.
getElementById
(
'canvasInfo'
).
offsetWidth
const
canvasWidth
=
document
.
getElementById
(
'canvasInfo'
).
offsetWidth
this
.
outStyle
.
height
=
canvasHeight
this
.
outStyle
.
height
=
canvasHeight
this
.
outStyle
.
width
=
canvasWidth
this
.
outStyle
.
width
=
canvasWidth
console
.
log
(
canvasHeight
+
'--'
+
canvasWidth
)
//
console.log(canvasHeight + '--' + canvasWidth)
})
})
}
}
}
}
...
...
frontend/src/views/panel/filter/index.vue
浏览文件 @
eeb331d5
...
@@ -74,7 +74,7 @@ export default {
...
@@ -74,7 +74,7 @@ export default {
return
result
return
result
})
})
}
}
console
.
log
(
'this.widgetSubjects=>'
+
JSON
.
stringify
(
this
.
widgetSubjects
))
//
console.log('this.widgetSubjects=>' + JSON.stringify(this.widgetSubjects))
},
},
methods
:
{
methods
:
{
...
...
frontend/src/views/panel/list/PanelList.vue
浏览文件 @
eeb331d5
...
@@ -367,7 +367,6 @@ export default {
...
@@ -367,7 +367,6 @@ export default {
methods
:
{
methods
:
{
closeEditPanelDialog
(
panelInfo
)
{
closeEditPanelDialog
(
panelInfo
)
{
this
.
editPanel
.
visible
=
false
this
.
editPanel
.
visible
=
false
debugger
this
.
defaultTree
()
this
.
defaultTree
()
// 默认展开 同时点击 新增的节点
// 默认展开 同时点击 新增的节点
if
(
panelInfo
&&
panelInfo
.
panelType
===
'self'
&&
this
.
lastActiveNodeData
.
id
)
{
if
(
panelInfo
&&
panelInfo
.
panelType
===
'self'
&&
this
.
lastActiveNodeData
.
id
)
{
...
@@ -618,6 +617,9 @@ export default {
...
@@ -618,6 +617,9 @@ export default {
this
.
$store
.
commit
(
'refreshSnapshot'
)
this
.
$store
.
commit
(
'refreshSnapshot'
)
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE
)
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE
)
// 清空临时画布数据
this
.
$store
.
dispatch
(
'panel/setComponentDataTemp'
,
null
)
this
.
$store
.
dispatch
(
'panel/setCanvasStyleDataTemp'
,
null
)
this
.
$store
.
dispatch
(
'panel/setPanelInfo'
,
data
)
this
.
$store
.
dispatch
(
'panel/setPanelInfo'
,
data
)
bus
.
$emit
(
'PanelSwitchComponent'
,
{
name
:
'PanelEdit'
})
bus
.
$emit
(
'PanelSwitchComponent'
,
{
name
:
'PanelEdit'
})
},
},
...
...
frontend/src/views/panel/list/SaveToTemplate.vue
浏览文件 @
eeb331d5
...
@@ -99,7 +99,6 @@ export default {
...
@@ -99,7 +99,6 @@ export default {
type
:
'success'
,
type
:
'success'
,
showClose
:
true
showClose
:
true
})
})
debugger
this
.
$emit
(
'closeSaveDialog'
)
this
.
$emit
(
'closeSaveDialog'
)
})
})
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
@@ -111,7 +110,6 @@ export default {
...
@@ -111,7 +110,6 @@ export default {
type
:
'success'
,
type
:
'success'
,
showClose
:
true
showClose
:
true
})
})
debugger
this
.
$emit
(
'closeSaveDialog'
)
this
.
$emit
(
'closeSaveDialog'
)
})
})
}
}
...
...
frontend/src/views/panel/template/component/TemplateImport.vue
浏览文件 @
eeb331d5
...
@@ -88,7 +88,6 @@ export default {
...
@@ -88,7 +88,6 @@ export default {
type
:
'success'
,
type
:
'success'
,
showClose
:
true
showClose
:
true
})
})
debugger
this
.
$emit
(
'closeEditTemplateDialog'
)
this
.
$emit
(
'closeEditTemplateDialog'
)
})
})
}).
catch
(()
=>
{
}).
catch
(()
=>
{
...
@@ -100,7 +99,6 @@ export default {
...
@@ -100,7 +99,6 @@ export default {
type
:
'success'
,
type
:
'success'
,
showClose
:
true
showClose
:
true
})
})
debugger
this
.
$emit
(
'closeEditTemplateDialog'
)
this
.
$emit
(
'closeEditTemplateDialog'
)
})
})
}
}
...
...
frontend/src/views/panel/template/component/TemplateItem.vue
浏览文件 @
eeb331d5
...
@@ -49,7 +49,7 @@ export default {
...
@@ -49,7 +49,7 @@ export default {
this
.
$emit
(
'templateEdit'
,
this
.
template
)
this
.
$emit
(
'templateEdit'
,
this
.
template
)
},
},
handleDelete
()
{
handleDelete
()
{
console
.
log
(
'handleDelete'
)
//
console.log('handleDelete')
}
}
}
}
}
}
...
...
frontend/src/views/panel/template/index.vue
浏览文件 @
eeb331d5
...
@@ -184,7 +184,6 @@ export default {
...
@@ -184,7 +184,6 @@ export default {
}
}
},
},
closeEditTemplateDialog
()
{
closeEditTemplateDialog
()
{
debugger
this
.
templateDialog
.
visible
=
false
this
.
templateDialog
.
visible
=
false
this
.
showCurrentTemplate
(
this
.
templateDialog
.
pid
)
this
.
showCurrentTemplate
(
this
.
templateDialog
.
pid
)
},
},
...
...
frontend/src/views/system/authority/components/LazyTree.vue
浏览文件 @
eeb331d5
...
@@ -133,7 +133,6 @@ export default {
...
@@ -133,7 +133,6 @@ export default {
methods
:
{
methods
:
{
loadAuth
()
{
loadAuth
()
{
if
(
this
.
authCondition
&&
this
.
showExtent
)
{
if
(
this
.
authCondition
&&
this
.
showExtent
)
{
debugger
let
authQueryCondition
=
{}
let
authQueryCondition
=
{}
if
(
this
.
dataInfo
.
direction
===
'source'
)
{
if
(
this
.
dataInfo
.
direction
===
'source'
)
{
// 当前为授权数据 获取当前authTarget 的授权信息 authSource
// 当前为授权数据 获取当前authTarget 的授权信息 authSource
...
@@ -153,7 +152,6 @@ export default {
...
@@ -153,7 +152,6 @@ export default {
}
}
},
},
loadNodes
(
node
,
resolve
)
{
loadNodes
(
node
,
resolve
)
{
debugger
if
(
!
this
.
searchStatus
)
{
if
(
!
this
.
searchStatus
)
{
if
(
node
.
level
===
0
)
{
if
(
node
.
level
===
0
)
{
const
queryCondition
=
{
const
queryCondition
=
{
...
@@ -181,7 +179,6 @@ export default {
...
@@ -181,7 +179,6 @@ export default {
},
},
filterNode
(
index
)
{
filterNode
(
index
)
{
this
.
timeMachine
=
setTimeout
(()
=>
{
this
.
timeMachine
=
setTimeout
(()
=>
{
debugger
if
(
index
===
this
.
changeIndex
)
{
if
(
index
===
this
.
changeIndex
)
{
const
queryCondition
=
{
const
queryCondition
=
{
withExtend
:
'parent'
,
withExtend
:
'parent'
,
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论