Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
O
openApi
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hj
openApi
Commits
574d9d6c
Commit
574d9d6c
authored
Apr 25, 2022
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、增加任务删除功能
parent
b6ac6bd4
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
62 additions
and
23 deletions
+62
-23
front/src/api/index.js
front/src/api/index.js
+3
-0
front/src/styles/table-common.less
front/src/styles/table-common.less
+1
-1
front/src/styles/tree-common.less
front/src/styles/tree-common.less
+1
-2
front/src/views/main.less
front/src/views/main.less
+2
-2
front/src/views/tools/bh/sorders-refund.vue
front/src/views/tools/bh/sorders-refund.vue
+55
-18
No files found.
front/src/api/index.js
View file @
574d9d6c
...
...
@@ -144,6 +144,9 @@ export const addSorderRefundTask = (params) => {
export
const
editSorderRefundTask
=
(
params
)
=>
{
return
postRequest
(
'
/tools/bh/editSorderRefundTask
'
,
params
)
}
export
const
delSorderRefundTask
=
(
params
)
=>
{
return
postRequest
(
'
/tools/bh/delSorderRefundTask
'
,
params
)
}
export
const
getBhSordersDataDetail
=
(
params
)
=>
{
return
postRequest
(
'
/tools/bh/getBhSordersDetail
'
,
params
)
...
...
front/src/styles/table-common.less
View file @
574d9d6c
...
...
@@ -28,7 +28,7 @@
.tree-list {
position: relative;
min-height:
8
0px;
min-height:
5
0px;
}
.drawer-footer {
...
...
front/src/styles/tree-common.less
View file @
574d9d6c
.search {
.operation {
margin-bottom: 2vh;
height: 80vh;
overflow-y: auto;
}
.content {
margin-bottom: 2vh;
height:
80
vh;
height:
56
vh;
width: 50vw;
}
...
...
front/src/views/main.less
View file @
574d9d6c
...
...
@@ -363,7 +363,7 @@
position: relative;
margin: 10px 0px 0px;
background-color: #fff;
border:
1
px;
border:
0
px;
.ivu-table-wrapper {
border: 0px;
...
...
@@ -371,7 +371,7 @@
.ivu-table-border td {
border-color: #f9f9f9;
height:
12
0px;
height:
7
0px;
}
.ivu-table-tip td {
...
...
front/src/views/tools/bh/sorders-refund.vue
View file @
574d9d6c
...
...
@@ -8,7 +8,7 @@
<Row>
<Button
@
click=
"add"
type=
"primary"
size=
"large"
icon=
"md-add"
>
添加任务
</Button>
</Row>
<Table
:loading=
"loading"
class=
"tableInfoBox"
stripe
:columns=
"columns"
:data=
"data"
sortable=
"custom"
ref=
"table"
></Table>
<Table
border
:loading=
"loading"
class=
"tableInfoBox"
stripe
:columns=
"columns"
:data=
"data"
sortable=
"custom"
ref=
"table"
></Table>
<Row
type=
"flex"
justify=
"end"
class=
"page"
>
<Page
:current=
"searchForm.pageNumber"
:total=
"total"
:page-size=
"searchForm.pageSize"
@
on-change=
"changePage"
@
on-page-size-change=
"changePageSize"
:page-size-opts=
"[10, 20, 50]"
size=
"small"
show-total
show-elevator
show-sizer
></Page>
</Row>
...
...
@@ -86,7 +86,8 @@ import {
execBhSordersRefundTask
,
getSorderRefundTaskLogs
,
getBhSordersDetail
,
editSorderRefundTask
editSorderRefundTask
,
delSorderRefundTask
}
from
"
@/api/index
"
;
import
util
from
"
@/libs/util.js
"
;
export
default
{
...
...
@@ -226,8 +227,9 @@ export default {
render
:
(
h
,
params
)
=>
{
let
execJob
=
""
;
let
edit
=
""
;
let
del
=
""
;
if
(
params
.
row
.
status
!=
'
finish
'
)
{
execJob
=
h
(
execJob
=
h
(
"
span
"
,[
h
(
"
a
"
,
{
on
:
{
click
:
()
=>
{
...
...
@@ -236,32 +238,48 @@ export default {
},
},
"
手动执行
"
);
),
h
(
"
divider
"
,
{
props
:
{
type
:
"
vertical
"
,
},
}),
]);
}
if
(
params
.
row
.
status
==
'
notexec
'
)
{
edit
=
h
(
edit
=
h
(
"
span
"
,
[
h
(
"
a
"
,
{
on
:
{
click
:
()
=>
{
this
.
edit
(
params
.
row
);
},
},
},
"
编辑
"
),
h
(
"
divider
"
,
{
props
:
{
type
:
"
vertical
"
,
},
}),
h
(
"
a
"
,
{
on
:
{
click
:
()
=>
{
this
.
edit
(
params
.
row
);
this
.
del
(
params
.
row
);
},
},
},
"
编辑
"
)
},
"
删除
"
),
h
(
"
divider
"
,
{
props
:
{
type
:
"
vertical
"
,
},
}),
]);
}
return
h
(
"
div
"
,
[
execJob
,
h
(
"
divider
"
,
{
props
:
{
type
:
"
vertical
"
,
},
}),
edit
,
h
(
"
divider
"
,
{
props
:
{
type
:
"
vertical
"
,
},
}),
h
(
"
a
"
,
{
on
:
{
...
...
@@ -553,6 +571,25 @@ export default {
},
});
},
del
(
v
)
{
this
.
$Modal
.
confirm
({
title
:
"
确认删除该记录
"
,
content
:
"
您确认要删除该任务? 执行后数据不可恢复
"
,
loading
:
true
,
onOk
:
()
=>
{
this
.
form
.
taskId
=
v
.
id
delSorderRefundTask
(
this
.
form
).
then
((
res
)
=>
{
this
.
submitLoading
=
false
;
this
.
$Modal
.
remove
();
if
(
res
.
status
==
'
success
'
)
{
this
.
$Message
.
success
(
"
操作成功
"
);
this
.
$emit
(
"
on-submit
"
,
true
);
}
this
.
getDataList
()
});
},
});
},
edit
(
v
)
{
// 转换null为""
for
(
let
attr
in
v
)
{
...
...
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