Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
eb69f3c6
提交
eb69f3c6
authored
12月 29, 2021
作者:
taojinlong
浏览文件
操作
浏览文件
下载
差异文件
fix: db2 分页问题
上级
d5a0f9a9
d2e3f90a
隐藏空白字符变更
内嵌
并排
正在显示
9 个修改的文件
包含
31 行增加
和
18 行删除
+31
-18
Db2QueryProvider.java
...java/io/dataease/provider/query/db2/Db2QueryProvider.java
+7
-1
ChartViewService.java
...main/java/io/dataease/service/chart/ChartViewService.java
+4
-0
DataSetTableService.java
...java/io/dataease/service/dataset/DataSetTableService.java
+0
-4
messages_en_US.properties
backend/src/main/resources/i18n/messages_en_US.properties
+3
-2
messages_zh_CN.properties
backend/src/main/resources/i18n/messages_zh_CN.properties
+3
-2
messages_zh_TW.properties
backend/src/main/resources/i18n/messages_zh_TW.properties
+5
-5
Preview.vue
frontend/src/components/canvas/components/Editor/Preview.vue
+5
-2
UserView.vue
frontend/src/components/canvas/custom-component/UserView.vue
+3
-1
ViewTable.vue
frontend/src/views/dataset/data/ViewTable.vue
+1
-1
没有找到文件。
backend/src/main/java/io/dataease/provider/query/db2/Db2QueryProvider.java
浏览文件 @
eb69f3c6
...
@@ -76,7 +76,7 @@ public class Db2QueryProvider extends QueryProvider {
...
@@ -76,7 +76,7 @@ public class Db2QueryProvider extends QueryProvider {
@Override
@Override
public
String
createSQLPreview
(
String
sql
,
String
orderBy
)
{
public
String
createSQLPreview
(
String
sql
,
String
orderBy
)
{
return
sqlFix
(
sql
)
+
" fetch first 1000 rows only;"
;
return
"SELECT * FROM ("
+
sqlFix
(
sql
)
+
") DE_TMP "
+
" fetch first 1000 rows only;"
;
}
}
@Override
@Override
...
@@ -140,6 +140,12 @@ public class Db2QueryProvider extends QueryProvider {
...
@@ -140,6 +140,12 @@ public class Db2QueryProvider extends QueryProvider {
st_sql
.
add
(
"isGroup"
,
isGroup
);
st_sql
.
add
(
"isGroup"
,
isGroup
);
if
(
CollectionUtils
.
isNotEmpty
(
xFields
))
st_sql
.
add
(
"groups"
,
xFields
);
if
(
CollectionUtils
.
isNotEmpty
(
xFields
))
st_sql
.
add
(
"groups"
,
xFields
);
if
(
ObjectUtils
.
isNotEmpty
(
tableObj
))
st_sql
.
add
(
"table"
,
tableObj
);
if
(
ObjectUtils
.
isNotEmpty
(
tableObj
))
st_sql
.
add
(
"table"
,
tableObj
);
String
customWheres
=
transCustomFilterList
(
tableObj
,
fieldCustomFilter
);
List
<
String
>
wheres
=
new
ArrayList
<>();
if
(
customWheres
!=
null
)
wheres
.
add
(
customWheres
);
if
(
CollectionUtils
.
isNotEmpty
(
wheres
))
st_sql
.
add
(
"filters"
,
wheres
);
return
st_sql
.
render
();
return
st_sql
.
render
();
}
}
...
...
backend/src/main/java/io/dataease/service/chart/ChartViewService.java
浏览文件 @
eb69f3c6
...
@@ -8,6 +8,7 @@ import io.dataease.base.mapper.ext.ExtChartGroupMapper;
...
@@ -8,6 +8,7 @@ import io.dataease.base.mapper.ext.ExtChartGroupMapper;
import
io.dataease.base.mapper.ext.ExtChartViewMapper
;
import
io.dataease.base.mapper.ext.ExtChartViewMapper
;
import
io.dataease.commons.constants.CommonConstants
;
import
io.dataease.commons.constants.CommonConstants
;
import
io.dataease.commons.constants.JdbcConstants
;
import
io.dataease.commons.constants.JdbcConstants
;
import
io.dataease.commons.exception.DEException
;
import
io.dataease.commons.utils.AuthUtils
;
import
io.dataease.commons.utils.AuthUtils
;
import
io.dataease.commons.utils.BeanUtils
;
import
io.dataease.commons.utils.BeanUtils
;
import
io.dataease.commons.utils.CommonBeanFactory
;
import
io.dataease.commons.utils.CommonBeanFactory
;
...
@@ -303,6 +304,9 @@ public class ChartViewService {
...
@@ -303,6 +304,9 @@ public class ChartViewService {
if
(
StringUtils
.
equalsIgnoreCase
(
dto
.
getId
(),
chartViewFieldDTO
.
getId
()))
{
if
(
StringUtils
.
equalsIgnoreCase
(
dto
.
getId
(),
chartViewFieldDTO
.
getId
()))
{
isDrill
=
true
;
isDrill
=
true
;
DatasetTableField
datasetTableField
=
dataSetTableFieldsService
.
get
(
dto
.
getId
());
DatasetTableField
datasetTableField
=
dataSetTableFieldsService
.
get
(
dto
.
getId
());
if
(
ObjectUtils
.
isEmpty
(
datasetTableField
))
{
DEException
.
throwException
(
Translator
.
get
(
"i18n_drill_field_not_exist"
));
}
ChartViewFieldDTO
d
=
new
ChartViewFieldDTO
();
ChartViewFieldDTO
d
=
new
ChartViewFieldDTO
();
BeanUtils
.
copyBean
(
d
,
datasetTableField
);
BeanUtils
.
copyBean
(
d
,
datasetTableField
);
...
...
backend/src/main/java/io/dataease/service/dataset/DataSetTableService.java
浏览文件 @
eb69f3c6
...
@@ -648,7 +648,6 @@ public class DataSetTableService {
...
@@ -648,7 +648,6 @@ public class DataSetTableService {
datasourceRequest
.
setPreviewData
(
true
);
datasourceRequest
.
setPreviewData
(
true
);
try
{
try
{
datasourceRequest
.
setPageable
(
true
);
datasourceRequest
.
setPageable
(
true
);
System
.
out
.
println
(
datasourceRequest
.
getQuery
());
data
.
addAll
(
datasourceProvider
.
getData
(
datasourceRequest
));
data
.
addAll
(
datasourceProvider
.
getData
(
datasourceRequest
));
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
logger
.
error
(
e
.
getMessage
());
logger
.
error
(
e
.
getMessage
());
...
@@ -1551,11 +1550,8 @@ public class DataSetTableService {
...
@@ -1551,11 +1550,8 @@ public class DataSetTableService {
List
<
String
>
originNameList
=
new
ArrayList
<>();
List
<
String
>
originNameList
=
new
ArrayList
<>();
for
(
int
i
=
0
;
i
<
fields
.
size
();
i
++)
{
for
(
int
i
=
0
;
i
<
fields
.
size
();
i
++)
{
TableFiled
filed
=
fields
.
get
(
i
);
TableFiled
filed
=
fields
.
get
(
i
);
System
.
out
.
println
(
new
Gson
().
toJson
(
filed
));
originNameList
.
add
(
filed
.
getFieldName
());
originNameList
.
add
(
filed
.
getFieldName
());
DatasetTableField
datasetTableField
=
DatasetTableField
.
builder
().
build
();
DatasetTableField
datasetTableField
=
DatasetTableField
.
builder
().
build
();
// 物理字段名设定为唯一,查询当前数据集下是否已存在该字段,存在则update,不存在则insert
// 物理字段名设定为唯一,查询当前数据集下是否已存在该字段,存在则update,不存在则insert
DatasetTableFieldExample
datasetTableFieldExample
=
new
DatasetTableFieldExample
();
DatasetTableFieldExample
datasetTableFieldExample
=
new
DatasetTableFieldExample
();
// 字段名一致,认为字段没有改变
// 字段名一致,认为字段没有改变
...
...
backend/src/main/resources/i18n/messages_en_US.properties
浏览文件 @
eb69f3c6
...
@@ -297,4 +297,5 @@ i18n_invalid_ds=Invalid Datasource
...
@@ -297,4 +297,5 @@ i18n_invalid_ds=Invalid Datasource
任务管理=Task
Manager
任务管理=Task
Manager
数据同步=Data
Sync
数据同步=Data
Sync
定时报告=Regular
report
定时报告=Regular
report
i18n_rp_exist
=
Row permission of the same type already exists
i18n_rp_exist
=
Row permission of the same type already exists
\ No newline at end of file
i18n_drill_field_not_exist
=
Drill field changed,please delete and add again
\ No newline at end of file
backend/src/main/resources/i18n/messages_zh_CN.properties
浏览文件 @
eb69f3c6
...
@@ -296,4 +296,5 @@ i18n_invalid_ds=无效数据源
...
@@ -296,4 +296,5 @@ i18n_invalid_ds=无效数据源
任务管理=任务管理
任务管理=任务管理
数据同步=数据同步
数据同步=数据同步
定时报告=定时报告
定时报告=定时报告
i18n_rp_exist
=
已有同类型的行权限存在
i18n_rp_exist
=
已有同类型的行权限存在
\ No newline at end of file
i18n_drill_field_not_exist
=
下钻字段发生变更,请删除字段重新添加
\ No newline at end of file
backend/src/main/resources/i18n/messages_zh_TW.properties
浏览文件 @
eb69f3c6
...
@@ -160,7 +160,6 @@ license_valid_license_error=授權驗證失敗
...
@@ -160,7 +160,6 @@ license_valid_license_error=授權驗證失敗
license_valid_license_code
=
授權碼已經存在
license_valid_license_code
=
授權碼已經存在
import_xmind_count_error
=
思維導圖導入用例數量不能超過 500 條
import_xmind_count_error
=
思維導圖導入用例數量不能超過 500 條
import_xmind_not_found
=
未找到測試用例
import_xmind_not_found
=
未找到測試用例
test_review_task_notice
=
測試評審任務通知
test_review_task_notice
=
測試評審任務通知
test_track.length_less_than
=
標題過長,字數必須小於
test_track.length_less_than
=
標題過長,字數必須小於
# check owner
# check owner
...
@@ -237,7 +236,7 @@ i18n_chart_count=記錄數*
...
@@ -237,7 +236,7 @@ i18n_chart_count=記錄數*
i18n_excel_have_merge_region
=
Excel存在合並單元格
i18n_excel_have_merge_region
=
Excel存在合並單元格
i18n_cron_expression_error
=
Cron表達式校驗錯誤
i18n_cron_expression_error
=
Cron表達式校驗錯誤
i18n_same_folder_can_not_repeat
=
同一目錄下該名稱已被使用
i18n_same_folder_can_not_repeat
=
同一目錄下該名稱已被使用
i18n_select_diff_folder
=
请选择不同的目录
i18n_select_diff_folder
=
请选择不同的目录
i18n_default_panel
=
默認儀表板
i18n_default_panel
=
默認儀表板
i18n_panel_list
=
儀表板
i18n_panel_list
=
儀表板
i18n_processing_data
=
正在處理數據,稍後刷新
i18n_processing_data
=
正在處理數據,稍後刷新
...
@@ -253,7 +252,7 @@ i18n_sync_job_exists=已經有同步任務在運行,稍後重試
...
@@ -253,7 +252,7 @@ i18n_sync_job_exists=已經有同步任務在運行,稍後重試
i18n_datasource_check_fail
=
校驗失敗,請檢查配置信息
i18n_datasource_check_fail
=
校驗失敗,請檢查配置信息
i18n_not_find_user
=
未找到用戶
i18n_not_find_user
=
未找到用戶
i18n_sql_not_empty
=
SQL 不能為空
i18n_sql_not_empty
=
SQL 不能為空
i18n_datasource_not_allow_delete_msg
=
個數據集正在使用此數據源,無法刪除
i18n_datasource_not_allow_delete_msg
=
個數據集正在使用此數據源,無法刪除
i18n_task_name_repeat
=
同一數據集下任務名稱已被使用
i18n_task_name_repeat
=
同一數據集下任務名稱已被使用
i18n_id_or_pwd_error
=
無效的ID或密碼
i18n_id_or_pwd_error
=
無效的ID或密碼
i18n_datasource_delete
=
當前用到的數據源已被刪除
i18n_datasource_delete
=
當前用到的數據源已被刪除
...
@@ -299,4 +298,5 @@ i18n_invalid_ds=無效數據源
...
@@ -299,4 +298,5 @@ i18n_invalid_ds=無效數據源
任务管理=任務管理
任务管理=任務管理
数据同步=數據同步
数据同步=數據同步
定时报告=定時報告
定时报告=定時報告
i18n_rp_exist
=
已有同類型餓行權限存在
i18n_rp_exist
=
已有同類型餓行權限存在
\ No newline at end of file
i18n_drill_field_not_exist
=
下鉆字段發生變更,請刪除字段重新添加
\ No newline at end of file
frontend/src/components/canvas/components/Editor/Preview.vue
浏览文件 @
eb69f3c6
...
@@ -40,7 +40,6 @@
...
@@ -40,7 +40,6 @@
<!--手机视图详情-->
<!--手机视图详情-->
<el-dialog
<el-dialog
:title=
"'['+showChartInfo.name+']'+$t('chart.chart_details')"
:visible
.
sync=
"mobileChartDetailsVisible"
:visible
.
sync=
"mobileChartDetailsVisible"
:fullscreen=
"true"
:fullscreen=
"true"
class=
"mobile-dialog-css"
class=
"mobile-dialog-css"
...
@@ -163,7 +162,7 @@ export default {
...
@@ -163,7 +162,7 @@ export default {
}
}
if
(
this
.
backScreenShot
)
{
if
(
this
.
backScreenShot
)
{
style
.
height
=
this
.
mainHeight
style
.
height
=
this
.
mainHeight
}
else
{
}
else
if
(
this
.
terminal
===
'pc'
)
{
style
.
padding
=
'5px'
style
.
padding
=
'5px'
}
}
return
style
return
style
...
@@ -295,6 +294,7 @@ export default {
...
@@ -295,6 +294,7 @@ export default {
openChartDetailsDialog
(
chartInfo
)
{
openChartDetailsDialog
(
chartInfo
)
{
this
.
showChartInfo
=
chartInfo
.
chart
this
.
showChartInfo
=
chartInfo
.
chart
this
.
showChartTableInfo
=
chartInfo
.
tableChart
this
.
showChartTableInfo
=
chartInfo
.
tableChart
// this.mobileChartDetailsVisible = true
if
(
this
.
terminal
===
'pc'
)
{
if
(
this
.
terminal
===
'pc'
)
{
this
.
chartDetailsVisible
=
true
this
.
chartDetailsVisible
=
true
}
else
{
}
else
{
...
@@ -372,5 +372,8 @@ export default {
...
@@ -372,5 +372,8 @@ export default {
::v-deep
.el-tabs__nav
{
::v-deep
.el-tabs__nav
{
z-index
:
0
;
z-index
:
0
;
}
}
.
mobile-dialog-css
:
:
v-deep
.
el-dialog__headerbtn
{
top
:
5px
;
}
</
style
>
</
style
>
frontend/src/components/canvas/custom-component/UserView.vue
浏览文件 @
eb69f3c6
...
@@ -213,7 +213,9 @@ export default {
...
@@ -213,7 +213,9 @@ export default {
jumpCount
++
jumpCount
++
}
}
})
})
jumpCount
&&
trackMenuInfo
.
push
(
'jump'
)
if
(
this
.
scaleCoefficientType
===
'pc'
)
{
jumpCount
&&
trackMenuInfo
.
push
(
'jump'
)
}
linkageCount
&&
trackMenuInfo
.
push
(
'linkage'
)
linkageCount
&&
trackMenuInfo
.
push
(
'linkage'
)
this
.
drillFields
.
length
&&
trackMenuInfo
.
push
(
'drill'
)
this
.
drillFields
.
length
&&
trackMenuInfo
.
push
(
'drill'
)
return
trackMenuInfo
return
trackMenuInfo
...
...
frontend/src/views/dataset/data/ViewTable.vue
浏览文件 @
eb69f3c6
...
@@ -56,7 +56,7 @@
...
@@ -56,7 +56,7 @@
<el-tab-pane
v-if=
"table.mode === 1 && (table.type === 'excel' || table.type === 'db' || table.type === 'sql')"
:label=
"$t('dataset.update_info')"
name=
"updateInfo"
>
<el-tab-pane
v-if=
"table.mode === 1 && (table.type === 'excel' || table.type === 'db' || table.type === 'sql')"
:label=
"$t('dataset.update_info')"
name=
"updateInfo"
>
<update-info
v-if=
"tabActive=='updateInfo'"
:param=
"param"
:table=
"table"
/>
<update-info
v-if=
"tabActive=='updateInfo'"
:param=
"param"
:table=
"table"
/>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
v-if=
"isPluginLoaded"
:lazy=
"true"
:label=
"$t('dataset.row_permissions')"
name=
"rowPermissions"
>
<el-tab-pane
v-if=
"isPluginLoaded
&& hasDataPermission('manage',param.privileges)
"
:lazy=
"true"
:label=
"$t('dataset.row_permissions')"
name=
"rowPermissions"
>
<plugin-com
v-if=
"isPluginLoaded && tabActive=='rowPermissions'"
ref=
"RowPermissions"
component-name=
"RowPermissions"
:obj=
"table"
/>
<plugin-com
v-if=
"isPluginLoaded && tabActive=='rowPermissions'"
ref=
"RowPermissions"
component-name=
"RowPermissions"
:obj=
"table"
/>
</el-tab-pane>
</el-tab-pane>
</el-tabs>
</el-tabs>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论