Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
web-tool
Project
Project
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
tool
web-tool
Commits
bd54ad82
Commit
bd54ad82
authored
Aug 07, 2023
by
陈祥烨
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
应用导出前端界面优化
parent
ceb7907f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
12 deletions
+17
-12
DeleteView.js
packages/graphmod-atl/src/demo1/DeleteView.js
+5
-8
DownloadView.js
packages/graphmod-atl/src/download/DownloadView.js
+4
-3
api.js
packages/graphmod-utils/src/api.js
+8
-1
No files found.
packages/graphmod-atl/src/demo1/DeleteView.js
View file @
bd54ad82
...
@@ -5,8 +5,9 @@ import * as api from '../api';
...
@@ -5,8 +5,9 @@ import * as api from '../api';
import
{
connectGlobalPage
}
from
'@gm/graphmod-common'
;
import
{
connectGlobalPage
}
from
'@gm/graphmod-common'
;
import
ExecuteProgress
from
'./ExecuteProgress'
;
import
ExecuteProgress
from
'./ExecuteProgress'
;
import
DeleteModel
from
'./DeleteModel'
;
import
DeleteModel
from
'./DeleteModel'
;
import
{
tempDownload
}
from
'@gm/graphmod-utils/src/api'
;
const
{
deleteByAgencyCode
}
=
api
;
import
{
LocationParam
}
from
'amos-tool'
;
/**
/**
* 导出sql脚本模块
* 导出sql脚本模块
...
@@ -57,16 +58,12 @@ class DeleteView extends Component {
...
@@ -57,16 +58,12 @@ class DeleteView extends Component {
handleItemClick
=
()
=>
{
handleItemClick
=
()
=>
{
const
{
selectedRowKeys
=
[],
dataConfig
,
record
}
=
this
.
props
;
const
{
selectedRowKeys
=
[],
dataConfig
,
record
}
=
this
.
props
;
if
(
selectedRowKeys
.
length
>
0
||
record
)
{
const
ipSeq
=
LocationParam
.
getLocationParamByName
(
'ipSeq'
);
this
.
setState
({
selectId
:
selectedRowKeys
.
length
===
0
?
record
.
id
??
record
.
sequenceNbr
:
''
,
logsVisible
:
true
},
()
=>
{
this
.
setState
({
selectId
:
selectedRowKeys
.
length
===
0
?
record
.
id
??
record
.
sequenceNbr
:
''
,
logsVisible
:
true
},
()
=>
{
if
(
dataConfig
.
sequenceNbrs
&&
(
selectedRowKeys
.
length
>
0
||
record
))
{
dataConfig
[
dataConfig
.
sequenceNbrs
]
=
(
record
?
record
.
id
??
record
.
sequenceNbr
:
null
)
||
selectedRowKeys
.
join
(
','
);
dataConfig
[
dataConfig
.
sequenceNbrs
]
=
(
record
?
record
.
id
??
record
.
sequenceNbr
:
null
)
||
selectedRowKeys
.
join
(
','
);
deleteByAgencyCode
({
agencyCodeId
:
dataConfig
.
agencyCodeId
,
sequenceNbrs
:
dataConfig
.
sequenceNbrs
});
tempDownload
({
agencyCodeId
:
dataConfig
.
agencyCodeId
,
sequenceNbrs
:
dataConfig
.
sequenceNbrs
,
ipSeq
});
}
});
});
}
else
{
briskWarningTip
(
'至少选择一个数据库和一个机构'
);
}
// const { selectedRowKeys = [], dataConfig, record } = this.props;
// const { selectedRowKeys = [], dataConfig, record } = this.props;
// if (selectedRowKeys.length === 0 ) {
// if (selectedRowKeys.length === 0 ) {
...
...
packages/graphmod-atl/src/download/DownloadView.js
View file @
bd54ad82
...
@@ -5,9 +5,9 @@ import { Icon } from 'amos-framework';
...
@@ -5,9 +5,9 @@ import { Icon } from 'amos-framework';
import
{
api
}
from
'@gm/graphmod-utils'
;
import
{
api
}
from
'@gm/graphmod-utils'
;
import
{
connectGlobalPage
}
from
'@gm/graphmod-common'
;
import
{
connectGlobalPage
}
from
'@gm/graphmod-common'
;
import
ExecuteProgress
from
'./ExecuteProgress'
;
import
ExecuteProgress
from
'./ExecuteProgress'
;
import
{
LocationParam
}
from
'amos-tool'
;
const
{
templateDownload
}
=
api
;
const
{
tempDownload
}
=
api
;
/**
/**
* 导出sql脚本模块
* 导出sql脚本模块
* @class DownloadView
* @class DownloadView
...
@@ -45,11 +45,12 @@ class DownloadView extends Component {
...
@@ -45,11 +45,12 @@ class DownloadView extends Component {
handleItemClick
=
()
=>
{
handleItemClick
=
()
=>
{
const
{
selectedRowKeys
=
[],
dataConfig
,
record
}
=
this
.
props
;
const
{
selectedRowKeys
=
[],
dataConfig
,
record
}
=
this
.
props
;
const
ipSeq
=
LocationParam
.
getLocationParamByName
(
'ipSeq'
)
if
(
selectedRowKeys
.
length
>
0
||
record
)
{
if
(
selectedRowKeys
.
length
>
0
||
record
)
{
this
.
setState
({
selectId
:
selectedRowKeys
.
length
===
0
?
record
.
id
??
record
.
sequenceNbr
:
selectedRowKeys
[
0
],
logsVisible
:
true
},
()
=>
{
this
.
setState
({
selectId
:
selectedRowKeys
.
length
===
0
?
record
.
id
??
record
.
sequenceNbr
:
selectedRowKeys
[
0
],
logsVisible
:
true
},
()
=>
{
if
(
dataConfig
.
dimension
&&
(
selectedRowKeys
.
length
>
0
||
record
))
{
if
(
dataConfig
.
dimension
&&
(
selectedRowKeys
.
length
>
0
||
record
))
{
dataConfig
[
dataConfig
.
dimension
]
=
(
record
?
record
.
id
??
record
.
sequenceNbr
:
null
)
||
selectedRowKeys
.
join
(
','
);
dataConfig
[
dataConfig
.
dimension
]
=
(
record
?
record
.
id
??
record
.
sequenceNbr
:
null
)
||
selectedRowKeys
.
join
(
','
);
temp
lateDownload
({
resourceCode
:
dataConfig
.
resourceCode
,
dimension
:
dataConfig
.
dimension
,
[
dataConfig
.
dimension
]:
dataConfig
[
dataConfig
.
dimension
]
});
temp
Download
({
resourceCode
:
dataConfig
.
resourceCode
,
dimension
:
dataConfig
.
dimension
,
[
dataConfig
.
dimension
]:
dataConfig
[
dataConfig
.
dimension
],
ipSeq
});
}
}
});
});
}
else
{
}
else
{
...
...
packages/graphmod-utils/src/api.js
View file @
bd54ad82
...
@@ -37,7 +37,7 @@ export const UrlConsts = {
...
@@ -37,7 +37,7 @@ export const UrlConsts = {
processListUrl
:
()
=>
completePrefix
(
baseURI
,
'workflow/processDefinition/list/all'
),
// 获取所有的的流程
processListUrl
:
()
=>
completePrefix
(
baseURI
,
'workflow/processDefinition/list/all'
),
// 获取所有的的流程
getFlowUrl
:
()
=>
completePrefix
(
baseURI
,
'workflow/processDefinition/image?processDefinitionId={processDefinitionId}'
),
// 根据流程实例id获取流程图 get
getFlowUrl
:
()
=>
completePrefix
(
baseURI
,
'workflow/processDefinition/image?processDefinitionId={processDefinitionId}'
),
// 根据流程实例id获取流程图 get
remoteUrl
:
completePrefix
(
baseURI
,
'morphic/biz/url'
),
// 请求第三方系统 api, post,需要传入第三方api 地址
remoteUrl
:
completePrefix
(
baseURI
,
'morphic/biz/url'
),
// 请求第三方系统 api, post,需要传入第三方api 地址
generateSqlUrl
:
url
=>
completePrefix
(
baseURI
,
'
studio
/v1/dataApi/generateSQL'
)
// 通用导出SQL脚本 get
generateSqlUrl
:
url
=>
completePrefix
(
baseURI
,
'
atl
/v1/dataApi/generateSQL'
)
// 通用导出SQL脚本 get
};
};
/**
/**
* 根据字典标识获取字典列表
* 根据字典标识获取字典列表
...
@@ -231,3 +231,10 @@ export const invokeRemoteApi = (data) => {
...
@@ -231,3 +231,10 @@ export const invokeRemoteApi = (data) => {
export
const
templateDownload
=
(
params
)
=>
{
export
const
templateDownload
=
(
params
)
=>
{
return
fileDownload
({
url
:
formatObjUrl
({
url
:
UrlConsts
.
generateSqlUrl
(),
filter
:
params
})
});
return
fileDownload
({
url
:
formatObjUrl
({
url
:
UrlConsts
.
generateSqlUrl
(),
filter
:
params
})
});
};
};
/**
* 通用应用、数据SQL脚本
*/
export
const
tempDownload
=
(
params
)
=>
{
return
fileDownload
({
url
:
formatObjUrl
({
url
:
UrlConsts
.
generateSqlUrl
(),
filter
:
params
})
});
};
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