Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
njgzx
dataease
Commits
4f589600
提交
4f589600
authored
6月 24, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: 清空仪表板 会导致样式错误问题
上级
874fd25a
隐藏空白字符变更
内嵌
并排
正在显示
4 个修改的文件
包含
8 行增加
和
13 行删除
+8
-13
Toolbar.vue
frontend/src/components/canvas/components/Toolbar.vue
+2
-2
index.js
frontend/src/store/index.js
+3
-3
PanelList.vue
frontend/src/views/panel/list/PanelList.vue
+3
-3
panel.js
frontend/src/views/panel/panel.js
+0
-5
没有找到文件。
frontend/src/components/canvas/components/Toolbar.vue
浏览文件 @
4f589600
...
@@ -74,7 +74,7 @@ import { deepCopy } from '@/components/canvas/utils/utils'
...
@@ -74,7 +74,7 @@ import { deepCopy } from '@/components/canvas/utils/utils'
import
{
panelSave
}
from
'@/api/panel/panel'
import
{
panelSave
}
from
'@/api/panel/panel'
import
bus
from
'@/utils/bus'
import
bus
from
'@/utils/bus'
import
{
import
{
DEFAULT_COMMON_CANVAS_STYLE
DEFAULT_COMMON_CANVAS_STYLE
_STRING
}
from
'@/views/panel/panel'
}
from
'@/views/panel/panel'
export
default
{
export
default
{
...
@@ -248,7 +248,7 @@ export default {
...
@@ -248,7 +248,7 @@ export default {
},
},
clearCanvas
()
{
clearCanvas
()
{
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE
)
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE
_STRING
)
this
.
$store
.
commit
(
'recordSnapshot'
)
this
.
$store
.
commit
(
'recordSnapshot'
)
},
},
...
...
frontend/src/store/index.js
浏览文件 @
4f589600
...
@@ -21,7 +21,7 @@ import snapshot from '@/components/canvas/store/snapshot'
...
@@ -21,7 +21,7 @@ import snapshot from '@/components/canvas/store/snapshot'
import
lock
from
'@/components/canvas/store/lock'
import
lock
from
'@/components/canvas/store/lock'
import
{
valueValid
,
formatCondition
}
from
'@/utils/conditionUtil'
import
{
valueValid
,
formatCondition
}
from
'@/utils/conditionUtil'
import
{
import
{
DEFAULT_COMMON_CANVAS_STYLE
DEFAULT_COMMON_CANVAS_STYLE
_STRING
}
from
'@/views/panel/panel'
}
from
'@/views/panel/panel'
Vue
.
use
(
Vuex
)
Vue
.
use
(
Vuex
)
...
@@ -38,7 +38,7 @@ const data = {
...
@@ -38,7 +38,7 @@ const data = {
...
lock
.
state
,
...
lock
.
state
,
editMode
:
'edit'
,
// 编辑器模式 edit preview
editMode
:
'edit'
,
// 编辑器模式 edit preview
canvasStyleData
:
DEFAULT_COMMON_CANVAS_STYLE
,
// 页面全局数据 //扩展公共样式 公共的仪表板样式,用来实时响应样式的变化
canvasStyleData
:
DEFAULT_COMMON_CANVAS_STYLE
_STRING
,
// 页面全局数据 //扩展公共样式 公共的仪表板样式,用来实时响应样式的变化
componentData
:
[],
// 画布组件数据
componentData
:
[],
// 画布组件数据
curComponent
:
null
,
curComponent
:
null
,
curCanvasScale
:
null
,
curCanvasScale
:
null
,
...
@@ -46,7 +46,7 @@ const data = {
...
@@ -46,7 +46,7 @@ const data = {
// 点击画布时是否点中组件,主要用于取消选中组件用。
// 点击画布时是否点中组件,主要用于取消选中组件用。
// 如果没点中组件,并且在画布空白处弹起鼠标,则取消当前组件的选中状态
// 如果没点中组件,并且在画布空白处弹起鼠标,则取消当前组件的选中状态
isClickComponent
:
false
,
isClickComponent
:
false
,
canvasCommonStyleData
:
DEFAULT_COMMON_CANVAS_STYLE
canvasCommonStyleData
:
DEFAULT_COMMON_CANVAS_STYLE
_STRING
},
},
mutations
:
{
mutations
:
{
...
animation
.
mutations
,
...
animation
.
mutations
,
...
...
frontend/src/views/panel/list/PanelList.vue
浏览文件 @
4f589600
...
@@ -178,7 +178,7 @@ import bus from '@/utils/bus'
...
@@ -178,7 +178,7 @@ import bus from '@/utils/bus'
import
EditPanel
from
'./EditPanel'
import
EditPanel
from
'./EditPanel'
import
{
addGroup
,
delGroup
,
groupTree
,
defaultTree
,
findOne
}
from
'@/api/panel/panel'
import
{
addGroup
,
delGroup
,
groupTree
,
defaultTree
,
findOne
}
from
'@/api/panel/panel'
import
{
import
{
DEFAULT_COMMON_CANVAS_STYLE
,
DEFAULT_COMMON_CANVAS_STYLE_STRING
DEFAULT_COMMON_CANVAS_STYLE_STRING
}
from
'@/views/panel/panel'
}
from
'@/views/panel/panel'
export
default
{
export
default
{
...
@@ -286,7 +286,7 @@ export default {
...
@@ -286,7 +286,7 @@ export default {
},
},
mounted
()
{
mounted
()
{
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE
)
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE
_STRING
)
this
.
defaultTree
()
this
.
defaultTree
()
this
.
tree
(
this
.
groupForm
)
this
.
tree
(
this
.
groupForm
)
},
},
...
@@ -546,7 +546,7 @@ export default {
...
@@ -546,7 +546,7 @@ 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
_STRING
)
// 清空临时画布数据
// 清空临时画布数据
this
.
$store
.
dispatch
(
'panel/setComponentDataTemp'
,
null
)
this
.
$store
.
dispatch
(
'panel/setComponentDataTemp'
,
null
)
this
.
$store
.
dispatch
(
'panel/setCanvasStyleDataTemp'
,
null
)
this
.
$store
.
dispatch
(
'panel/setCanvasStyleDataTemp'
,
null
)
...
...
frontend/src/views/panel/panel.js
浏览文件 @
4f589600
...
@@ -20,11 +20,6 @@ export const CANVAS_STYLE = {
...
@@ -20,11 +20,6 @@ export const CANVAS_STYLE = {
panel
:
DEFAULT_PANEL_STYLE
panel
:
DEFAULT_PANEL_STYLE
}
}
export
const
DEFAULT_COMMON_CANVAS_STYLE
=
{
...
CANVAS_STYLE
,
chart
:
BASE_CHART
}
export
const
DEFAULT_COMMON_CANVAS_STYLE_STRING
=
{
export
const
DEFAULT_COMMON_CANVAS_STYLE_STRING
=
{
...
CANVAS_STYLE
,
...
CANVAS_STYLE
,
chart
:
BASE_CHART_STRING
chart
:
BASE_CHART_STRING
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论