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
4005b344
Commit
4005b344
authored
Mar 25, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
任务删除提示
parent
bfb62e3f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
6 deletions
+24
-6
datamodeler.js
src/service/datamodeler.js
+2
-2
axios.js
src/util/axios.js
+9
-0
task-manage.jsx
src/view/Manage/ModelCompare/task-manage.jsx
+13
-4
No files found.
src/service/datamodeler.js
View file @
4005b344
import
{
PostFile
,
GetJSON
,
PostJSON
,
Post
,
Get
,
Delete
,
Delete1
}
from
"../util/axios"
import
{
PostFile
,
GetJSON
,
PostJSON
,
Post
,
Get
,
Delete
,
Delete1
,
Delete2
}
from
"../util/axios"
export
function
loadDataModelCatalog
()
{
return
GetJSON
(
"/datamodeler/easyDataModelerCURD/loadDataModelCatalog"
);
...
...
@@ -454,7 +454,7 @@ export function updateCompareJob(payload) {
}
export
function
deleteCompareJobs
(
payload
)
{
return
Delete
(
"/datamodeler/easyDataModelModelCompareJob/delModelCompareJobs"
,
payload
)
return
Delete
2
(
"/datamodeler/easyDataModelModelCompareJob/delModelCompareJobs"
,
payload
)
}
export
function
runCompareJob
(
payload
)
{
...
...
src/util/axios.js
View file @
4005b344
...
...
@@ -137,6 +137,15 @@ export function Delete1(url, payload) {
)
}
export
function
Delete2
(
url
,
params
)
{
const
cancelToken
=
__source
?
__source
.
token
:
null
;
return
textplain
.
delete
(
url
,
{
params
,
cancelToken
,
}).
then
(
callback
)
}
export
function
PostJSON
(
url
,
payload
)
{
const
{
params
=
null
,
data
=
null
}
=
payload
||
{};
const
cancelToken
=
__source
?
__source
.
token
:
null
;
...
...
src/view/Manage/ModelCompare/task-manage.jsx
View file @
4005b344
...
...
@@ -4,7 +4,7 @@ import { Space, Button, Select, Input, Tooltip, Modal, Row, Typography } from 'a
import
{
defaultPage
}
from
'../../../util/hooks/page'
import
Table
from
'../../../util/Component/Table'
import
{
dispatch
}
from
'../../../model'
import
{
generateUUID
,
paginate
,
showMessage
}
from
'../../../util'
import
{
generateUUID
,
paginate
,
showMessage
,
showNotifaction
}
from
'../../../util'
import
UpdateTask
from
'./update-task'
import
ColConfig
from
'./col-config'
...
...
@@ -244,7 +244,12 @@ const FC = (props) => {
modelCompareJobIds
:
(
selectedRows
??[]).
map
(
item
=>
item
.
id
).
toString
()
},
callback
:
data
=>
{
showMessage
(
'success'
,
'删除成功'
)
if
(
data
)
{
showNotifaction
(
'提示'
,
data
,
5
)
}
else
{
showMessage
(
'success'
,
'删除成功'
)
}
setSelectedRows
()
getTasks
()
}
...
...
@@ -297,8 +302,12 @@ const FC = (props) => {
modelCompareJobIds
:
record
?.
id
},
callback
:
data
=>
{
showMessage
(
'success'
,
'删除成功'
)
getTasks
()
if
(
data
)
{
showNotifaction
(
'提示'
,
data
,
5
)
}
else
{
showMessage
(
'success'
,
'删除成功'
)
getTasks
()
}
}
})
}
...
...
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