提交 12e03102 authored 作者: taojinlong's avatar taojinlong

Merge branch 'main' of github.com:dataease/dataease into main

...@@ -184,7 +184,7 @@ public class MysqlQueryProvider extends QueryProvider { ...@@ -184,7 +184,7 @@ public class MysqlQueryProvider extends QueryProvider {
StringUtils.join(groupField, ","), StringUtils.join(groupField, ","),
StringUtils.join(field, ","), StringUtils.join(field, ","),
table, table,
xFilter.length > 0 ? StringUtils.join(xFilter, " ") : "" + transMysqlExtFilter(extFilterRequestList),// origin field filter and panel field filter (xFilter.length > 0 ? StringUtils.join(xFilter, " ") : "") + transMysqlExtFilter(extFilterRequestList),// origin field filter and panel field filter
StringUtils.join(group, ","), StringUtils.join(group, ","),
StringUtils.join(order, ",")); StringUtils.join(order, ","));
if (sql.endsWith(",")) { if (sql.endsWith(",")) {
......
<template> <template>
<div id="canvasInfo" :style="customStyle" class="bg"> <div id="canvasInfo" :style="customStyle" class="bg">
<el-row v-if="componentDataShow.length===0" style="height: 100%;" class="custom-position">
{{ $t('panel.panel_null') }}
</el-row>
<ComponentWrapper <ComponentWrapper
v-for="(item, index) in componentDataInfo" v-for="(item, index) in componentDataInfo"
:key="index" :key="index"
...@@ -148,4 +151,13 @@ export default { ...@@ -148,4 +151,13 @@ export default {
} }
} }
} }
.custom-position {
flex: 1;
display: flex;
align-items: center;
justify-content: space-between;
font-size: 14px;
flex-flow: row nowrap;
color: #9ea6b2;
}
</style> </style>
...@@ -155,7 +155,7 @@ export default { ...@@ -155,7 +155,7 @@ export default {
.rect-shape { .rect-shape {
width: 100%; width: 100%;
height: 100%; height: 100%;
overflow: auto; overflow: hidden;
} }
.chart-class{ .chart-class{
height: 100%; height: 100%;
......
...@@ -806,6 +806,12 @@ export default { ...@@ -806,6 +806,12 @@ export default {
delete_warning: 'Confirm to delete?' delete_warning: 'Confirm to delete?'
}, },
panel: { panel: {
copy_link_passwd: 'Copy link and password',
copy_link: 'Copy link',
passwd_protect: 'Password Protect',
link: 'Link',
link_share: 'Share Link',
link_share_desc: 'After opening the link, anyone can access the dashboard through this link.',
share: 'Share', share: 'Share',
datalist: 'Chart List', datalist: 'Chart List',
group: 'Catalogue', group: 'Catalogue',
...@@ -872,7 +878,8 @@ export default { ...@@ -872,7 +878,8 @@ export default {
clean_canvas: 'Clean Canvas', clean_canvas: 'Clean Canvas',
insert_picture: 'Insert Picture', insert_picture: 'Insert Picture',
redo: 'Redo', redo: 'Redo',
undo: 'UToolbar.vuendo' undo: 'UToolbar.vuendo',
panel_null: 'This is a Empty Panel,You Can Edit and Enrich It'
}, },
plugin: { plugin: {
local_install: 'Local installation', local_install: 'Local installation',
......
...@@ -806,6 +806,12 @@ export default { ...@@ -806,6 +806,12 @@ export default {
delete_warning: '確認刪除?' delete_warning: '確認刪除?'
}, },
panel: { panel: {
copy_link_passwd: '複製鏈接及密碼',
copy_link: '複製鏈接',
passwd_protect: '密碼保護',
link: '鏈接',
link_share: '鏈接分享',
link_share_desc: '開啟鏈接後,任何人可通過此鏈接訪問儀表板。',
share: '分享', share: '分享',
datalist: '視圖列表', datalist: '視圖列表',
group: '目錄', group: '目錄',
...@@ -872,7 +878,8 @@ export default { ...@@ -872,7 +878,8 @@ export default {
clean_canvas: '清空畫布', clean_canvas: '清空畫布',
insert_picture: '插入圖片', insert_picture: '插入圖片',
redo: '重做', redo: '重做',
undo: '撤銷' undo: '撤銷',
panel_null: '这是个空的儀表盤,可以通过编辑来丰富内容'
}, },
plugin: { plugin: {
local_install: '本地安裝', local_install: '本地安裝',
......
...@@ -880,7 +880,8 @@ export default { ...@@ -880,7 +880,8 @@ export default {
clean_canvas: '清空画布', clean_canvas: '清空画布',
insert_picture: '插入图片', insert_picture: '插入图片',
redo: '重做', redo: '重做',
undo: '撤销' undo: '撤销',
panel_null: '这是个空的仪表板,可以通过编辑来丰富内容'
}, },
plugin: { plugin: {
local_install: '本地安装', local_install: '本地安装',
......
...@@ -98,7 +98,10 @@ export const DEFAULT_BACKGROUND_COLOR = { ...@@ -98,7 +98,10 @@ export const DEFAULT_BACKGROUND_COLOR = {
// chart config // chart config
export const BASE_BAR = { export const BASE_BAR = {
title: { title: {
text: '' text: '',
textStyle: {
fontWeight: 'normal'
}
}, },
// grid: { // grid: {
// containLabel: true // containLabel: true
...@@ -127,7 +130,10 @@ export const BASE_BAR = { ...@@ -127,7 +130,10 @@ export const BASE_BAR = {
} }
export const HORIZONTAL_BAR = { export const HORIZONTAL_BAR = {
title: { title: {
text: '' text: '',
textStyle: {
fontWeight: 'normal'
}
}, },
// grid: { // grid: {
// containLabel: true // containLabel: true
...@@ -157,7 +163,10 @@ export const HORIZONTAL_BAR = { ...@@ -157,7 +163,10 @@ export const HORIZONTAL_BAR = {
export const BASE_LINE = { export const BASE_LINE = {
title: { title: {
text: '' text: '',
textStyle: {
fontWeight: 'normal'
}
}, },
// grid: { // grid: {
// containLabel: true // containLabel: true
...@@ -188,7 +197,10 @@ export const BASE_LINE = { ...@@ -188,7 +197,10 @@ export const BASE_LINE = {
export const BASE_PIE = { export const BASE_PIE = {
title: { title: {
text: '' text: '',
textStyle: {
fontWeight: 'normal'
}
}, },
// grid: { // grid: {
// containLabel: true // containLabel: true
...@@ -221,7 +233,10 @@ export const BASE_PIE = { ...@@ -221,7 +233,10 @@ export const BASE_PIE = {
export const BASE_FUNNEL = { export const BASE_FUNNEL = {
title: { title: {
text: '' text: '',
textStyle: {
fontWeight: 'normal'
}
}, },
// grid: { // grid: {
// containLabel: true // containLabel: true
...@@ -277,7 +292,10 @@ export const BASE_FUNNEL = { ...@@ -277,7 +292,10 @@ export const BASE_FUNNEL = {
export const BASE_RADAR = { export const BASE_RADAR = {
title: { title: {
text: '' text: '',
textStyle: {
fontWeight: 'normal'
}
}, },
// grid: { // grid: {
// containLabel: true // containLabel: true
...@@ -312,7 +330,10 @@ export const BASE_RADAR = { ...@@ -312,7 +330,10 @@ export const BASE_RADAR = {
export const BASE_GAUGE = { export const BASE_GAUGE = {
title: { title: {
text: '' text: '',
textStyle: {
fontWeight: 'normal'
}
}, },
// grid: { // grid: {
// containLabel: true // containLabel: true
......
...@@ -194,7 +194,7 @@ export default { ...@@ -194,7 +194,7 @@ export default {
methods: { methods: {
init() { init() {
const arr = [] const arr = []
for (let i = 10; i <= 30; i = i + 2) { for (let i = 10; i <= 60; i = i + 2) {
arr.push({ arr.push({
name: i + '', name: i + '',
value: i + '' value: i + ''
......
<template> <template>
<el-row> <el-row>
<el-row> <el-row v-loading="$store.getters.loadingMap[$store.getters.currentPath]">
<el-col :span="2"> <el-col :span="2">
<span>&nbsp</span> <span>&nbsp</span>
<ul class="direction"> <ul class="direction">
...@@ -14,7 +14,7 @@ ...@@ -14,7 +14,7 @@
<div class="window"> <div class="window">
<ul class="container" :style="containerStyle"> <ul class="container" :style="containerStyle">
<li> <li>
<div style="width:240px; height: 208px;"> <div style="width:240px; height: 208px;overflow: hidden">
<subject-template-item <subject-template-item
v-for="item in sliders[sliders.length - 1]" v-for="item in sliders[sliders.length - 1]"
:key="item.id" :key="item.id"
......
...@@ -80,7 +80,7 @@ export default { ...@@ -80,7 +80,7 @@ export default {
background: 'background: 0% 0% / cover rgb(255, 255, 255)' background: 'background: 0% 0% / cover rgb(255, 255, 255)'
} }
if (this.subjectItemDetails) { if (this.subjectItemDetails) {
if (this.subjectItemDetails.panel.backgroundType === 'image'&&this.subjectItemDetails.panel.imageUrl) { if (this.subjectItemDetails.panel.backgroundType === 'image' && this.subjectItemDetails.panel.imageUrl) {
style = { style = {
width: '100%', width: '100%',
height: '100%', height: '100%',
...@@ -224,7 +224,7 @@ export default { ...@@ -224,7 +224,7 @@ export default {
} }
.vertical-layout { .vertical-layout {
overflow: hidden auto; overflow: hidden;
position: absolute; position: absolute;
inset: 0px 0px 30px; inset: 0px 0px 30px;
width: 108px; height: 58px; width: 108px; height: 58px;
......
...@@ -184,8 +184,8 @@ export default { ...@@ -184,8 +184,8 @@ export default {
nodeType: null, nodeType: null,
panelType: null, panelType: null,
panelStyle: JSON.stringify({ panelStyle: JSON.stringify({
width: 1680, width: 1280,
height: 1050, height: 720,
scale: 100, scale: 100,
openCommonStyle: true, openCommonStyle: true,
panel: DEFAULT_PANEL_STYLE, panel: DEFAULT_PANEL_STYLE,
...@@ -225,8 +225,8 @@ export default { ...@@ -225,8 +225,8 @@ export default {
nodeType: null, nodeType: null,
panelType: null, panelType: null,
panelStyle: JSON.stringify({ panelStyle: JSON.stringify({
width: 1680, width: 1280,
height: 1050, height: 720,
scale: 100, scale: 100,
openCommonStyle: true, openCommonStyle: true,
panel: DEFAULT_PANEL_STYLE, panel: DEFAULT_PANEL_STYLE,
......
...@@ -19,8 +19,8 @@ export const DEFAULT_PANEL_STYLE = { ...@@ -19,8 +19,8 @@ export const DEFAULT_PANEL_STYLE = {
} }
export const DEFAULT_COMMON_CANVAS_STYLE = { export const DEFAULT_COMMON_CANVAS_STYLE = {
width: 1680, width: 1280,
height: 1050, height: 720,
scale: 100, scale: 100,
openCommonStyle: true, openCommonStyle: true,
panel: DEFAULT_PANEL_STYLE, panel: DEFAULT_PANEL_STYLE,
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论