Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haobanDevOps
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
office
haobanDevOps
Commits
767c8380
Commit
767c8380
authored
Oct 22, 2019
by
Kyle_Li
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
.
parent
28660783
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
176 additions
and
0 deletions
+176
-0
index.js
src/router/index.js
+5
-0
api-retry.vue
src/views/haoban/api-retry.vue
+171
-0
No files found.
src/router/index.js
View file @
767c8380
...
@@ -61,6 +61,11 @@ export const constantRouterMap = [
...
@@ -61,6 +61,11 @@ export const constantRouterMap = [
path
:
'/suggestDetail'
,
path
:
'/suggestDetail'
,
name
:
'用户反馈详情'
,
name
:
'用户反馈详情'
,
component
:
_import
(
'haoban'
,
'suggestDetail'
)
component
:
_import
(
'haoban'
,
'suggestDetail'
)
},
{
path
:
'/api-retry'
,
name
:
'接口重试'
,
component
:
_import
(
'haoban'
,
'api-retry'
)
}
}
]
]
},
},
...
...
src/views/haoban/api-retry.vue
0 → 100644
View file @
767c8380
<
template
>
<div
id=
"api-retry"
>
<!-- eslint-disable -->
<header>
<el-date-picker
v-model=
"searchData.date"
type=
"daterange"
range-separator=
"~"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
value-format=
"yyyy-MM-dd"
style=
"width: 400px"
@
change=
"onSearchDataChange"
>
</el-date-picker>
</header>
<!-- 表格 -->
<el-table
v-loading=
"load"
ref=
"multipleTable"
:data=
"tableData"
tooltip-effect=
"dark"
style=
"width: 100%"
>
<el-table-column
label=
"品牌"
show-overflow-tooltip
>
<template
slot-scope=
"
{row}">
{{
row
.
i
}}
</
template
>
</el-table-column>
<el-table-column
label=
"接口名称"
show-overflow-tooltip
>
<
template
slot-scope=
"{row}"
>
{{
row
.
fieldName
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"重试状态"
show-overflow-tooltip
>
<
template
slot-scope=
"{row}"
>
{{
row
.
triggerCuInfo
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"失败原因"
show-overflow-tooltip
>
<
template
slot-scope=
"{row}"
>
{{
row
.
targetCuInfo
||
'--'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"时间"
>
<
template
slot-scope=
"{row}"
>
<div
class=
"twoLine"
>
{{
row
.
beforeData
||
'--'
}}
</div>
</
template
>
</el-table-column>
<el-table-column
label=
"操作"
>
<
template
slot-scope=
"{row}"
>
<el-button
type=
"text"
@
click
.
prevent
.
native=
"retry(row.a)"
>
重试
</el-button>
</
template
>
</el-table-column>
</el-table>
<!-- 分页 -->
<el-pagination
v-if=
"tableData.length > 0"
background
@
size-change=
"handleSizeChange"
@
current-change=
"handleCurrentChange"
:current-page=
"page.currentPage"
:page-sizes=
"[20, 40, 60, 80]"
:page-size=
"page.pageSize"
layout=
"total, sizes, prev, pager, next"
:total=
"page.totalCount"
>
</el-pagination>
</div>
</template>
<
script
>
/* eslint-disable */
import
{
getRequest
}
from
'@/api/api'
;
export
default
{
name
:
'api-retry'
,
data
()
{
return
{
menuData
:
[
{
name
:
'接口重试'
,
path
:
'/api-retry'
}
],
activeName
:
'first'
,
searchData
:
{
date
:
[]
},
tableData
:
[],
page
:
{
currentPage
:
1
,
pageSize
:
20
,
totalCount
:
999
},
}
},
created
()
{
this
.
getLogsList
();
},
mounted
()
{
// this.$emit('showTab', 'platform_erp_retry');
},
methods
:
{
getLogsList
()
{
// eslint-disable-next-line
let
{
date
}
=
this
.
searchData
;
let
{
currentPage
,
pageSize
}
=
this
.
page
;
date
=
date
.
length
?
date
:
[
''
,
''
];
let
params
=
{
startTime
:
date
[
0
]
||
undefined
,
endTime
:
date
[
1
]
||
undefined
,
currentPage
:
currentPage
||
1
,
pageSize
:
pageSize
||
20
};
getRequest
(
'/gic-platform-operation/erp/list'
,
params
).
then
(
res
=>
{
console
.
log
(
res
)
const
{
result
}
=
res
;
if
(
result
)
{
this
.
page
.
totalCount
=
result
.
totalCount
||
0
;
this
.
tableData
=
result
.
result
||
[];
}
})
},
onSearchDataChange
(
val
)
{
this
.
page
.
currentPage
=
1
;
!
val
&&
(
this
.
searchData
.
date
=
[]);
this
.
getLogsList
();
},
// 改变每页显示数量
handleSizeChange
(
val
)
{
this
.
page
.
currentPage
=
1
;
this
.
page
.
pageSize
=
val
;
this
.
getLogsList
();
},
// 换页
handleCurrentChange
(
val
)
{
this
.
page
.
currentPage
=
val
;
this
.
getLogsList
();
},
},
props
:
{
// 左侧菜单选中 id
activeSelTab
:
{
type
:
[
String
,
Number
],
default
()
{
return
'platform_erp_retry'
;
}
}
},
}
</
script
>
<
style
lang=
"scss"
scoped
>
#api-retry
{
background-color
:
#fff
;
header
{
display
:
flex
;
justify-content
:
space-between
;
margin-bottom
:
20px
;
}
}
</
style
>
\ No newline at end of file
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