Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
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
zhaochengxiang
szse
Commits
c05a17c5
Commit
c05a17c5
authored
Apr 15, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产浏览编辑资产
parent
c09edecb
Hide whitespace changes
Inline
Side-by-side
Showing
17 changed files
with
43 additions
and
33 deletions
+43
-33
datamodeler.js
src/service/datamodeler.js
+2
-2
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+10
-0
ImportAssetDrawer.jsx
src/view/Manage/AssetManage/Component/ImportAssetDrawer.jsx
+2
-2
ImportDirectory.jsx
src/view/Manage/AssetManage/Component/ImportDirectory.jsx
+1
-1
ImportElement.jsx
src/view/Manage/AssetManage/Component/ImportElement.jsx
+2
-2
DefineTable.jsx
src/view/Manage/DataMaster/Define/Component/DefineTable.jsx
+4
-4
DefineTree.jsx
src/view/Manage/DataMaster/Define/Component/DefineTree.jsx
+1
-1
UpdateBasicInfo.jsx
...ew/Manage/DataMaster/Define/Component/UpdateBasicInfo.jsx
+4
-4
UpdateTemplateModal.jsx
...anage/DataMaster/Define/Component/UpdateTemplateModal.jsx
+3
-3
ImportDataDrawer.jsx
...w/Manage/DataMaster/Manage/Component/ImportDataDrawer.jsx
+1
-1
ImportExcel.jsx
src/view/Manage/Model/Component/ImportExcel.jsx
+1
-1
EditTemplate.jsx
src/view/Manage/ModelConfig/Component/EditTemplate.jsx
+3
-3
PartitionCURD.jsx
src/view/Manage/ModelConfig/Component/PartitionCURD.jsx
+1
-1
TemplateAction.jsx
src/view/Manage/ModelConfig/Component/TemplateAction.jsx
+1
-1
TemplateCURD.jsx
src/view/Manage/ModelConfig/Component/TemplateCURD.jsx
+4
-4
WordTemplate.jsx
src/view/Manage/ModelConfig/Component/WordTemplate.jsx
+2
-2
index.jsx
src/view/Manage/ModelConfig/index.jsx
+1
-1
No files found.
src/service/datamodeler.js
View file @
c05a17c5
...
...
@@ -84,7 +84,7 @@ export function constraints() {
return
GetJSON
(
"/datamodeler/easyDataModelerConstraint/constraints"
);
}
//模
版
//模
板
export
function
templates
()
{
return
GetJSON
(
"/datamodeler/easyDataModelerTemplateCURD/getAllDataModelTemplates"
);
}
...
...
@@ -110,7 +110,7 @@ export function draftUsingDDL(payload) {
return
PostJSON
(
"/datamodeler/easyDataModelerDesign/draftUsingDDL"
,
payload
);
}
//切换模
版
或者规范时调用
//切换模
板
或者规范时调用
export
function
consult
(
payload
)
{
return
PostJSON
(
"/datamodeler/easyDataModelerDesign/consult"
,
payload
);
}
...
...
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
c05a17c5
...
...
@@ -552,6 +552,16 @@ const AssetAction = (props) => {
</div>
}
{
readOnly && <div className='flex' style={{ justifyContent: 'right' }}>
{
currentAction==='detail' ? <Button type='primary' onClick={onActionButtonClick}>编辑</Button> : <Space>
<Button type='primary' onClick={onCancelButtonClick}>取消</Button>
<Button type='primary' onClick={onActionButtonClick}>保存</Button>
</Space>
}
</div>
}
{
(action!=='add' && (id||'')!=='') && <div>
<div className='pl-common py-compact-common'>
<Descriptions column={1}>
...
...
src/view/Manage/AssetManage/Component/ImportAssetDrawer.jsx
View file @
c05a17c5
...
...
@@ -129,7 +129,7 @@ const ImportAssetDrawer = (props) => {
const
handleOk
=
()
=>
{
if
((
fileList
||
[]).
length
===
0
)
{
showMessage
(
'info'
,
'请先选择模
版
上传'
);
showMessage
(
'info'
,
'请先选择模
板
上传'
);
return
;
}
...
...
@@ -182,7 +182,7 @@ const ImportAssetDrawer = (props) => {
<Form layout='inline'>
<Form.Item label='Excel导入:'>
<Button className='mr-2' icon={<DownloadOutlined />} onClick={ downloadTemplate }>
模
版
下载
模
板
下载
</Button>
<Upload style={{ display: 'inline' }} {...uploadProps }>
<Button icon={
...
...
src/view/Manage/AssetManage/Component/ImportDirectory.jsx
View file @
c05a17c5
...
...
@@ -143,7 +143,7 @@ const ImportDirectory = (props) => {
onCancel=
{
()
=>
{
onCancel
&&
onCancel
()
}
}
footer=
{
<
Space
>
<
Button
type=
"primary"
onClick=
{
download
}
>
模
版
下载
</
Button
>
<
Button
type=
"primary"
onClick=
{
download
}
>
模
板
下载
</
Button
>
<
Button
type=
"primary"
onClick=
{
()
=>
{
upload
(
false
);
}
}
loading=
{
uploading
}
>
上传
</
Button
>
<
Button
onClick=
{
()
=>
{
onCancel
&&
onCancel
()
}
}
>
返回
</
Button
>
</
Space
>
...
...
src/view/Manage/AssetManage/Component/ImportElement.jsx
View file @
c05a17c5
...
...
@@ -35,7 +35,7 @@ const ImportElement = (props) => {
const
handleOk
=
()
=>
{
if
((
fileList
||
[]).
length
===
0
)
{
showMessage
(
'info'
,
'请先选择模
版
上传'
);
showMessage
(
'info'
,
'请先选择模
板
上传'
);
return
;
}
...
...
@@ -73,7 +73,7 @@ const ImportElement = (props) => {
>
<
div
>
<
Button
icon=
{
<
DownloadOutlined
/>
}
onClick=
{
downloadTemplate
}
>
模
版
下载
模
板
下载
</
Button
>
</
div
>
<
div
className=
'mt-3'
>
...
...
src/view/Manage/DataMaster/Define/Component/DefineTable.jsx
View file @
c05a17c5
...
...
@@ -56,7 +56,7 @@ const DefineTable = (props) => {
ellipsis
:
true
,
},
{
title
:
'模
版
名称'
,
title
:
'模
板
名称'
,
dataIndex
:
'name'
,
width
:
200
,
ellipsis
:
true
,
...
...
@@ -65,7 +65,7 @@ const DefineTable = (props) => {
},
},
{
title
:
'模
版
中文名称'
,
title
:
'模
板
中文名称'
,
dataIndex
:
'cnName'
,
width
:
200
,
ellipsis
:
true
,
...
...
@@ -77,7 +77,7 @@ const DefineTable = (props) => {
ellipsis
:
true
,
},
{
title
:
'模
版
描述'
,
title
:
'模
板
描述'
,
dataIndex
:
'comment'
,
width
:
200
,
ellipsis
:
true
,
...
...
@@ -185,7 +185,7 @@ const DefineTable = (props) => {
<
Button
onClick=
{
onAddClick
}
>
新建
</
Button
>
</
Space
>
<
Space
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择模
版
'
:
''
}
>
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择模
板
'
:
''
}
>
<
Button
onClick=
{
onBatchDeleteClick
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
loading=
{
deleteLoading
}
>
删除
</
Button
>
</
Tooltip
>
</
Space
>
...
...
src/view/Manage/DataMaster/Define/Component/DefineTree.jsx
View file @
c05a17c5
...
...
@@ -159,7 +159,7 @@ const DefineTree = (props) => {
const
deleteNode
=
()
=>
{
modal
.
confirm
({
title
:
'提示!'
,
content
:
'删除目录会删除相关的模
版
,您确定删除吗?'
,
content
:
'删除目录会删除相关的模
板
,您确定删除吗?'
,
onOk
:
()
=>
{
setLoading
(
true
);
dispatch
({
...
...
src/view/Manage/DataMaster/Define/Component/UpdateBasicInfo.jsx
View file @
c05a17c5
...
...
@@ -26,17 +26,17 @@ const UpdateBasicInfo = (props) => {
>
<
Row
gutter=
{
10
}
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
>
<
Form
.
Item
label=
'中文名称'
name=
'cnName'
rules=
{
[{
required
:
true
,
message
:
'请填写模
版
中文名称'
}]
}
>
<
Form
.
Item
label=
'中文名称'
name=
'cnName'
rules=
{
[{
required
:
true
,
message
:
'请填写模
板
中文名称'
}]
}
>
<
Input
/>
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
>
<
Form
.
Item
label=
'英文名称'
name=
'name'
rules=
{
[{
required
:
true
,
message
:
'请填写模
版
名称'
}]
}
>
<
Form
.
Item
label=
'英文名称'
name=
'name'
rules=
{
[{
required
:
true
,
message
:
'请填写模
板
名称'
}]
}
>
<
Input
/>
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
>
<
Form
.
Item
label=
'模
版
描述'
name=
'comment'
>
<
Form
.
Item
label=
'模
板
描述'
name=
'comment'
>
<
TextArea
row=
{
4
}
/>
</
Form
.
Item
>
</
Col
>
...
...
@@ -44,7 +44,7 @@ const UpdateBasicInfo = (props) => {
</
Form
>
:
<
Descriptions
column=
{
2
}
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
中文名称
</
div
>
}
>
{
template
?.
cnName
||
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
英文名称
</
div
>
}
>
{
template
?.
name
||
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
模
版
描述
</
div
>
}
>
{
template
?.
comment
||
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
模
板
描述
</
div
>
}
>
{
template
?.
comment
||
''
}
</
Descriptions
.
Item
>
</
Descriptions
>
}
</
div
>
...
...
src/view/Manage/DataMaster/Define/Component/UpdateTemplateModal.jsx
View file @
c05a17c5
...
...
@@ -28,14 +28,14 @@ export const UpdateTemplateModal = (props) => {
const
title
=
useMemo
(()
=>
{
if
(
action
===
'add'
)
{
return
'新建模
版
'
;
return
'新建模
板
'
;
}
if
(
action
===
'detail'
)
{
return
'模
版
详情'
;
return
'模
板
详情'
;
}
if
(
action
===
'update'
)
{
return
'编辑模
版
'
;
return
'编辑模
板
'
;
}
return
''
;
},
[
action
])
...
...
src/view/Manage/DataMaster/Manage/Component/ImportDataDrawer.jsx
View file @
c05a17c5
...
...
@@ -229,7 +229,7 @@ const ImportDataDrawer = (props) => {
</
Form
.
Item
>
<
Form
.
Item
>
<
Button
icon=
{
<
DownloadOutlined
/>
}
onClick=
{
downloadTemplate
}
>
模
版
下载
模
板
下载
</
Button
>
</
Form
.
Item
>
</
Form
>
...
...
src/view/Manage/Model/Component/ImportExcel.jsx
View file @
c05a17c5
...
...
@@ -79,7 +79,7 @@ class ImportExcel extends React.Component {
</
Col
>
<
Col
span=
{
6
}
>
<
Button
icon=
{
<
DownloadOutlined
/>
}
onClick=
{
this
.
downloadTemplate
}
>
模
版
下载
模
板
下载
</
Button
>
</
Col
>
</
Row
>
...
...
src/view/Manage/ModelConfig/Component/EditTemplate.jsx
View file @
c05a17c5
...
...
@@ -79,11 +79,11 @@ const EditTemplate = (props) => {
let
title
=
''
;
if
(
action
===
'add'
)
{
title
=
'新增模
版
'
;
title
=
'新增模
板
'
;
}
else
if
(
action
===
'edit'
)
{
title
=
'模
版
编辑'
;
title
=
'模
板
编辑'
;
}
else
if
(
action
===
'detail'
)
{
title
=
'模
版
详情'
;
title
=
'模
板
详情'
;
}
let
actionsBtn
=
null
;
...
...
src/view/Manage/ModelConfig/Component/PartitionCURD.jsx
View file @
c05a17c5
...
...
@@ -170,7 +170,7 @@ const PartitionCURD = (props) => {
}
},
callback
:
()
=>
{
showMessage
(
'success'
,
'模
版
分区成功'
);
showMessage
(
'success'
,
'模
板
分区成功'
);
getPartitions
();
}
})
...
...
src/view/Manage/ModelConfig/Component/TemplateAction.jsx
View file @
c05a17c5
...
...
@@ -78,7 +78,7 @@ const TemplateAction = (props) => {
});
}
//模
版
不需要对字段进行校验
//模
板
不需要对字段进行校验
const
onTableChange
=
(
data
)
=>
{
let
newTemplateData
=
{...
templateData
,
...{
easyDataModelerDataModelAttributes
:
data
}};
...
...
src/view/Manage/ModelConfig/Component/TemplateCURD.jsx
View file @
c05a17c5
...
...
@@ -35,7 +35,7 @@ const TemplateCURD = (props) => {
width
:
60
,
},
{
title
:
'模
版
名称'
,
title
:
'模
板
名称'
,
dataIndex
:
'name'
,
width
:
180
,
ellipsis
:
true
,
...
...
@@ -56,7 +56,7 @@ const TemplateCURD = (props) => {
ellipsis
:
true
,
},
{
title
:
'模
版
描述'
,
title
:
'模
板
描述'
,
dataIndex
:
'remark'
,
ellipsis
:
true
,
},
...
...
@@ -124,7 +124,7 @@ const TemplateCURD = (props) => {
const
deleteItem
=
(
record
)
=>
{
modal
.
confirm
({
title
:
'提示!'
,
content
:
'您确定要删除该模
版
吗?'
,
content
:
'您确定要删除该模
板
吗?'
,
onOk
:
()
=>
{
dispatch
({
type
:
'datamodel.deleteTemplate'
,
...
...
@@ -134,7 +134,7 @@ const TemplateCURD = (props) => {
}
},
callback
:
()
=>
{
showMessage
(
'success'
,
'模
版
删除成功'
);
showMessage
(
'success'
,
'模
板
删除成功'
);
getTemplates
();
}
})
...
...
src/view/Manage/ModelConfig/Component/WordTemplate.jsx
View file @
c05a17c5
...
...
@@ -75,7 +75,7 @@ const WordTemplate = (props) => {
return
(
<
Form
form=
{
form
}
{
...
layout
}
onFinish=
{
handleOk
}
>
<
Form
.
Item
label=
'最新模
版
上传'
label=
'最新模
板
上传'
required=
{
true
}
>
<
Row
>
...
...
@@ -101,7 +101,7 @@ const WordTemplate = (props) => {
</
Col
>
<
Col
>
<
Button
className=
'ml-3'
icon=
{
<
DownloadOutlined
/>
}
onClick=
{
downloadTemplate
}
>
模
版
下载
模
板
下载
</
Button
>
</
Col
>
</
Row
>
...
...
src/view/Manage/ModelConfig/index.jsx
View file @
c05a17c5
...
...
@@ -20,7 +20,7 @@ const ModelConfig = () => {
return
(
<
div
className=
'model-config'
>
<
Tabs
activeKey=
{
tabKey
}
onChange=
{
onTabChange
}
>
<
TabPane
tab=
'Word模
版
配置'
key=
'1'
>
<
TabPane
tab=
'Word模
板
配置'
key=
'1'
>
<
WordTemplate
/>
</
TabPane
>
<
TabPane
tab=
'生成表类型配置'
key=
'2'
>
...
...
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