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
e2476051
Commit
e2476051
authored
Sep 06, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
f92085c0
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
433 additions
and
49 deletions
+433
-49
ModelServiceImpl.java
...ervice/data/masterdata/service/impl/ModelServiceImpl.java
+1
-0
DataAdd.vue
datax-ui/src/views/masterdata/datamanage/DataAdd.vue
+144
-0
DataDetail.vue
datax-ui/src/views/masterdata/datamanage/DataDetail.vue
+94
-0
DataEdit.vue
datax-ui/src/views/masterdata/datamanage/DataEdit.vue
+140
-0
DataList.vue
datax-ui/src/views/masterdata/datamanage/DataList.vue
+12
-28
index.vue
datax-ui/src/views/masterdata/datamanage/index.vue
+13
-1
DataModelAdd.vue
datax-ui/src/views/masterdata/datamodel/DataModelAdd.vue
+6
-6
DataModelEdit.vue
datax-ui/src/views/masterdata/datamodel/DataModelEdit.vue
+3
-3
JobList.vue
datax-ui/src/views/scheduler/job/JobList.vue
+20
-11
No files found.
datax-modules/data-masterdata-service-parent/data-masterdata-service/src/main/java/cn/datax/service/data/masterdata/service/impl/ModelServiceImpl.java
View file @
e2476051
...
...
@@ -148,6 +148,7 @@ public class ModelServiceImpl extends BaseServiceImpl<ModelDao, ModelEntity> imp
return
map
;
}).
collect
(
Collectors
.
toList
());
Map
<
String
,
Object
>
map
=
new
HashMap
<>();
map
.
put
(
"modelId"
,
id
);
map
.
put
(
"tableName"
,
tableName
);
map
.
put
(
"columnList"
,
columnList
);
map
.
put
(
"queryList"
,
queryList
);
...
...
datax-ui/src/views/masterdata/datamanage/DataAdd.vue
0 → 100644
View file @
e2476051
<
template
>
<el-card
class=
"box-card"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
{{
title
}}
</span>
<el-button-group
style=
"float: right;"
>
<el-button
size=
"mini"
icon=
"el-icon-plus"
round
:loading=
"loadingOptions.loading"
:disabled=
"loadingOptions.isDisabled"
@
click=
"submitForm"
>
{{
loadingOptions
.
loadingText
}}
</el-button>
<el-button
size=
"mini"
icon=
"el-icon-back"
round
@
click=
"showCard"
>
返回
</el-button>
</el-button-group>
</div>
<div
class=
"body-wrapper"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"80px"
>
<el-form-item
v-for=
"(item, index) in columns"
:key=
"item.id"
:label=
"item.columnComment"
:prop=
"item.columnName"
:rules=
"[
{ required: item.isRequired, message: item.columnComment + '不能为空' }]"
>
<template
v-if=
"item.htmlType === 'input'"
>
<el-input
v-model
.
trim=
"form[item.columnName]"
:placeholder=
"'请输入' + item.columnComment"
/>
</
template
>
<
template
v-if=
"item.htmlType === 'textarea'"
>
<el-input
type=
"textarea"
v-model
.
trim=
"form[item.columnName]"
:placeholder=
"'请输入' + item.columnComment"
/>
</
template
>
<
template
v-if=
"item.htmlType === 'number'"
>
<el-input-number
v-model
.
trim=
"form[item.columnName]"
:controls=
"false"
></el-input-number>
</
template
>
<
template
v-if=
"item.htmlType === 'datetime'"
>
<el-date-picker
v-model
.
trim=
"form[item.columnName]"
format=
"yyyy-MM-dd HH:mm:ss"
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
placeholder=
"选择日期时间"
></el-date-picker>
</
template
>
</el-form-item>
</el-form>
</div>
</el-card>
</template>
<
script
>
import
{
addChangeRecord
}
from
'@/api/metadata/changerecord'
import
{
getDataModel
}
from
'@/api/masterdata/datamodel'
import
{
addData
}
from
'@/api/masterdata/datamanage'
export
default
{
name
:
'DataAdd'
,
props
:
{
data
:
{
type
:
Object
,
default
:
function
()
{
return
{}
}
}
},
data
()
{
return
{
title
:
'主数据新增'
,
// 展示切换
showOptions
:
{
data
:
{},
showList
:
true
,
showAdd
:
false
,
showEdit
:
false
,
showDetail
:
false
},
// 保存按钮
loadingOptions
:
{
loading
:
false
,
loadingText
:
'保存'
,
isDisabled
:
false
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{},
columns
:
[]
}
},
created
()
{
console
.
log
(
'data:'
+
this
.
data
)
getDataModel
(
this
.
data
.
modelId
).
then
(
response
=>
{
if
(
response
.
success
)
{
const
{
data
}
=
response
this
.
columns
=
data
.
modelColumns
}
})
},
methods
:
{
showCard
()
{
this
.
$emit
(
'showCard'
,
this
.
showOptions
)
},
/** 提交按钮 */
submitForm
:
function
()
{
console
.
log
(
this
.
form
)
return
false
// this.$refs['form'].validate(valid => {
// if (valid) {
// this.loadingOptions.loading = true
// this.loadingOptions.loadingText = '保存中...'
// this.loadingOptions.isDisabled = true
// addChangeRecord(this.form).then(response => {
// if (response.success) {
// this.$message.success('保存成功')
// setTimeout(() => {
// // 2秒后跳转列表页
// this.$emit('showCard', this.showOptions)
// }, 2000)
// } else {
// this.$message.error('保存失败')
// this.loadingOptions.loading = false
// this.loadingOptions.loadingText = '保存'
// this.loadingOptions.isDisabled = false
// }
// }).catch(() => {
// this.loadingOptions.loading = false
// this.loadingOptions.loadingText = '保存'
// this.loadingOptions.isDisabled = false
// })
// }
// })
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.el-card
::v-deep
.el-card__body
{
height
:
calc
(
100vh
-
230px
);
overflow-y
:
auto
;
}
</
style
>
datax-ui/src/views/masterdata/datamanage/DataDetail.vue
0 → 100644
View file @
e2476051
<
template
>
<el-card
class=
"box-card"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
{{
title
}}
</span>
<el-button-group
style=
"float: right;"
>
<el-button
size=
"mini"
icon=
"el-icon-back"
round
@
click=
"showCard"
>
返回
</el-button>
</el-button-group>
</div>
<div
class=
"body-wrapper"
>
<el-form
ref=
"form"
:model=
"form"
label-width=
"80px"
disabled
>
<el-form-item
label=
"版本号"
prop=
"version"
>
<el-input
v-model=
"form.version"
/>
</el-form-item>
<el-form-item
label=
"原来的值"
prop=
"fieldOldValue"
>
<el-input
v-model=
"form.fieldOldValue"
/>
</el-form-item>
<el-form-item
label=
"最新的值"
prop=
"fieldNewValue"
>
<el-input
v-model=
"form.fieldNewValue"
/>
</el-form-item>
<el-form-item
label=
"状态"
prop=
"status"
>
<el-radio-group
v-model=
"form.status"
>
<el-radio
v-for=
"dict in statusOptions"
:key=
"dict.id"
:label=
"dict.itemText"
>
{{
dict
.
itemValue
}}
</el-radio>
</el-radio-group>
</el-form-item>
<el-form-item
label=
"备注"
prop=
"remark"
>
<el-input
v-model=
"form.remark"
type=
"textarea"
/>
</el-form-item>
</el-form>
</div>
</el-card>
</
template
>
<
script
>
import
{
getChangeRecord
}
from
'@/api/metadata/changerecord'
import
{
getDataModel
}
from
'@/api/masterdata/datamodel'
import
{
getData
}
from
'@/api/masterdata/datamanage'
export
default
{
name
:
'DataDetail'
,
props
:
{
data
:
{
type
:
Object
,
default
:
function
()
{
return
{}
}
}
},
data
()
{
return
{
title
:
'主数据详情'
,
// 展示切换
showOptions
:
{
data
:
{},
showList
:
true
,
showAdd
:
false
,
showEdit
:
false
,
showDetail
:
false
},
// 表单参数
form
:
{}
}
},
created
()
{
console
.
log
(
'id:'
+
this
.
data
.
id
)
},
mounted
()
{
this
.
getChangeRecord
(
this
.
data
.
id
)
},
methods
:
{
showCard
()
{
this
.
$emit
(
'showCard'
,
this
.
showOptions
)
},
/** 获取详情 */
getChangeRecord
:
function
(
id
)
{
getChangeRecord
(
id
).
then
(
response
=>
{
if
(
response
.
success
)
{
this
.
form
=
response
.
data
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.el-card
::v-deep
.el-card__body
{
height
:
calc
(
100vh
-
230px
);
overflow-y
:
auto
;
}
</
style
>
datax-ui/src/views/masterdata/datamanage/DataEdit.vue
0 → 100644
View file @
e2476051
<
template
>
<el-card
class=
"box-card"
shadow=
"always"
>
<div
slot=
"header"
class=
"clearfix"
>
<span>
{{
title
}}
</span>
<el-button-group
style=
"float: right;"
>
<el-button
size=
"mini"
icon=
"el-icon-plus"
round
:loading=
"loadingOptions.loading"
:disabled=
"loadingOptions.isDisabled"
@
click=
"submitForm"
>
{{
loadingOptions
.
loadingText
}}
</el-button>
<el-button
size=
"mini"
icon=
"el-icon-back"
round
@
click=
"showCard"
>
返回
</el-button>
</el-button-group>
</div>
<div
class=
"body-wrapper"
>
<el-form
ref=
"form"
:model=
"form"
:rules=
"rules"
label-width=
"80px"
>
<el-form-item
label=
"版本号"
prop=
"version"
>
<el-input
v-model=
"form.version"
placeholder=
"请输入版本号"
/>
</el-form-item>
<el-form-item
label=
"原来的值"
prop=
"fieldOldValue"
>
<el-input
v-model=
"form.fieldOldValue"
placeholder=
"请输入原来的值"
disabled
/>
</el-form-item>
<el-form-item
label=
"最新的值"
prop=
"fieldNewValue"
>
<el-input
v-model=
"form.fieldNewValue"
placeholder=
"请输入最新的值"
/>
</el-form-item>
</el-form>
</div>
</el-card>
</
template
>
<
script
>
import
{
getChangeRecord
,
updateChangeRecord
}
from
'@/api/metadata/changerecord'
import
{
getDataModel
}
from
'@/api/masterdata/datamodel'
import
{
getData
,
updateData
}
from
'@/api/masterdata/datamanage'
export
default
{
name
:
'DataEdit'
,
props
:
{
data
:
{
type
:
Object
,
default
:
function
()
{
return
{}
}
}
},
data
()
{
return
{
title
:
'主数据编辑'
,
// 展示切换
showOptions
:
{
data
:
{},
showList
:
true
,
showAdd
:
false
,
showEdit
:
false
,
showDetail
:
false
},
// 保存按钮
loadingOptions
:
{
loading
:
false
,
loadingText
:
'保存'
,
isDisabled
:
false
},
// 表单参数
form
:
{},
// 表单校验
rules
:
{
objectId
:
[
{
required
:
true
,
message
:
'源数据表主键不能为空'
,
trigger
:
'blur'
}
],
fieldName
:
[
{
required
:
true
,
message
:
'数据表的字段名不能为空'
,
trigger
:
'blur'
}
],
fieldOldValue
:
[
{
required
:
true
,
message
:
'原来的值不能为空'
,
trigger
:
'blur'
}
],
fieldNewValue
:
[
{
required
:
true
,
message
:
'最新的值不能为空'
,
trigger
:
'blur'
}
],
version
:
[
{
required
:
true
,
message
:
'版本号不能为空'
,
trigger
:
'blur'
}
]
}
}
},
created
()
{
console
.
log
(
'data:'
+
this
.
data
)
getDataModel
(
this
.
data
.
modelId
).
then
(
response
=>
{
if
(
response
.
success
)
{
console
.
log
(
response
)
}
})
},
mounted
()
{
// this.getChangeRecord(this.data.id)
},
methods
:
{
showCard
()
{
this
.
$emit
(
'showCard'
,
this
.
showOptions
)
},
/** 获取详情 */
getChangeRecord
:
function
(
id
)
{
getChangeRecord
(
id
).
then
(
response
=>
{
if
(
response
.
success
)
{
this
.
form
=
response
.
data
}
})
},
/** 提交按钮 */
submitForm
:
function
()
{
this
.
$refs
[
'form'
].
validate
(
valid
=>
{
if
(
valid
)
{
this
.
loadingOptions
.
loading
=
true
this
.
loadingOptions
.
loadingText
=
'保存中...'
this
.
loadingOptions
.
isDisabled
=
true
updateChangeRecord
(
this
.
form
).
then
(
response
=>
{
if
(
response
.
success
)
{
this
.
$message
.
success
(
'保存成功'
)
setTimeout
(()
=>
{
// 2秒后跳转列表页
this
.
$emit
(
'showCard'
,
this
.
showOptions
)
},
2000
)
}
else
{
this
.
$message
.
error
(
'保存失败'
)
this
.
loadingOptions
.
loading
=
false
this
.
loadingOptions
.
loadingText
=
'保存'
this
.
loadingOptions
.
isDisabled
=
false
}
}).
catch
(()
=>
{
this
.
loadingOptions
.
loading
=
false
this
.
loadingOptions
.
loadingText
=
'保存'
this
.
loadingOptions
.
isDisabled
=
false
})
}
})
}
}
}
</
script
>
<
style
lang=
"scss"
scoped
>
.el-card
::v-deep
.el-card__body
{
height
:
calc
(
100vh
-
230px
);
overflow-y
:
auto
;
}
</
style
>
datax-ui/src/views/masterdata/datamanage/DataList.vue
View file @
e2476051
...
...
@@ -24,33 +24,11 @@
<div
v-if=
"tableName"
>
<el-form
ref=
"queryForm"
:model=
"queryParams"
:inline=
"true"
>
<el-form-item
v-for=
"(item, index) in queryParams.conditions"
:label=
"item.columnName"
:prop=
"item.column"
:key=
"index"
>
<template
v-if=
"item.type === 'char'"
>
<el-input
v-model
.
trim=
"queryParams.conditions[index].value"
clearable
size=
"small"
></el-input>
</
template
>
<
template
v-if=
"item.type === 'int'"
>
<el-input-number
v-model
.
trim=
"queryParams.conditions[index].value"
:controls=
"false"
:precision=
"0"
clearable
size=
"small"
></el-input-number>
</
template
>
<
template
v-if=
"item.type === 'datetime'"
>
<el-date-picker
v-model
.
trim=
"queryParams.conditions[index].value"
format=
"yyyy-MM-dd HH:mm:ss"
value-format=
"yyyy-MM-dd HH:mm:ss"
type=
"datetime"
placeholder=
"选择日期时间"
clearable
size=
"small"
></el-date-picker>
</
template
>
<el-input
v-model
.
trim=
"item.value"
clearable
size=
"small"
></el-input>
</el-form-item>
<el-form-item>
<el-button
type=
"primary"
icon=
"el-icon-search"
size=
"mini"
@
click=
"handleQuery"
>
搜索
</el-button>
...
...
@@ -201,6 +179,8 @@ export default {
children
:
'children'
,
label
:
'modelName'
},
// 数据模型ID
modelId
:
''
,
tableName
:
''
,
// 表格头
tableColumns
:
[],
...
...
@@ -252,6 +232,7 @@ export default {
/** 新增按钮操作 */
handleAdd
()
{
this
.
showOptions
.
data
=
{}
this
.
showOptions
.
data
.
modelId
=
this
.
modelId
this
.
showOptions
.
showList
=
false
this
.
showOptions
.
showAdd
=
true
this
.
showOptions
.
showEdit
=
false
...
...
@@ -260,6 +241,7 @@ export default {
},
/** 修改按钮操作 */
handleEdit
(
row
)
{
this
.
showOptions
.
data
.
modelId
=
this
.
modelId
this
.
showOptions
.
data
.
id
=
row
.
id
||
this
.
ids
[
0
]
this
.
showOptions
.
showList
=
false
this
.
showOptions
.
showAdd
=
false
...
...
@@ -269,6 +251,7 @@ export default {
},
/** 详情按钮操作 */
handleDetail
(
row
)
{
this
.
showOptions
.
data
.
modelId
=
this
.
modelId
this
.
showOptions
.
data
.
id
=
row
.
id
||
this
.
ids
[
0
]
this
.
showOptions
.
showList
=
false
this
.
showOptions
.
showAdd
=
false
...
...
@@ -315,10 +298,11 @@ export default {
},
/** 节点单击事件 */
handleNodeClick
(
data
)
{
if
(
data
.
id
&&
data
.
modelPhysicalTable
!==
this
.
tableName
)
{
if
(
data
.
id
&&
data
.
id
!==
this
.
modelId
)
{
getTableParam
(
data
.
id
).
then
(
response
=>
{
if
(
response
.
success
)
{
const
{
data
}
=
response
this
.
modelId
=
data
.
modelId
this
.
tableName
=
data
.
tableName
this
.
tableColumns
=
data
.
columnList
this
.
tableParamList
=
data
.
queryList
...
...
datax-ui/src/views/masterdata/datamanage/index.vue
View file @
e2476051
...
...
@@ -3,15 +3,27 @@
<transition
name=
"el-zoom-in-center"
>
<data-list
v-if=
"options.showList"
@
showCard=
"showCard"
/>
</transition>
<transition
name=
"el-zoom-in-top"
>
<data-add
v-if=
"options.showAdd"
:data=
"options.data"
@
showCard=
"showCard"
/>
</transition>
<transition
name=
"el-zoom-in-top"
>
<data-edit
v-if=
"options.showEdit"
:data=
"options.data"
@
showCard=
"showCard"
/>
</transition>
<transition
name=
"el-zoom-in-bottom"
>
<data-detail
v-if=
"options.showDetail"
:data=
"options.data"
@
showCard=
"showCard"
/>
</transition>
</div>
</
template
>
<
script
>
import
DataList
from
'./DataList'
import
DataAdd
from
'./DataAdd'
import
DataEdit
from
'./DataEdit'
import
DataDetail
from
'./DataDetail'
export
default
{
name
:
'DataManage'
,
components
:
{
DataList
},
components
:
{
DataList
,
DataAdd
,
DataEdit
,
DataDetail
},
data
()
{
return
{
options
:
{
...
...
datax-ui/src/views/masterdata/datamodel/DataModelAdd.vue
View file @
e2476051
...
...
@@ -244,12 +244,12 @@ export default {
// 系统默认列
systemColumns
:
[
{
columnName
:
'id'
,
columnComment
:
'主键ID'
,
columnType
:
'varchar'
,
columnLength
:
'20'
,
columnScale
:
'0'
,
defaultValue
:
''
,
isPk
:
'1'
,
isRequired
:
'1'
,
isInsert
:
'0'
,
isEdit
:
'0'
,
isList
:
'0'
,
isQuery
:
'0'
,
queryType
:
''
,
htmlType
:
'input'
,
isSystem
:
'1'
},
{
columnName
:
'status'
,
columnComment
:
'状态(0禁用,1启用)'
,
columnType
:
'tinyint'
,
columnLength
:
'0'
,
columnScale
:
'0'
,
defaultValue
:
'1'
,
isPk
:
'0'
,
isRequired
:
'0'
,
isInsert
:
'0'
,
isEdit
:
'0'
,
isList
:
'0'
,
isQuery
:
'0'
,
queryType
:
''
,
htmlType
:
'
input
'
,
isSystem
:
'1'
},
{
columnName
:
'status'
,
columnComment
:
'状态(0禁用,1启用)'
,
columnType
:
'tinyint'
,
columnLength
:
'0'
,
columnScale
:
'0'
,
defaultValue
:
'1'
,
isPk
:
'0'
,
isRequired
:
'0'
,
isInsert
:
'0'
,
isEdit
:
'0'
,
isList
:
'0'
,
isQuery
:
'0'
,
queryType
:
''
,
htmlType
:
'
number
'
,
isSystem
:
'1'
},
{
columnName
:
'create_by'
,
columnComment
:
'创建人'
,
columnType
:
'varchar'
,
columnLength
:
'20'
,
columnScale
:
'0'
,
defaultValue
:
''
,
isPk
:
'0'
,
isRequired
:
'0'
,
isInsert
:
'0'
,
isEdit
:
'0'
,
isList
:
'0'
,
isQuery
:
'0'
,
queryType
:
''
,
htmlType
:
'input'
,
isSystem
:
'1'
},
{
columnName
:
'create_time'
,
columnComment
:
'创建日期'
,
columnType
:
'datetime'
,
columnLength
:
'0'
,
columnScale
:
'0'
,
defaultValue
:
''
,
isPk
:
'0'
,
isRequired
:
'0'
,
isInsert
:
'0'
,
isEdit
:
'0'
,
isList
:
'0'
,
isQuery
:
'0'
,
queryType
:
''
,
htmlType
:
'
input
'
,
isSystem
:
'1'
},
{
columnName
:
'create_time'
,
columnComment
:
'创建日期'
,
columnType
:
'datetime'
,
columnLength
:
'0'
,
columnScale
:
'0'
,
defaultValue
:
''
,
isPk
:
'0'
,
isRequired
:
'0'
,
isInsert
:
'0'
,
isEdit
:
'0'
,
isList
:
'0'
,
isQuery
:
'0'
,
queryType
:
''
,
htmlType
:
'
datetime
'
,
isSystem
:
'1'
},
{
columnName
:
'create_dept'
,
columnComment
:
'创建人所属部门'
,
columnType
:
'varchar'
,
columnLength
:
'20'
,
columnScale
:
'0'
,
defaultValue
:
''
,
isPk
:
'0'
,
isRequired
:
'0'
,
isInsert
:
'0'
,
isEdit
:
'0'
,
isList
:
'0'
,
isQuery
:
'0'
,
queryType
:
''
,
htmlType
:
'input'
,
isSystem
:
'1'
},
{
columnName
:
'update_by'
,
columnComment
:
'更新人'
,
columnType
:
'varchar'
,
columnLength
:
'20'
,
columnScale
:
'0'
,
defaultValue
:
''
,
isPk
:
'0'
,
isRequired
:
'0'
,
isInsert
:
'0'
,
isEdit
:
'0'
,
isList
:
'0'
,
isQuery
:
'0'
,
queryType
:
''
,
htmlType
:
'input'
,
isSystem
:
'1'
},
{
columnName
:
'update_time'
,
columnComment
:
'更新日期'
,
columnType
:
'datetime'
,
columnLength
:
'0'
,
columnScale
:
'0'
,
defaultValue
:
''
,
isPk
:
'0'
,
isRequired
:
'0'
,
isInsert
:
'0'
,
isEdit
:
'0'
,
isList
:
'0'
,
isQuery
:
'0'
,
queryType
:
''
,
htmlType
:
'
input
'
,
isSystem
:
'1'
}
{
columnName
:
'update_time'
,
columnComment
:
'更新日期'
,
columnType
:
'datetime'
,
columnLength
:
'0'
,
columnScale
:
'0'
,
defaultValue
:
''
,
isPk
:
'0'
,
isRequired
:
'0'
,
isInsert
:
'0'
,
isEdit
:
'0'
,
isList
:
'0'
,
isQuery
:
'0'
,
queryType
:
''
,
htmlType
:
'
datetime
'
,
isSystem
:
'1'
}
]
}
},
...
...
@@ -292,9 +292,9 @@ export default {
defaultValue
:
''
,
isSystem
:
'0'
,
isPk
:
'0'
,
isRequired
:
'
0
'
,
isInsert
:
'
0
'
,
isEdit
:
'
0
'
,
isRequired
:
'
1
'
,
isInsert
:
'
1
'
,
isEdit
:
'
1
'
,
isList
:
'1'
,
isQuery
:
'0'
,
queryType
:
''
,
...
...
datax-ui/src/views/masterdata/datamodel/DataModelEdit.vue
View file @
e2476051
...
...
@@ -281,9 +281,9 @@ export default {
defaultValue
:
''
,
isSystem
:
'0'
,
isPk
:
'0'
,
isRequired
:
'
0
'
,
isInsert
:
'
0
'
,
isEdit
:
'
0
'
,
isRequired
:
'
1
'
,
isInsert
:
'
1
'
,
isEdit
:
'
1
'
,
isList
:
'1'
,
isQuery
:
'0'
,
queryType
:
''
,
...
...
datax-ui/src/views/scheduler/job/JobList.vue
View file @
e2476051
...
...
@@ -335,9 +335,12 @@ export default {
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
pauseJob
(
row
.
id
||
this
.
ids
[
0
])
this
.
$message
.
success
(
'任务暂停成功'
)
this
.
getList
()
pauseJob
(
row
.
id
||
this
.
ids
[
0
]).
then
(
response
=>
{
if
(
response
.
success
)
{
this
.
$message
.
success
(
'任务暂停成功'
)
this
.
getList
()
}
})
}).
catch
(()
=>
{
})
},
...
...
@@ -348,9 +351,12 @@ export default {
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
resumeJob
(
row
.
id
||
this
.
ids
[
0
])
this
.
$message
.
success
(
'任务恢复成功'
)
this
.
getList
()
resumeJob
(
row
.
id
||
this
.
ids
[
0
]).
then
(
response
=>
{
if
(
response
.
success
)
{
this
.
$message
.
success
(
'任务恢复成功'
)
this
.
getList
()
}
})
}).
catch
(()
=>
{
})
},
...
...
@@ -361,9 +367,12 @@ export default {
cancelButtonText
:
'取消'
,
type
:
'warning'
}).
then
(()
=>
{
runJob
(
row
.
id
||
this
.
ids
[
0
])
this
.
$message
.
success
(
'任务执行成功'
)
this
.
getList
()
runJob
(
row
.
id
||
this
.
ids
[
0
]).
then
(
response
=>
{
if
(
response
.
success
)
{
this
.
$message
.
success
(
'任务执行成功'
)
this
.
getList
()
}
})
}).
catch
(()
=>
{
})
},
...
...
@@ -407,9 +416,9 @@ export default {
statusFormatter
(
row
,
column
,
cellValue
,
index
)
{
const
dictLabel
=
this
.
selectDictLabel
(
this
.
statusOptions
,
cellValue
)
if
(
cellValue
===
'1'
)
{
return
<
el
-
tag
type
=
"success"
>
{
dictLabel
}
<
/el-tag
>
return
<
el
-
tag
type
=
'success'
>
{
dictLabel
}
<
/el-tag
>
}
else
{
return
<
el
-
tag
type
=
"warning"
>
{
dictLabel
}
<
/el-tag
>
return
<
el
-
tag
type
=
'warning'
>
{
dictLabel
}
<
/el-tag
>
}
}
}
...
...
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