Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
d510fce2
提交
d510fce2
authored
6月 24, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'main' of github.com:dataease/dataease into main
上级
8b176bda
2580dab0
隐藏空白字符变更
内嵌
并排
正在显示
11 个修改的文件
包含
49 行增加
和
34 行删除
+49
-34
Toolbar.vue
frontend/src/components/canvas/components/Toolbar.vue
+2
-2
Topbar.vue
frontend/src/layout/components/Topbar.vue
+6
-4
index.js
frontend/src/store/index.js
+3
-3
index.scss
frontend/src/styles/index.scss
+4
-0
ColorSelector.vue
...d/src/views/chart/components/shape-attr/ColorSelector.vue
+4
-4
index.vue
frontend/src/views/login/index.vue
+14
-9
PanelList.vue
frontend/src/views/panel/list/PanelList.vue
+3
-3
panel.js
frontend/src/views/panel/panel.js
+0
-5
DsTree.vue
frontend/src/views/system/datasource/DsTree.vue
+2
-2
form.vue
frontend/src/views/system/datasource/form.vue
+10
-1
index.vue
frontend/src/views/system/user/index.vue
+1
-1
没有找到文件。
frontend/src/components/canvas/components/Toolbar.vue
浏览文件 @
d510fce2
...
...
@@ -74,7 +74,7 @@ import { deepCopy } from '@/components/canvas/utils/utils'
import
{
panelSave
}
from
'@/api/panel/panel'
import
bus
from
'@/utils/bus'
import
{
DEFAULT_COMMON_CANVAS_STYLE
DEFAULT_COMMON_CANVAS_STYLE
_STRING
}
from
'@/views/panel/panel'
export
default
{
...
...
@@ -248,7 +248,7 @@ export default {
},
clearCanvas
()
{
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'
)
},
...
...
frontend/src/layout/components/Topbar.vue
浏览文件 @
d510fce2
<
template
>
<div
class=
"top-nav"
:style=
"
{'background-color': '#f1f3f8'}">
<div
class=
"log"
>
<div
v-loading=
"!axiosFinished"
class=
"log"
>
<!--
<img
v-if=
"!logoUrl"
src=
"@/assets/DataEase-color.png"
width=
"140"
alt=
""
style=
"padding-top: 10px;"
>
-->
<svg-icon
v-if=
"!logoUrl"
icon-class=
"DataEase"
custom-class=
"top-nav-logo-icon"
/>
<img
v-else
:src=
"logoUrl"
width=
"140"
alt=
""
style=
"padding-top: 10px;"
>
<svg-icon
v-if=
"!logoUrl
&& axiosFinished
"
icon-class=
"DataEase"
custom-class=
"top-nav-logo-icon"
/>
<img
v-else
:src=
"logoUrl
&& axiosFinished
"
width=
"140"
alt=
""
style=
"padding-top: 10px;"
>
</div>
<el-menu
:active-text-color=
"variables.topMenuActiveText"
...
...
@@ -92,7 +92,8 @@ export default {
data
()
{
return
{
uiInfo
:
null
,
logoUrl
:
null
logoUrl
:
null
,
axiosFinished
:
false
}
},
...
...
@@ -137,6 +138,7 @@ export default {
if
(
this
.
uiInfo
[
'ui.logo'
]
&&
this
.
uiInfo
[
'ui.logo'
].
paramValue
)
{
this
.
logoUrl
=
'/system/ui/image/'
+
this
.
uiInfo
[
'ui.logo'
].
paramValue
}
this
.
axiosFinished
=
true
})
},
methods
:
{
...
...
frontend/src/store/index.js
浏览文件 @
d510fce2
...
...
@@ -21,7 +21,7 @@ import snapshot from '@/components/canvas/store/snapshot'
import
lock
from
'@/components/canvas/store/lock'
import
{
valueValid
,
formatCondition
}
from
'@/utils/conditionUtil'
import
{
DEFAULT_COMMON_CANVAS_STYLE
DEFAULT_COMMON_CANVAS_STYLE
_STRING
}
from
'@/views/panel/panel'
Vue
.
use
(
Vuex
)
...
...
@@ -38,7 +38,7 @@ const data = {
...
lock
.
state
,
editMode
:
'edit'
,
// 编辑器模式 edit preview
canvasStyleData
:
DEFAULT_COMMON_CANVAS_STYLE
,
// 页面全局数据 //扩展公共样式 公共的仪表板样式,用来实时响应样式的变化
canvasStyleData
:
DEFAULT_COMMON_CANVAS_STYLE
_STRING
,
// 页面全局数据 //扩展公共样式 公共的仪表板样式,用来实时响应样式的变化
componentData
:
[],
// 画布组件数据
curComponent
:
null
,
curCanvasScale
:
null
,
...
...
@@ -46,7 +46,7 @@ const data = {
// 点击画布时是否点中组件,主要用于取消选中组件用。
// 如果没点中组件,并且在画布空白处弹起鼠标,则取消当前组件的选中状态
isClickComponent
:
false
,
canvasCommonStyleData
:
DEFAULT_COMMON_CANVAS_STYLE
canvasCommonStyleData
:
DEFAULT_COMMON_CANVAS_STYLE
_STRING
},
mutations
:
{
...
animation
.
mutations
,
...
...
frontend/src/styles/index.scss
浏览文件 @
d510fce2
...
...
@@ -275,3 +275,7 @@ div:focus {
padding-top
:
10px
;
}
.m-colorPicker
.box
{
bottom
:
20px
;
}
frontend/src/views/chart/components/shape-attr/ColorSelector.vue
浏览文件 @
d510fce2
...
...
@@ -21,21 +21,21 @@
</el-form-item>
<el-form-item
v-show=
"(chart.type && chart.type.includes('text')) || sourceType==='panelTable'"
:label=
"$t('chart.dimension_color')"
class=
"form-item"
>
<colorPicker
v-model=
"colorForm.dimensionColor"
style=
"margin-top: 6px;cursor: pointer;z-index: 100
4
;border: solid 1px black"
@
change=
"changeColorCase"
/>
<colorPicker
v-model=
"colorForm.dimensionColor"
style=
"margin-top: 6px;cursor: pointer;z-index: 100
3
;border: solid 1px black"
@
change=
"changeColorCase"
/>
</el-form-item>
<el-form-item
v-show=
"(chart.type && chart.type.includes('text')) || sourceType==='panelTable'"
:label=
"$t('chart.quota_color')"
class=
"form-item"
>
<colorPicker
v-model=
"colorForm.quotaColor"
style=
"margin-top: 6px;cursor: pointer;z-index: 100
3
;border: solid 1px black"
@
change=
"changeColorCase"
/>
<colorPicker
v-model=
"colorForm.quotaColor"
style=
"margin-top: 6px;cursor: pointer;z-index: 100
4
;border: solid 1px black"
@
change=
"changeColorCase"
/>
</el-form-item>
</div>
<div
v-if=
"sourceType==='view' || sourceType==='panelTable'"
>
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.table_header_bg')"
class=
"form-item"
>
<colorPicker
v-model=
"colorForm.tableHeaderBgColor"
style=
"margin-top: 6px;cursor: pointer;z-index: 100
4
;border: solid 1px black"
@
change=
"changeColorCase"
/>
<colorPicker
v-model=
"colorForm.tableHeaderBgColor"
style=
"margin-top: 6px;cursor: pointer;z-index: 100
2
;border: solid 1px black"
@
change=
"changeColorCase"
/>
</el-form-item>
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.table_item_bg')"
class=
"form-item"
>
<colorPicker
v-model=
"colorForm.tableItemBgColor"
style=
"margin-top: 6px;cursor: pointer;z-index: 1003;border: solid 1px black"
@
change=
"changeColorCase"
/>
</el-form-item>
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.table_item_font_color')"
class=
"form-item"
>
<colorPicker
v-model=
"colorForm.tableFontColor"
style=
"margin-top: 6px;cursor: pointer;z-index: 100
2
;border: solid 1px black"
@
change=
"changeColorCase"
/>
<colorPicker
v-model=
"colorForm.tableFontColor"
style=
"margin-top: 6px;cursor: pointer;z-index: 100
4
;border: solid 1px black"
@
change=
"changeColorCase"
/>
</el-form-item>
<!-- 暂时不支持该功能-->
<!--
<el-form-item
v-show=
"(chart.type && chart.type.includes('table')) || sourceType==='panelTable'"
:label=
"$t('chart.stripe')"
class=
"form-item"
>
-->
...
...
frontend/src/views/login/index.vue
浏览文件 @
d510fce2
...
...
@@ -40,9 +40,9 @@
</div>
</el-form>
</el-col>
<el-col
:span=
"12"
>
<div
v-if=
"!loginImageUrl"
class=
"login-image"
/>
<div
v-
else
class=
"login-image-de"
:style=
"
{background:'url(' + loginImageUrl + ') no-repeat', 'backgroundSize':'cover
'}" />
<el-col
v-loading=
"!axiosFinished"
:span=
"12"
>
<div
v-if=
"!loginImageUrl
&& axiosFinished
"
class=
"login-image"
/>
<div
v-
if=
"loginImageUrl && axiosFinished"
class=
"login-image-de"
:style=
"
{background:'url(' + loginImageUrl + ') no-repeat', 'backgroundSize':'contain
'}" />
</el-col>
</el-row>
</div>
...
...
@@ -95,7 +95,8 @@ export default {
redirect
:
undefined
,
uiInfo
:
null
,
loginImageUrl
:
null
,
loginLogoUrl
:
null
loginLogoUrl
:
null
,
axiosFinished
:
false
}
},
computed
:
{
...
...
@@ -115,6 +116,14 @@ export default {
this
.
$store
.
dispatch
(
'user/getUI'
).
then
(()
=>
{
// const uiLists = this.$store.state.user.uiInfo
// this.uiInfo = format(uiLists)
this
.
axiosFinished
=
true
this
.
showLoginImage
()
}).
catch
(
err
=>
{
console
.
error
(
err
)
})
},
methods
:
{
showLoginImage
()
{
this
.
uiInfo
=
getSysUI
()
if
(
this
.
uiInfo
[
'ui.loginImage'
]
&&
this
.
uiInfo
[
'ui.loginImage'
].
paramValue
)
{
this
.
loginImageUrl
=
'/system/ui/image/'
+
this
.
uiInfo
[
'ui.loginImage'
].
paramValue
...
...
@@ -122,11 +131,7 @@ export default {
if
(
this
.
uiInfo
[
'ui.loginLogo'
]
&&
this
.
uiInfo
[
'ui.loginLogo'
].
paramValue
)
{
this
.
loginLogoUrl
=
'/system/ui/image/'
+
this
.
uiInfo
[
'ui.loginLogo'
].
paramValue
}
}).
catch
(
err
=>
{
console
.
error
(
err
)
})
},
methods
:
{
},
handleLogin
()
{
this
.
$refs
.
loginForm
.
validate
(
valid
=>
{
if
(
valid
)
{
...
...
frontend/src/views/panel/list/PanelList.vue
浏览文件 @
d510fce2
...
...
@@ -178,7 +178,7 @@ import bus from '@/utils/bus'
import
EditPanel
from
'./EditPanel'
import
{
addGroup
,
delGroup
,
groupTree
,
defaultTree
,
findOne
}
from
'@/api/panel/panel'
import
{
DEFAULT_COMMON_CANVAS_STYLE
,
DEFAULT_COMMON_CANVAS_STYLE_STRING
DEFAULT_COMMON_CANVAS_STYLE_STRING
}
from
'@/views/panel/panel'
export
default
{
...
...
@@ -286,7 +286,7 @@ export default {
},
mounted
()
{
this
.
$store
.
commit
(
'setComponentData'
,
[])
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE
)
this
.
$store
.
commit
(
'setCanvasStyle'
,
DEFAULT_COMMON_CANVAS_STYLE
_STRING
)
this
.
defaultTree
()
this
.
tree
(
this
.
groupForm
)
},
...
...
@@ -546,7 +546,7 @@ export default {
// 清空当前缓存,快照
this
.
$store
.
commit
(
'refreshSnapshot'
)
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/setCanvasStyleDataTemp'
,
null
)
...
...
frontend/src/views/panel/panel.js
浏览文件 @
d510fce2
...
...
@@ -20,11 +20,6 @@ export const CANVAS_STYLE = {
panel
:
DEFAULT_PANEL_STYLE
}
export
const
DEFAULT_COMMON_CANVAS_STYLE
=
{
...
CANVAS_STYLE
,
chart
:
BASE_CHART
}
export
const
DEFAULT_COMMON_CANVAS_STYLE_STRING
=
{
...
CANVAS_STYLE
,
chart
:
BASE_CHART_STRING
...
...
frontend/src/views/system/datasource/DsTree.vue
浏览文件 @
d510fce2
...
...
@@ -47,7 +47,7 @@
</span>
<span
class=
"child"
>
<span
v-if=
"data.type ==='folder'"
@
click
.
stop
>
<
!--
<
span
class=
"el-dropdown-link"
>
<span
class=
"el-dropdown-link"
>
<el-button
v-permission=
"['datasource:add']"
icon=
"el-icon-plus"
...
...
@@ -55,7 +55,7 @@
size=
"small"
@
click=
"addFolderWithType(data)"
/>
</span>
-->
</span>
</span>
<span
v-if=
"data.type !=='folder'"
style=
"margin-left: 12px;"
@
click
.
stop
>
...
...
frontend/src/views/system/datasource/form.vue
浏览文件 @
d510fce2
...
...
@@ -15,7 +15,7 @@
<el-input
v-model=
"form.desc"
autocomplete=
"off"
type=
"textarea"
/>
</el-form-item>
<el-form-item
:label=
"$t('datasource.type')"
prop=
"type"
>
<el-select
v-model=
"form.type"
:placeholder=
"$t('datasource.please_choose_type')"
class=
"select-width"
:disabled=
"formType=='modify'"
@
change=
"changeType()"
>
<el-select
v-model=
"form.type"
:placeholder=
"$t('datasource.please_choose_type')"
class=
"select-width"
:disabled=
"formType=='modify'
|| (formType==='add' && params && !!params.type)
"
@
change=
"changeType()"
>
<el-option
v-for=
"item in allTypes"
:key=
"item.name"
...
...
@@ -108,6 +108,9 @@ export default {
this
.
edit
(
row
)
}
else
{
this
.
create
()
if
(
this
.
params
&&
this
.
params
.
type
)
{
this
.
setType
()
}
}
},
mounted
()
{
...
...
@@ -119,6 +122,12 @@ export default {
// }
},
methods
:
{
setType
()
{
this
.
form
.
type
=
this
.
params
.
type
this
.
form
.
configuration
=
{}
this
.
changeType
()
console
.
log
(
this
.
form
)
},
changeEdit
()
{
this
.
canEdit
=
true
this
.
formType
=
'modify'
...
...
frontend/src/views/system/user/index.vue
浏览文件 @
d510fce2
...
...
@@ -46,7 +46,7 @@
</el-table-column>
<el-table-column
prop=
"status"
sortable=
"custom"
:label=
"$t('commons.status')"
>
<
template
v-slot:default=
"scope"
>
<el-switch
v-model=
"scope.row.enabled"
:active-value=
"1"
:inactive-value=
"0"
:disabled=
"!checkPermission(['user:edit'])"
inactive-color=
"#DCDFE6"
@
change=
"changeSwitch(scope.row)"
/>
<el-switch
v-model=
"scope.row.enabled"
:active-value=
"1"
:inactive-value=
"0"
:disabled=
"!checkPermission(['user:edit'])
|| scope.row.isAdmin
"
inactive-color=
"#DCDFE6"
@
change=
"changeSwitch(scope.row)"
/>
</
template
>
</el-table-column>
<el-table-column
prop=
"createTime"
sortable=
"custom"
:label=
"$t('commons.create_time')"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论