Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
D
dataease
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
zhu
dataease
Commits
1537c8d2
提交
1537c8d2
authored
5月 27, 2021
作者:
wangjiahao
浏览文件
操作
浏览文件
下载
差异文件
Merge remote-tracking branch 'origin/main' into main
上级
1be642ae
d4daade0
隐藏空白字符变更
内嵌
并排
正在显示
21 个修改的文件
包含
71 行增加
和
36 行删除
+71
-36
DataSetTableTaskController.java
...taease/controller/dataset/DataSetTableTaskController.java
+1
-5
DataSetTableTaskService.java
.../io/dataease/service/dataset/DataSetTableTaskService.java
+15
-1
messages_en_US.properties
backend/src/main/resources/i18n/messages_en_US.properties
+1
-1
messages_zh_CN.properties
backend/src/main/resources/i18n/messages_zh_CN.properties
+1
-0
messages_zh_TW.properties
backend/src/main/resources/i18n/messages_zh_TW.properties
+2
-0
en.js
frontend/src/lang/en.js
+3
-1
tw.js
frontend/src/lang/tw.js
+4
-2
zh.js
frontend/src/lang/zh.js
+7
-6
index.scss
frontend/src/styles/index.scss
+3
-2
index.vue
frontend/src/views/panel/GrantAuth/dept/index.vue
+2
-2
index.vue
frontend/src/views/panel/GrantAuth/index.vue
+1
-1
index.vue
frontend/src/views/panel/GrantAuth/role/index.vue
+2
-2
index.vue
frontend/src/views/panel/GrantAuth/user/index.vue
+3
-3
PanelList.vue
frontend/src/views/panel/list/PanelList.vue
+4
-2
PanelMain.vue
frontend/src/views/panel/list/PanelMain.vue
+15
-1
PanelViewShow.vue
frontend/src/views/panel/list/PanelViewShow.vue
+1
-1
index.vue
frontend/src/views/system/datasource/index.vue
+1
-1
index.vue
frontend/src/views/system/dept/index.vue
+1
-1
index.vue
frontend/src/views/system/menu/index.vue
+1
-1
index.vue
frontend/src/views/system/role/index.vue
+1
-1
index.vue
frontend/src/views/system/user/index.vue
+2
-2
没有找到文件。
backend/src/main/java/io/dataease/controller/dataset/DataSetTableTaskController.java
浏览文件 @
1537c8d2
...
...
@@ -2,7 +2,6 @@ package io.dataease.controller.dataset;
import
io.dataease.base.domain.DatasetTableTask
;
import
io.dataease.controller.request.dataset.DataSetTaskRequest
;
import
io.dataease.service.dataset.DataSetTableService
;
import
io.dataease.service.dataset.DataSetTableTaskService
;
import
org.springframework.web.bind.annotation.*
;
...
...
@@ -18,13 +17,10 @@ import java.util.List;
public
class
DataSetTableTaskController
{
@Resource
private
DataSetTableTaskService
dataSetTableTaskService
;
@Resource
private
DataSetTableService
dataSetTableService
;
@PostMapping
(
"save"
)
public
DatasetTableTask
save
(
@RequestBody
DataSetTaskRequest
dataSetTaskRequest
)
throws
Exception
{
dataSetTableService
.
saveIncrementalConfig
(
dataSetTaskRequest
.
getDatasetTableIncrementalConfig
());
return
dataSetTableTaskService
.
save
(
dataSetTaskRequest
.
getDatasetTableTask
());
return
dataSetTableTaskService
.
save
(
dataSetTaskRequest
);
}
@PostMapping
(
"delete/{id}"
)
...
...
backend/src/main/java/io/dataease/service/dataset/DataSetTableTaskService.java
浏览文件 @
1537c8d2
...
...
@@ -3,10 +3,13 @@ package io.dataease.service.dataset;
import
io.dataease.base.domain.DatasetTableTask
;
import
io.dataease.base.domain.DatasetTableTaskExample
;
import
io.dataease.base.mapper.DatasetTableTaskMapper
;
import
io.dataease.controller.request.dataset.DataSetTaskRequest
;
import
io.dataease.i18n.Translator
;
import
io.dataease.service.ScheduleService
;
import
org.apache.commons.lang3.ObjectUtils
;
import
org.apache.commons.lang3.StringUtils
;
import
org.quartz.CronExpression
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
...
...
@@ -27,14 +30,25 @@ public class DataSetTableTaskService {
private
DataSetTableTaskLogService
dataSetTableTaskLogService
;
@Resource
private
ScheduleService
scheduleService
;
@Resource
@Lazy
private
DataSetTableService
dataSetTableService
;
public
DatasetTableTask
save
(
DatasetTableTask
datasetTableTask
)
throws
Exception
{
public
DatasetTableTask
save
(
DataSetTaskRequest
dataSetTaskRequest
)
throws
Exception
{
dataSetTableService
.
saveIncrementalConfig
(
dataSetTaskRequest
.
getDatasetTableIncrementalConfig
());
DatasetTableTask
datasetTableTask
=
dataSetTaskRequest
.
getDatasetTableTask
();
// check
if
(
StringUtils
.
isNotEmpty
(
datasetTableTask
.
getCron
()))
{
if
(!
CronExpression
.
isValidExpression
(
datasetTableTask
.
getCron
()))
{
throw
new
RuntimeException
(
Translator
.
get
(
"i18n_cron_expression_error"
));
}
}
// check start time and end time
if
(
ObjectUtils
.
isNotEmpty
(
datasetTableTask
.
getStartTime
())
&&
ObjectUtils
.
isNotEmpty
(
datasetTableTask
.
getEndTime
())
&&
datasetTableTask
.
getStartTime
()
>
datasetTableTask
.
getEndTime
())
{
throw
new
RuntimeException
(
Translator
.
get
(
"i18n_cron_time_error"
));
}
if
(
StringUtils
.
isEmpty
(
datasetTableTask
.
getId
()))
{
datasetTableTask
.
setId
(
UUID
.
randomUUID
().
toString
());
datasetTableTask
.
setCreateTime
(
System
.
currentTimeMillis
());
...
...
backend/src/main/resources/i18n/messages_en_US.properties
浏览文件 @
1537c8d2
...
...
@@ -184,7 +184,6 @@ automation_exec_info=There are no test steps to execute
authsource_name_already_exists
=
Authentication source name already exists
authsource_name_is_null
=
Authentication source name cannot be empty
authsource_configuration_is_null
=
Authentication source configuration cannot be empty
个人信息=Personal
Information
仪表盘=Panel
修改密码=Change
Password
...
...
@@ -239,3 +238,4 @@ i18n_panel_list=Panel
i18n_processing_data
=
Processing data now, Refresh later
i18n_union_already_exists
=
Union relation already exists
i18n_union_field_exists
=
The same field can't in two dataset
i18n_cron_time_error
=
Start time can't greater then end time
backend/src/main/resources/i18n/messages_zh_CN.properties
浏览文件 @
1537c8d2
...
...
@@ -240,3 +240,4 @@ i18n_panel_list=仪表盘
i18n_processing_data
=
正在处理数据,稍后刷新
i18n_union_already_exists
=
关联关系已存在
i18n_union_field_exists
=
两个数据集之间关联不能出现多次相同字段
i18n_cron_time_error
=
开始时间不能大于结束时间
backend/src/main/resources/i18n/messages_zh_TW.properties
浏览文件 @
1537c8d2
...
...
@@ -240,3 +240,4 @@ i18n_panel_list=仪表盘
i18n_processing_data
=
正在處理數據,稍後刷新
i18n_union_already_exists
=
關聯關系已存在
i18n_union_field_exists
=
兩個數據集之間關聯不能出現多次相同字段
i18n_cron_time_error
=
開始時間不能大於結束時間
\ No newline at end of file
frontend/src/lang/en.js
浏览文件 @
1537c8d2
...
...
@@ -277,7 +277,9 @@ export default {
select_module
:
'Select Module'
,
default_module
:
'Default Module'
},
datasource
:
'Datasource'
datasource
:
'Datasource'
,
char_can_not_more_50
:
'Name can not more 50 char'
,
share_success
:
'Share Success'
},
documentation
:
{
documentation
:
'Documentation'
,
...
...
frontend/src/lang/tw.js
浏览文件 @
1537c8d2
...
...
@@ -276,7 +276,9 @@ export default {
select_module
:
'選擇模块'
,
default_module
:
'默认模块'
},
datasource
:
'數據源'
datasource
:
'數據源'
,
char_can_not_more_50
:
'名稱不能超過50字符'
,
share_success
:
'分享成功'
},
documentation
:
{
documentation
:
'文檔'
,
...
...
@@ -702,7 +704,7 @@ export default {
custom_data
:
'自助數據集'
,
pls_slc_tbl_left
:
'請從左側選擇表'
,
add_db_table
:
'添加數據庫表'
,
pls_slc_data_source
:
'
選擇數據源鏈接
'
,
pls_slc_data_source
:
'
請選擇數據源
'
,
table
:
'表'
,
edit
:
'編輯'
,
create_view
:
'創建視圖'
,
...
...
frontend/src/lang/zh.js
浏览文件 @
1537c8d2
...
...
@@ -277,8 +277,9 @@ export default {
select_module
:
'选择模块'
,
default_module
:
'默认模块'
},
datasource
:
'数据连接'
,
char_can_not_more_50
:
'名称不能超过50字符'
datasource
:
'数据源'
,
char_can_not_more_50
:
'名称不能超过50字符'
,
share_success
:
'分享成功'
},
documentation
:
{
documentation
:
'文档'
,
...
...
@@ -530,7 +531,7 @@ export default {
custom_data
:
'自助数据集'
,
pls_slc_tbl_left
:
'请从左侧选视图'
,
add_db_table
:
'添加数据库表'
,
pls_slc_data_source
:
'请选择数据
库连接
'
,
pls_slc_data_source
:
'请选择数据
源
'
,
table
:
'表'
,
edit
:
'编辑'
,
create_view
:
'创建试图'
,
...
...
@@ -704,7 +705,7 @@ export default {
custom_data
:
'自助数据集'
,
pls_slc_tbl_left
:
'请从左侧选择表'
,
add_db_table
:
'添加数据库表'
,
pls_slc_data_source
:
'请选择数据
库连接
'
,
pls_slc_data_source
:
'请选择数据
源
'
,
table
:
'表'
,
edit
:
'编辑'
,
create_view
:
'创建视图'
,
...
...
@@ -794,7 +795,7 @@ export default {
},
datasource
:
{
datasource
:
'数据源'
,
create
:
'新建数据
连接
'
,
create
:
'新建数据
源
'
,
type
:
'类型'
,
please_choose_type
:
'请选择数据源类型'
,
data_base
:
'数据库名称'
,
...
...
@@ -807,7 +808,7 @@ export default {
please_input_password
:
'请输入密码'
,
please_input_host
:
'请输入主机'
,
please_input_port
:
'请输入端口'
,
modify
:
'编辑数据
连接
'
,
modify
:
'编辑数据
源
'
,
validate_success
:
'校验成功'
,
validate
:
'校验'
,
search_by_name
:
'根据名称搜索'
,
...
...
frontend/src/styles/index.scss
浏览文件 @
1537c8d2
...
...
@@ -205,8 +205,9 @@ div:focus {
color
:
#37b4aa
;
}
.ds-icon-scene
{
width
:
14px
;
height
:
14px
;
width
:
13px
;
height
:
13px
;
margin-right
:
5px
;
color
:
#0a7be0
;
}
.ds-icon-db
{
...
...
frontend/src/views/panel/GrantAuth/dept/index.vue
浏览文件 @
1537c8d2
...
...
@@ -158,11 +158,11 @@ export default {
return
roots
},
save
()
{
save
(
msg
)
{
const
rows
=
this
.
$refs
.
table
.
store
.
states
.
selection
const
request
=
this
.
buildRequest
(
rows
)
saveShare
(
request
).
then
(
res
=>
{
this
.
$success
(
this
.
$t
(
'commons.save_success'
)
)
this
.
$success
(
msg
)
return
true
}).
catch
(
err
=>
{
this
.
$error
(
err
.
message
)
...
...
frontend/src/views/panel/GrantAuth/index.vue
浏览文件 @
1537c8d2
...
...
@@ -58,7 +58,7 @@ export default {
this
.
showSearchInput
=
false
},
save
()
{
this
.
$refs
[
this
.
activeName
].
save
()
this
.
$refs
[
this
.
activeName
].
save
(
this
.
$t
(
'commons.share_success'
)
)
this
.
$emit
(
'close-grant'
,
0
)
},
cancel
()
{
...
...
frontend/src/views/panel/GrantAuth/role/index.vue
浏览文件 @
1537c8d2
...
...
@@ -78,11 +78,11 @@ export default {
this
.
setCheckNodes
()
})
},
save
()
{
save
(
msg
)
{
const
rows
=
this
.
$refs
.
table
.
store
.
states
.
selection
const
request
=
this
.
buildRequest
(
rows
)
saveShare
(
request
).
then
(
res
=>
{
this
.
$success
(
this
.
$t
(
'commons.save_success'
)
)
this
.
$success
(
msg
)
return
true
}).
catch
(
err
=>
{
this
.
$error
(
err
.
message
)
...
...
frontend/src/views/panel/GrantAuth/user/index.vue
浏览文件 @
1537c8d2
...
...
@@ -86,11 +86,11 @@ export default {
})
},
save
()
{
save
(
msg
)
{
const
rows
=
this
.
$refs
.
table
.
store
.
states
.
selection
const
request
=
this
.
buildRequest
(
rows
)
saveShare
(
request
).
then
(
res
=>
{
this
.
$success
(
this
.
$t
(
'commons.save_success'
)
)
saveShare
(
request
).
then
(
res
ponse
=>
{
this
.
$success
(
msg
)
return
true
}).
catch
(
err
=>
{
this
.
$error
(
err
.
message
)
...
...
frontend/src/views/panel/list/PanelList.vue
浏览文件 @
1537c8d2
...
...
@@ -85,10 +85,12 @@
</span>
<el-dropdown-menu
slot=
"dropdown"
>
<el-dropdown-item
:command=
"beforeClickEdit('folder','new',data,node)"
>
<i
class=
"el-icon-folder"
/>
<span>
{{
$t
(
'panel.groupAdd'
)
}}
</span>
<i
class=
"el-icon-folder"
/>
<span>
{{
$t
(
'panel.groupAdd'
)
}}
</span>
</el-dropdown-item>
<el-dropdown-item
:command=
"beforeClickEdit('panel','new',data,node)"
>
<svg-icon
icon-class=
"panel"
class=
"ds-icon-scene"
/>
<span>
{{
$t
(
'panel.panelAdd'
)
}}
</span>
<svg-icon
icon-class=
"panel"
class=
"ds-icon-scene"
/>
<span>
{{
$t
(
'panel.panelAdd'
)
}}
</span>
</el-dropdown-item>
</el-dropdown-menu>
</el-dropdown>
...
...
frontend/src/views/panel/list/PanelMain.vue
浏览文件 @
1537c8d2
<
template
>
<de-container>
<de-aside-container>
<el-tabs
v-model=
"activeName"
@
tab-click=
"handleClick
"
>
<el-tabs
v-model=
"activeName"
class=
"tab-header"
@
tab-click=
"handleClick"
type=
"card"
:stretch=
"true
"
>
<el-tab-pane
name=
"PanelList"
>
<span
slot=
"label"
><i
class=
"el-icon-document"
/>
{{
$t
(
'panel.panel_list'
)
}}
</span>
<panel-list
/>
...
...
@@ -83,4 +83,18 @@ export default {
padding
:
0px
;
}
.tab-header
>>>
.el-tabs__item
{
font-size
:
13px
;
background-color
:
#E8EAED
;
padding
:
0
15px
;
}
.tab-header
>>>
.is-active
{
background-color
:
#ffffff
;
border-bottom-color
:
#ffffff
!important
;
}
.tab-header
>>>
.el-tabs__nav-scroll
{
padding-left
:
0
!important
;
}
</
style
>
frontend/src/views/panel/list/PanelViewShow.vue
浏览文件 @
1537c8d2
...
...
@@ -3,7 +3,7 @@
<el-col
v-if=
"panelInfo.name.length>0"
class=
"panel-design"
>
<el-row
class=
"panel-design-head"
>
<!--TODO 仪表盘头部区域-->
<el-col
:span=
"12"
style=
"text-overflow:ellipsis;overflow: hidden;white-space: nowrap;
color: #606266;font-size: 16
px"
>
<el-col
:span=
"12"
style=
"text-overflow:ellipsis;overflow: hidden;white-space: nowrap;
font-size: 14
px"
>
<span>
{{
panelInfo
.
name
||
'测试仪表板'
}}
</span>
</el-col>
<el-col
:span=
"12"
>
...
...
frontend/src/views/system/datasource/index.vue
浏览文件 @
1537c8d2
...
...
@@ -123,7 +123,7 @@ export default {
columns
:
[],
buttons
:
[
{
label
:
this
.
$t
(
'commons.edit'
),
icon
:
'el-icon-edit'
,
click
:
this
.
edit
,
label
:
this
.
$t
(
'commons.edit'
),
icon
:
'el-icon-edit'
,
type
:
'primary'
,
click
:
this
.
edit
,
show
:
checkPermission
([
'datasource:edit'
])
},
{
label
:
this
.
$t
(
'commons.delete'
),
icon
:
'el-icon-delete'
,
type
:
'danger'
,
click
:
this
.
_handleDelete
,
...
...
frontend/src/views/system/dept/index.vue
浏览文件 @
1537c8d2
...
...
@@ -140,7 +140,7 @@ export default {
columns
:
[],
buttons
:
[
{
label
:
this
.
$t
(
'commons.edit'
),
icon
:
'el-icon-edit'
,
click
:
this
.
edit
,
label
:
this
.
$t
(
'commons.edit'
),
icon
:
'el-icon-edit'
,
type
:
'primary'
,
click
:
this
.
edit
,
show
:
checkPermission
([
'dept:edit'
])
},
{
label
:
this
.
$t
(
'commons.delete'
),
icon
:
'el-icon-delete'
,
type
:
'danger'
,
click
:
this
.
_handleDelete
,
...
...
frontend/src/views/system/menu/index.vue
浏览文件 @
1537c8d2
...
...
@@ -159,7 +159,7 @@ export default {
columns
:
[],
buttons
:
[
{
label
:
this
.
$t
(
'commons.edit'
),
icon
:
'el-icon-edit'
,
click
:
this
.
edit
,
label
:
this
.
$t
(
'commons.edit'
),
icon
:
'el-icon-edit'
,
type
:
'primary'
,
click
:
this
.
edit
,
show
:
checkPermission
([
'menu:edit'
])
},
{
label
:
this
.
$t
(
'commons.delete'
),
icon
:
'el-icon-delete'
,
type
:
'danger'
,
click
:
this
.
_handleDelete
,
...
...
frontend/src/views/system/role/index.vue
浏览文件 @
1537c8d2
...
...
@@ -118,7 +118,7 @@ export default {
columns
:
[],
buttons
:
[
{
label
:
this
.
$t
(
'commons.edit'
),
icon
:
'el-icon-edit'
,
click
:
this
.
edit
label
:
this
.
$t
(
'commons.edit'
),
icon
:
'el-icon-edit'
,
type
:
'primary'
,
click
:
this
.
edit
},
{
label
:
this
.
$t
(
'commons.delete'
),
icon
:
'el-icon-delete'
,
type
:
'danger'
,
click
:
this
.
handleDelete
}
...
...
frontend/src/views/system/user/index.vue
浏览文件 @
1537c8d2
...
...
@@ -164,13 +164,13 @@ export default {
columns
:
[],
buttons
:
[
{
label
:
this
.
$t
(
'commons.edit'
),
icon
:
'el-icon-edit'
,
click
:
this
.
edit
,
label
:
this
.
$t
(
'commons.edit'
),
icon
:
'el-icon-edit'
,
type
:
'primary'
,
click
:
this
.
edit
,
show
:
checkPermission
([
'user:edit'
])
},
{
label
:
this
.
$t
(
'commons.delete'
),
icon
:
'el-icon-delete'
,
type
:
'danger'
,
click
:
this
.
del
,
show
:
checkPermission
([
'user:del'
])
},
{
label
:
this
.
$t
(
'member.edit_password'
),
icon
:
'el-icon-s-tools'
,
type
:
'
danger
'
,
click
:
this
.
editPassword
,
label
:
this
.
$t
(
'member.edit_password'
),
icon
:
'el-icon-s-tools'
,
type
:
'
success
'
,
click
:
this
.
editPassword
,
show
:
checkPermission
([
'user:editPwd'
])
}
],
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论