fix: 修复实体详情时间选择器选择时间后搜索接口传参错误问题

This commit is contained in:
@changcode
2022-06-23 16:37:58 +08:00
parent b04c365f6b
commit 3bc669916f
2 changed files with 5 additions and 4 deletions

View File

@@ -46,6 +46,7 @@ th *:first-letter,
.el-table__empty-block {
width: 100% !important;
height: 340px !important;
}
/* 淡化amcharts的logo */

View File

@@ -572,8 +572,8 @@ export default {
this.listLoading = true
const queryParams = {
...params,
startTime: parseInt(params.startTime / 1000),
endTime: parseInt(params.endTime / 1000)
startTime: getSecond(params.startTime),
endTime: getSecond(params.endTime)
}
get(api.entityList, queryParams).then(response => {
if (response.code === 200) {
@@ -590,8 +590,8 @@ export default {
queryListTotal (params) {
const queryParams = {
...params,
startTime: parseInt(params.startTime / 1000),
endTime: parseInt(params.endTime / 1000)
startTime: getSecond(params.startTime),
endTime: getSecond(params.endTime)
}
get(api.entityListTotal, queryParams).then(response => {
if (response.code === 200) {