fix: 查询分页*条数
This commit is contained in:
@@ -48,7 +48,6 @@ export async function updateConfig(tag: string, data: Record<string, any>) {
|
|||||||
delete result.data;
|
delete result.data;
|
||||||
return result;
|
return result;
|
||||||
} else {
|
} else {
|
||||||
delete result.data;
|
|
||||||
return { code: RESULT_CODE_ERROR, msg: RESULT_MSG_ERROR };
|
return { code: RESULT_CODE_ERROR, msg: RESULT_MSG_ERROR };
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export async function listNeInfo(query: Record<string, any>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 分页
|
// 分页
|
||||||
const pageNum = query.pageNum - 1;
|
const pageNum = (query.pageNum - 1) * query.pageSize;
|
||||||
const limtSql = ` limit ${pageNum},${query.pageSize} `;
|
const limtSql = ` limit ${pageNum},${query.pageSize} `;
|
||||||
|
|
||||||
// 发起请求
|
// 发起请求
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ export async function listTraceData(query: Record<string, any>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 分页
|
// 分页
|
||||||
const pageNum = query.pageNum - 1;
|
const pageNum = (query.pageNum - 1) * query.pageSize;
|
||||||
const limtSql = ` limit ${pageNum},${query.pageSize} `;
|
const limtSql = ` limit ${pageNum},${query.pageSize} `;
|
||||||
|
|
||||||
// 发起请求
|
// 发起请求
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ export async function listTraceTask(query: Record<string, any>) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// 分页
|
// 分页
|
||||||
const pageNum = query.pageNum - 1;
|
const pageNum = (query.pageNum - 1) * query.pageSize;
|
||||||
const limtSql = ` limit ${pageNum},${query.pageSize} `;
|
const limtSql = ` limit ${pageNum},${query.pageSize} `;
|
||||||
|
|
||||||
// 发起请求
|
// 发起请求
|
||||||
|
|||||||
Reference in New Issue
Block a user