fix: 修复detections tab列表样式及请求传参问题
This commit is contained in:
@@ -182,6 +182,9 @@
|
||||
.cn-detection__header {
|
||||
margin-bottom: 8px;
|
||||
}
|
||||
.cn-detection-table {
|
||||
overflow: auto;
|
||||
}
|
||||
.cn-detection__case-severity {
|
||||
display: flex;
|
||||
width: 38px;
|
||||
|
||||
@@ -189,7 +189,7 @@ export default {
|
||||
pageSize: 9
|
||||
}
|
||||
}
|
||||
if ((isDetectionService && JSON.stringify(extraParams) === '{}') || (isDetectionSecurity && JSON.stringify(extraParams) === '{}')) {
|
||||
if (isDetectionService || isDetectionSecurity) {
|
||||
extraParams = {
|
||||
pageNo: 1,
|
||||
pageSize: 6
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
:index="index"
|
||||
></chart-detections-table>
|
||||
</div>
|
||||
<div class="cn-detection__footer" v-show="pageObj.total > 0">
|
||||
<div class="cn-detection__footer">
|
||||
<chart-detection-pagination
|
||||
ref="pagination"
|
||||
:page-obj="pageObj"
|
||||
@pageJump="pageJump"
|
||||
:pageSizeForAlarm="pageSizeForAlarm"
|
||||
:pageSizeForAlarm="pageObj.pageSize"
|
||||
></chart-detection-pagination>
|
||||
</div>
|
||||
</div>
|
||||
@@ -48,8 +48,7 @@ export default {
|
||||
pageSize: 6,
|
||||
total: 0,
|
||||
resetPageNo: true
|
||||
},
|
||||
pageSizeForAlarm: 6
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -63,7 +62,7 @@ export default {
|
||||
this.pageObj.pageNo = val
|
||||
const extraParams = {
|
||||
pageNo: val,
|
||||
pageSize: this.pageSizeForAlarm
|
||||
pageSize: this.pageSize
|
||||
}
|
||||
this.$emit('getDetectionData', this.chartInfo.params.url, extraParams, false, {
|
||||
startTime: this.queryParams.startTime,
|
||||
|
||||
@@ -10,12 +10,12 @@
|
||||
:index="index"
|
||||
></chart-detections-table>
|
||||
</div>
|
||||
<div class="cn-chart__footer" v-show="pageObj.total > 0">
|
||||
<div class="cn-detection__footer">
|
||||
<chart-detection-pagination
|
||||
ref="pagination"
|
||||
:page-obj="pageObj"
|
||||
@pageJump="pageJump"
|
||||
:pageSizeForAlarm="pageSizeForAlarm"
|
||||
:pageSizeForAlarm="pageObj.pageSize"
|
||||
></chart-detection-pagination>
|
||||
</div>
|
||||
</div>
|
||||
@@ -46,8 +46,7 @@ export default {
|
||||
pageSize: 6,
|
||||
total: 0,
|
||||
resetPageNo: true
|
||||
},
|
||||
pageSizeForAlarm: 6
|
||||
}
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -61,7 +60,7 @@ export default {
|
||||
this.pageObj.pageNo = val
|
||||
const extraParams = {
|
||||
pageNo: val,
|
||||
pageSize: this.pageSizeForAlarm
|
||||
pageSize: this.pageSize
|
||||
}
|
||||
this.$emit('getDetectionData', this.chartInfo.params.url, extraParams, false, {
|
||||
startTime: this.queryParams.startTime,
|
||||
|
||||
Reference in New Issue
Block a user