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
5ea9a62a
Commit
5ea9a62a
authored
Apr 24, 2022
by
hangjun83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1、修复分页功能 2、增加查看日志
parent
4f74f3b2
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
46 additions
and
9 deletions
+46
-9
front/src/api/index.js
front/src/api/index.js
+5
-1
front/src/views/sys/role-manage/roleManage.vue
front/src/views/sys/role-manage/roleManage.vue
+1
-0
front/src/views/sys/user-manage/userManage.vue
front/src/views/sys/user-manage/userManage.vue
+2
-0
front/src/views/tools/bh/sorders-refund.vue
front/src/views/tools/bh/sorders-refund.vue
+38
-8
No files found.
front/src/api/index.js
View file @
5ea9a62a
...
...
@@ -146,6 +146,7 @@ export const getBhSordersDataDetail = (params) => {
}
export
const
getBhSordersRefundTask
=
(
params
)
=>
{
params
.
type
=
'
sorder_refund
'
return
getRequest
(
'
/tools/bh/getBhSorderRefundTask
'
,
params
)
}
...
...
@@ -153,7 +154,10 @@ export const execBhSordersRefundTask = (params) => {
return
postRequest
(
'
/tools/bh/execBhSorderRefundTask
'
,
params
)
}
/*=================== 工具类相关接口 结束================================ */
export
const
getSorderRefundTaskLogs
=
(
params
)
=>
{
return
postRequest
(
'
/tools/bh/getSorderRefundTaskLogs
'
,
params
)
}
// 加载数据
...
...
front/src/views/sys/role-manage/roleManage.vue
View file @
5ea9a62a
...
...
@@ -308,6 +308,7 @@ export default {
},
changePage
(
v
)
{
this
.
searchForm
.
pageNumber
=
v
;
this
.
searchForm
.
page
=
v
;
this
.
getDataList
();
this
.
clearSelectAll
();
},
...
...
front/src/views/sys/user-manage/userManage.vue
View file @
5ea9a62a
...
...
@@ -298,6 +298,7 @@ export default {
},
changePage
(
v
)
{
this
.
searchForm
.
pageNumber
=
v
;
this
.
searchForm
.
page
=
v
;
this
.
getDataList
();
this
.
clearSelectAll
();
},
...
...
@@ -328,6 +329,7 @@ export default {
},
handleSearch
()
{
this
.
searchForm
.
pageNumber
=
1
;
this
.
searchForm
.
page
=
1
;
this
.
searchForm
.
pageSize
=
10
;
this
.
searchForm
.
buttonAction
=
'
search
'
this
.
getDataList
();
...
...
front/src/views/tools/bh/sorders-refund.vue
View file @
5ea9a62a
...
...
@@ -92,10 +92,12 @@ export default {
searchForm
:
{
pageNumber
:
1
,
pageSize
:
10
,
page
:
1
,
},
searchSorderForm
:
{
pageNumber
:
1
,
pageSize
:
10
,
page
:
1
,
},
formValidate
:
{
// 表单验证规则
...
...
@@ -199,7 +201,7 @@ export default {
},
{
title
:
"
更新日期
"
,
key
:
"
updated
a
t
"
,
key
:
"
updated
A
t
"
,
minWidth
:
125
,
},
{
...
...
@@ -223,7 +225,7 @@ export default {
"
手动执行
"
);
}
/*
if (params.row.status == 'notexec') {
if
(
params
.
row
.
status
==
'
notexec
'
)
{
edit
=
h
(
"
a
"
,
{
on
:
{
...
...
@@ -234,14 +236,25 @@ export default {
},
"
编辑
"
);
}
*/
}
return
h
(
"
div
"
,
[
execJob
,
/*
h("Divider", {
h
(
"
Divider
"
,
{
props
:
{
type
:
"
vertical
"
,
},
}),*/
}),
edit
,
h
(
"
a
"
,
{
on
:
{
click
:
()
=>
{
this
.
showLog
(
params
.
row
);
},
},
},
"
查看日志
"
)
]);
},
}
...
...
@@ -414,6 +427,7 @@ export default {
this
.
searchData
=
res
.
data
;
if
(
this
.
searchData
.
length
==
0
&&
this
.
searchSorderForm
.
pageNumber
>
1
)
{
this
.
searchSorderForm
.
pageNumber
-=
1
;
this
.
searchSorderForm
.
page
=
res
.
data
.
page
this
.
getSorderDetail
();
}
}
...
...
@@ -441,8 +455,8 @@ export default {
},
changePage
(
v
)
{
this
.
searchForm
.
pageNumber
=
v
;
this
.
searchForm
.
page
=
v
;
this
.
getDataList
();
this
.
clearSelectAll
();
},
changePageSize
(
v
)
{
this
.
searchForm
.
pageSize
=
v
;
...
...
@@ -468,6 +482,7 @@ export default {
this
.
$Message
.
success
(
"
操作成功
"
);
this
.
$emit
(
"
on-submit
"
,
true
);
this
.
showAddSorderTask
=
false
;
this
.
getDataList
()
}
});
}
...
...
@@ -482,12 +497,13 @@ export default {
this
.
form
.
taskId
=
v
.
id
execBhSordersRefundTask
(
this
.
form
).
then
((
res
)
=>
{
this
.
submitLoading
=
false
;
this
.
$Modal
.
remove
();
if
(
res
.
status
==
'
success
'
)
{
this
.
$Message
.
success
(
"
操作成功
"
);
this
.
$emit
(
"
on-submit
"
,
true
);
this
.
showAddSorderTask
=
false
;
this
.
getDataList
()
}
this
.
getDataList
()
});
},
});
...
...
@@ -501,7 +517,6 @@ export default {
}
let
str
=
JSON
.
stringify
(
v
);
let
data
=
JSON
.
parse
(
str
);
console
.
info
(
data
)
let
content
=
JSON
.
parse
(
data
.
execContent
)
this
.
form
.
itemId
=
content
.
item_id
this
.
form
.
name
=
data
.
name
...
...
@@ -511,6 +526,21 @@ export default {
this
.
showAddSorderTask
=
true
;
},
showLog
(
v
)
{
this
.
searchLoading
=
true
;
getSorderRefundTaskLogs
({
'
taskId
'
:
this
.
v
.
id
}).
then
((
res
)
=>
{
this
.
searchLoading
=
false
;
if
(
res
.
status
==
'
success
'
)
{
this
.
searchData
=
res
.
data
;
if
(
this
.
searchData
.
length
==
0
&&
this
.
searchSorderForm
.
pageNumber
>
1
)
{
this
.
searchSorderForm
.
pageNumber
-=
1
;
this
.
getSorderDetail
();
}
}
});
},
},
mounted
()
{
// 计算高度
...
...
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