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
8d65d5bb
Commit
8d65d5bb
authored
Sep 08, 2020
by
yuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
项目初始化
parent
60e1527c
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
21 additions
and
27 deletions
+21
-27
ModelDataController.java
...rvice/data/masterdata/controller/ModelDataController.java
+1
-1
DataDetail.vue
datax-ui/src/views/masterdata/datamanage/DataDetail.vue
+10
-13
DataEdit.vue
datax-ui/src/views/masterdata/datamanage/DataEdit.vue
+10
-13
No files found.
datax-modules/data-masterdata-service-parent/data-masterdata-service/src/main/java/cn/datax/service/data/masterdata/controller/ModelDataController.java
View file @
8d65d5bb
...
@@ -20,7 +20,7 @@ public class ModelDataController extends BaseController {
...
@@ -20,7 +20,7 @@ public class ModelDataController extends BaseController {
private
ModelDataService
modelDataService
;
private
ModelDataService
modelDataService
;
@GetMapping
(
"/{id}"
)
@GetMapping
(
"/{id}"
)
public
R
getModelDataById
(
@PathVariable
String
id
,
@RequestBody
ModelDataEntity
modelDataEntity
)
{
public
R
getModelDataById
(
@PathVariable
String
id
,
ModelDataEntity
modelDataEntity
)
{
Map
<
String
,
Object
>
data
=
modelDataService
.
getModelDataById
(
modelDataEntity
);
Map
<
String
,
Object
>
data
=
modelDataService
.
getModelDataById
(
modelDataEntity
);
return
R
.
ok
().
setData
(
data
);
return
R
.
ok
().
setData
(
data
);
}
}
...
...
datax-ui/src/views/masterdata/datamanage/DataDetail.vue
View file @
8d65d5bb
...
@@ -113,24 +113,21 @@ export default {
...
@@ -113,24 +113,21 @@ export default {
},
},
created
()
{
created
()
{
console
.
log
(
'data:'
+
this
.
data
)
console
.
log
(
'data:'
+
this
.
data
)
getFormParam
(
this
.
data
.
modelId
).
then
(
response
=>
{
this
.
getFormData
()
if
(
response
.
success
)
{
const
{
data
}
=
response
this
.
tableName
=
data
.
tableName
this
.
columnList
=
data
.
columnList
.
filter
(
item
=>
item
.
isDetail
===
'1'
)
}
})
},
mounted
()
{
this
.
getData
(
this
.
data
.
id
)
},
},
methods
:
{
methods
:
{
showCard
()
{
showCard
()
{
this
.
$emit
(
'showCard'
,
this
.
showOptions
)
this
.
$emit
(
'showCard'
,
this
.
showOptions
)
},
},
/** 获取详情 */
async
getFormData
()
{
getData
:
function
(
id
)
{
const
data
=
await
getFormParam
(
this
.
data
.
modelId
).
then
(
response
=>
{
getData
({
id
:
id
,
tableName
:
this
.
tableName
}).
then
(
response
=>
{
if
(
response
.
success
)
{
return
response
.
data
}
})
this
.
tableName
=
data
.
tableName
this
.
columnList
=
data
.
columnList
.
filter
(
item
=>
item
.
isDetail
===
'1'
)
await
getData
({
id
:
this
.
data
.
id
,
tableName
:
this
.
tableName
}).
then
(
response
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
form
=
response
.
data
this
.
form
=
response
.
data
}
}
...
...
datax-ui/src/views/masterdata/datamanage/DataEdit.vue
View file @
8d65d5bb
...
@@ -120,24 +120,21 @@ export default {
...
@@ -120,24 +120,21 @@ export default {
},
},
created
()
{
created
()
{
console
.
log
(
'data:'
+
this
.
data
)
console
.
log
(
'data:'
+
this
.
data
)
getFormParam
(
this
.
data
.
modelId
).
then
(
response
=>
{
this
.
getFormData
()
if
(
response
.
success
)
{
const
{
data
}
=
response
this
.
tableName
=
data
.
tableName
this
.
columnList
=
data
.
columnList
.
filter
(
item
=>
item
.
isEdit
===
'1'
)
}
})
},
mounted
()
{
this
.
getData
(
this
.
data
.
id
)
},
},
methods
:
{
methods
:
{
showCard
()
{
showCard
()
{
this
.
$emit
(
'showCard'
,
this
.
showOptions
)
this
.
$emit
(
'showCard'
,
this
.
showOptions
)
},
},
/** 获取详情 */
async
getFormData
()
{
getData
:
function
(
id
)
{
const
data
=
await
getFormParam
(
this
.
data
.
modelId
).
then
(
response
=>
{
getData
({
id
:
id
,
tableName
:
this
.
tableName
}).
then
(
response
=>
{
if
(
response
.
success
)
{
return
response
.
data
}
})
this
.
tableName
=
data
.
tableName
this
.
columnList
=
data
.
columnList
.
filter
(
item
=>
item
.
isDetail
===
'1'
)
await
getData
({
id
:
this
.
data
.
id
,
tableName
:
this
.
tableName
}).
then
(
response
=>
{
if
(
response
.
success
)
{
if
(
response
.
success
)
{
this
.
form
=
response
.
data
this
.
form
=
response
.
data
}
}
...
...
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