Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
datax-cloud
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
黄营
datax-cloud
Commits
6e45a2fe
Commit
6e45a2fe
authored
Aug 19, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
2df1784a
Hide whitespace changes
Inline
Side-by-side
Showing
16 changed files
with
100 additions
and
32 deletions
+100
-32
DictAnalysis.java
.../java/cn/datax/common/dictionary/config/DictAnalysis.java
+6
-9
pom.xml
datax-common/datax-common-mybatis/pom.xml
+6
-2
MenuDto.java
...rc/main/java/cn/datax/service/system/api/dto/MenuDto.java
+4
-0
MenuEntity.java
...n/java/cn/datax/service/system/api/entity/MenuEntity.java
+6
-1
MenuVo.java
.../src/main/java/cn/datax/service/system/api/vo/MenuVo.java
+1
-0
RouteVo.java
...in/java/cn/datax/service/system/api/vo/route/RouteVo.java
+4
-0
UserServiceImpl.java
...cn/datax/service/system/service/impl/UserServiceImpl.java
+1
-0
MenuMapper.xml
...t/system-service/src/main/resources/mapper/MenuMapper.xml
+3
-2
ProcessEngineConfig.java
...cn/datax/service/workflow/config/ProcessEngineConfig.java
+0
-6
main.js
datax-ui/src/main.js
+1
-1
index.vue
datax-ui/src/views/login/index.vue
+1
-1
ColumnPane.vue
datax-ui/src/views/metadata/datasearch/ColumnPane.vue
+3
-1
SourcePane.vue
datax-ui/src/views/metadata/datasearch/SourcePane.vue
+3
-1
TablePane.vue
datax-ui/src/views/metadata/datasearch/TablePane.vue
+3
-1
index.vue
datax-ui/src/views/metadata/datasearch/index.vue
+56
-5
pom.xml
pom.xml
+2
-2
No files found.
datax-common/datax-common-dictionary/src/main/java/cn/datax/common/dictionary/config/DictAnalysis.java
View file @
6e45a2fe
...
...
@@ -4,9 +4,9 @@ import cn.datax.common.annotation.DictAop;
import
cn.datax.common.core.JsonPage
;
import
cn.datax.common.core.R
;
import
cn.datax.common.dictionary.utils.DictUtil
;
import
com.alibaba.fastjson.JSONObject
;
import
com.fasterxml.jackson.core.JsonProcessingException
;
import
com.fasterxml.jackson.databind.ObjectMapper
;
import
com.fasterxml.jackson.databind.node.ObjectNode
;
import
org.springframework.beans.factory.annotation.Autowired
;
import
org.springframework.core.MethodParameter
;
import
org.springframework.http.MediaType
;
...
...
@@ -30,15 +30,12 @@ public class DictAnalysis implements ResponseBodyAdvice {
if
(
o
instanceof
R
)
{
if
(((
R
)
o
).
getData
()
instanceof
JsonPage
)
{
List
list
=
((
JsonPage
)
((
R
)
o
).
getData
()).
getData
();
List
<
JSONObject
>
items
=
new
ArrayList
<>();
List
<
ObjectNode
>
items
=
new
ArrayList
<>();
for
(
Object
record
:
list
)
{
String
json
=
"{}"
;
ObjectNode
item
=
null
;
try
{
json
=
objectMapper
.
writeValueAsString
(
record
);
}
catch
(
JsonProcessingException
e
)
{
e
.
printStackTrace
();
}
JSONObject
item
=
JSONObject
.
parseObject
(
json
);
item
=
(
ObjectNode
)
objectMapper
.
readTree
(
objectMapper
.
writeValueAsString
(
record
));
}
catch
(
JsonProcessingException
e
)
{}
for
(
Field
field
:
record
.
getClass
().
getDeclaredFields
())
{
// 获取自定义注解
DictAop
dictAop
=
field
.
getAnnotation
(
DictAop
.
class
);
...
...
@@ -50,7 +47,7 @@ public class DictAnalysis implements ResponseBodyAdvice {
// 字典翻译
Object
dictValue
=
DictUtil
.
getInstance
().
getDictItemValue
(
code
,
object
.
toString
());
if
(
null
!=
dictValue
)
{
item
.
put
(
field
.
getName
()
+
"_dictText"
,
dictValue
);
item
.
put
(
field
.
getName
()
+
"_dictText"
,
String
.
valueOf
(
dictValue
)
);
}
}
}
...
...
datax-common/datax-common-mybatis/pom.xml
View file @
6e45a2fe
...
...
@@ -17,6 +17,11 @@
<artifactId>
mysql-connector-java
</artifactId>
</dependency>
<dependency>
<groupId>
com.oracle.database.jdbc
</groupId>
<artifactId>
ojdbc8
</artifactId>
<version>
${oracle.version}
</version>
</dependency>
<dependency>
<groupId>
com.baomidou
</groupId>
<artifactId>
mybatis-plus-boot-starter
</artifactId>
<version>
${mybatis-plus.version}
</version>
...
...
@@ -38,4 +43,4 @@
</dependency>
</dependencies>
</project>
\ No newline at end of file
</project>
datax-modules/system-service-parent/system-service-api/src/main/java/cn/datax/service/system/api/dto/MenuDto.java
View file @
6e45a2fe
...
...
@@ -49,6 +49,10 @@ public class MenuDto implements Serializable {
@ApiModelProperty
(
value
=
"资源编码"
)
private
String
menuCode
;
@ApiModelProperty
(
value
=
"隐藏"
)
@NotNull
(
message
=
"隐藏不能为空"
,
groups
=
{
ValidationGroups
.
Insert
.
class
,
ValidationGroups
.
Update
.
class
})
private
Integer
menuHidden
;
@ApiModelProperty
(
value
=
"排序"
)
@NotNull
(
message
=
"排序不能为空"
,
groups
=
{
ValidationGroups
.
Insert
.
class
,
ValidationGroups
.
Update
.
class
})
private
Integer
menuSort
;
...
...
datax-modules/system-service-parent/system-service-api/src/main/java/cn/datax/service/system/api/entity/MenuEntity.java
View file @
6e45a2fe
...
...
@@ -8,7 +8,7 @@ import lombok.experimental.Accessors;
/**
* <p>
*
*
* </p>
*
* @author yuwei
...
...
@@ -68,6 +68,11 @@ public class MenuEntity extends BaseEntity {
private
String
menuCode
;
/**
* 资源隐藏(0否,1是)
*/
private
Integer
menuHidden
;
/**
* 排序
*/
private
Integer
menuSort
;
...
...
datax-modules/system-service-parent/system-service-api/src/main/java/cn/datax/service/system/api/vo/MenuVo.java
View file @
6e45a2fe
...
...
@@ -28,5 +28,6 @@ public class MenuVo implements Serializable {
@DictAop
(
code
=
"sys_menu_type"
)
private
String
menuType
;
private
String
menuCode
;
private
Integer
menuHidden
;
private
Integer
menuSort
;
}
datax-modules/system-service-parent/system-service-api/src/main/java/cn/datax/service/system/api/vo/route/RouteVo.java
View file @
6e45a2fe
...
...
@@ -31,6 +31,10 @@ public class RouteVo implements Serializable {
*/
private
MetaVo
meta
;
/**
* 隐藏
*/
private
Boolean
hidden
;
/**
* 子路由
*/
private
List
<
RouteVo
>
children
;
...
...
datax-modules/system-service-parent/system-service/src/main/java/cn/datax/service/system/service/impl/UserServiceImpl.java
View file @
6e45a2fe
...
...
@@ -207,6 +207,7 @@ public class UserServiceImpl extends BaseServiceImpl<UserDao, UserEntity> implem
routeVo
.
setPath
(
entity
.
getMenuPath
());
routeVo
.
setRedirect
(
entity
.
getMenuRedirect
());
routeVo
.
setMeta
(
metaVo
);
routeVo
.
setHidden
(
DataConstant
.
TrueOrFalse
.
TRUE
.
getKey
().
equals
(
String
.
valueOf
(
entity
.
getMenuHidden
())));
temp
=
getRouteTree
(
list
,
entity
.
getId
());
if
(
CollUtil
.
isNotEmpty
(
temp
)){
routeVo
.
setChildren
(
temp
);
...
...
datax-modules/system-service-parent/system-service/src/main/resources/mapper/MenuMapper.xml
View file @
6e45a2fe
...
...
@@ -19,6 +19,7 @@
<result
column=
"menu_type"
property=
"menuType"
/>
<result
column=
"menu_code"
property=
"menuCode"
/>
<result
column=
"menu_sort"
property=
"menuSort"
/>
<result
column=
"menu_hidden"
property=
"menuHidden"
/>
<result
column=
"status"
property=
"status"
/>
<result
column=
"remark"
property=
"remark"
/>
</resultMap>
...
...
@@ -30,7 +31,7 @@
create_time,
update_by,
update_time,
parent_id, menu_name, menu_path, menu_component, menu_redirect, menu_perms, menu_icon, menu_type, menu_code, menu_sort, status, remark
parent_id, menu_name, menu_path, menu_component, menu_redirect, menu_perms, menu_icon, menu_type, menu_code, menu_sort,
menu_hidden,
status, remark
</sql>
<sql
id=
"Menu_Column_List"
>
...
...
@@ -40,7 +41,7 @@
${alias}.update_by,
${alias}.update_time,
${alias}.parent_id, ${alias}.menu_name, ${alias}.menu_path, ${alias}.menu_component, ${alias}.menu_redirect, ${alias}.menu_perms,
${alias}.menu_icon, ${alias}.menu_type, ${alias}.menu_code, ${alias}.menu_sort, ${alias}.status, ${alias}.remark
${alias}.menu_icon, ${alias}.menu_type, ${alias}.menu_code, ${alias}.menu_sort, ${alias}.
menu_hidden, ${alias}.
status, ${alias}.remark
</sql>
<select
id=
"selectMenuByRoleIds"
parameterType=
"java.util.List"
resultMap=
"BaseResultMap"
>
...
...
datax-modules/workflow-service-parent/workflow-service/src/main/java/cn/datax/service/workflow/config/ProcessEngineConfig.java
View file @
6e45a2fe
...
...
@@ -6,9 +6,6 @@ import org.flowable.engine.ProcessEngineConfiguration;
import
org.flowable.spring.SpringProcessEngineConfiguration
;
import
org.springframework.context.annotation.Bean
;
import
org.springframework.context.annotation.Configuration
;
import
org.springframework.core.io.Resource
;
import
org.springframework.core.io.ResourceLoader
;
import
org.springframework.core.io.support.PathMatchingResourcePatternResolver
;
import
org.springframework.jdbc.datasource.DataSourceTransactionManager
;
import
javax.sql.DataSource
;
...
...
@@ -38,9 +35,6 @@ public class ProcessEngineConfig {
springProcessEngineConfiguration
.
setActivityFontName
(
"宋体"
);
springProcessEngineConfiguration
.
setLabelFontName
(
"宋体"
);
springProcessEngineConfiguration
.
setAnnotationFontName
(
"宋体"
);
//自动部署已有的流程文件
Resource
[]
resources
=
new
PathMatchingResourcePatternResolver
().
getResources
(
ResourceLoader
.
CLASSPATH_URL_PREFIX
+
"processes/*.bpmn20.xml"
);
springProcessEngineConfiguration
.
setDeploymentResources
(
resources
);
return
springProcessEngineConfiguration
;
}
}
datax-ui/src/main.js
View file @
6e45a2fe
...
...
@@ -7,7 +7,7 @@ import '@/styles/element-variables.scss'
import
'@/styles/index.scss'
import
"@/assets/icons/iconfont.css"
import
'@/assets/icons/iconfont.css'
import
App
from
'./App'
import
store
from
'./store'
...
...
datax-ui/src/views/login/index.vue
View file @
6e45a2fe
...
...
@@ -3,7 +3,7 @@
<el-form
ref=
"loginForm"
:model=
"loginForm"
:rules=
"loginRules"
class=
"login-form"
auto-complete=
"on"
label-position=
"left"
>
<div
class=
"title-container"
>
<h3
class=
"title"
>
Login Form
</h3>
<h3
class=
"title"
>
系统登陆
</h3>
</div>
<el-form-item
prop=
"username"
>
...
...
datax-ui/src/views/metadata/datasearch/ColumnPane.vue
View file @
6e45a2fe
<
template
>
<div
class=
"app-container"
>
ColumnPane
<div
v-for=
"(item, index) in data"
:key=
"index"
>
{{
item
.
id
}}
</div>
</div>
</
template
>
...
...
@@ -13,7 +16,6 @@ export default {
default
:
function
()
{
return
[]
}
}
}
}
...
...
datax-ui/src/views/metadata/datasearch/SourcePane.vue
View file @
6e45a2fe
<
template
>
<div
class=
"app-container"
>
SourcePane
<div
v-for=
"(item, index) in data"
:key=
"index"
>
{{
item
.
id
}}
</div>
</div>
</
template
>
...
...
@@ -13,7 +16,6 @@ export default {
default
:
function
()
{
return
[]
}
}
}
}
...
...
datax-ui/src/views/metadata/datasearch/TablePane.vue
View file @
6e45a2fe
<
template
>
<div
class=
"app-container"
>
TablePane
<div
v-for=
"(item, index) in data"
:key=
"index"
>
{{
item
.
id
}}
</div>
</div>
</
template
>
...
...
@@ -13,7 +16,6 @@ export default {
default
:
function
()
{
return
[]
}
}
}
}
...
...
datax-ui/src/views/metadata/datasearch/index.vue
View file @
6e45a2fe
...
...
@@ -11,19 +11,25 @@
<el-option
label=
"数据表"
value=
"2"
></el-option>
<el-option
label=
"数据元"
value=
"3"
></el-option>
</el-select>
<el-button
slot=
"append"
:disabled=
"btnEnable"
icon=
"el-icon-search"
></el-button>
<el-button
slot=
"append"
:disabled=
"btnEnable"
icon=
"el-icon-search"
@
click=
"search"
></el-button>
</el-input>
</el-col>
</el-row>
<div
class=
"line"
></div>
<el-row>
<el-col
:span=
"6"
>
6
</el-col>
<el-col
:span=
"18"
>
<el-col
:span=
"24"
>
<source-pane
v-if=
"type === '1'"
:data=
"dataList"
></source-pane>
<table-pane
v-if=
"type === '2'"
:data=
"dataList"
></table-pane>
<column-pane
v-if=
"type === '3'"
:data=
"dataList"
></column-pane>
<el-pagination
:page-sizes=
"[10, 20, 50, 100]"
layout=
"total, sizes, prev, pager, next, jumper"
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page
.
sync=
"queryParams.pageNum"
:page-size
.
sync=
"queryParams.pageSize"
:total=
"total"
></el-pagination>
</el-col>
</el-row>
</div>
...
...
@@ -49,6 +55,10 @@ import SourcePane from './SourcePane'
import
TablePane
from
'./TablePane'
import
ColumnPane
from
'./ColumnPane'
import
{
pageDataSource
}
from
'@/api/metadata/datasource'
import
{
pageDataTable
}
from
'@/api/metadata/datatable'
import
{
pageDataColumn
}
from
'@/api/metadata/datacolumn'
export
default
{
name
:
'DataSearch'
,
components
:
{
SourcePane
,
TablePane
,
ColumnPane
},
...
...
@@ -73,10 +83,51 @@ export default {
methods
:
{
search
()
{
this
.
searchExecuting
=
true
let
data
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
queryParams
))
if
(
this
.
type
===
'1'
)
{
data
.
sourceName
=
this
.
keyword
pageDataSource
(
data
).
then
(
response
=>
{
if
(
response
.
success
)
{
const
{
data
}
=
response
this
.
dataList
=
data
.
data
this
.
total
=
data
.
total
}
})
}
else
if
(
this
.
type
===
'2'
)
{
data
.
tableName
=
this
.
keyword
pageDataTable
(
data
).
then
(
response
=>
{
if
(
response
.
success
)
{
const
{
data
}
=
response
this
.
dataList
=
data
.
data
this
.
total
=
data
.
total
}
})
}
else
if
(
this
.
type
===
'3'
)
{
data
.
columnName
=
this
.
keyword
pageDataColumn
(
data
).
then
(
response
=>
{
if
(
response
.
success
)
{
const
{
data
}
=
response
this
.
dataList
=
data
.
data
this
.
total
=
data
.
total
}
})
}
},
typeSelectChanged
(
val
)
{
this
.
dataList
=
[]
this
.
total
=
0
this
.
queryParams
.
pageNum
=
1
this
.
queryParams
.
pageSize
=
20
console
.
log
(
val
)
},
handleSizeChange
(
val
)
{
this
.
queryParams
.
pageNum
=
1
this
.
queryParams
.
pageSize
=
val
this
.
search
()
},
handleCurrentChange
(
val
)
{
this
.
queryParams
.
pageNum
=
val
this
.
search
()
}
},
computed
:
{
...
...
pom.xml
View file @
6e45a2fe
...
...
@@ -15,7 +15,7 @@
<parent>
<groupId>
org.springframework.boot
</groupId>
<artifactId>
spring-boot-starter-parent
</artifactId>
<version>
2.
2.7
.RELEASE
</version>
<version>
2.
3.3
.RELEASE
</version>
<relativePath/>
</parent>
...
...
@@ -26,7 +26,7 @@
<maven.compiler.target>
1.8
</maven.compiler.target>
<java.version>
1.8
</java.version>
<spring-boot.version>
2.3.
2
.RELEASE
</spring-boot.version>
<spring-boot.version>
2.3.
3
.RELEASE
</spring-boot.version>
<spring-cloud.version>
Hoxton.SR7
</spring-cloud.version>
<spring-boot-admin.version>
2.2.4
</spring-boot-admin.version>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment