--新增性能门限

This commit is contained in:
lai
2023-10-23 16:27:53 +08:00
parent da6ae18028
commit 49c12f1723
6 changed files with 716 additions and 335 deletions

View File

@@ -18,6 +18,13 @@ export async function listPerfTask(query: Record<string, any>) {
querySQL += ` and ne_type like '%${query.neType}%' `;
}
// 排序
let sortSql = ' order by create_time ';
if (query.sortOrder === 'asc') {
sortSql += ' asc ';
} else {
sortSql += ' desc ';
}
// 分页
const pageNum = (query.pageNum - 1) * query.pageSize;
const limtSql = ` limit ${pageNum},${query.pageSize} `;
@@ -28,7 +35,7 @@ export async function listPerfTask(query: Record<string, any>) {
method: 'get',
params: {
totalSQL: totalSQL + querySQL,
rowsSQL: rowsSQL + querySQL + limtSql,
rowsSQL: rowsSQL + querySQL + sortSql+ limtSql,
},
});
@@ -171,7 +178,7 @@ export async function delPerfTask(data: Record<string, any>) {
}
/**
* 获取网元跟踪接口列表
* 获取性能测量指标列表
* @returns object
*/
export async function getNePerformanceList() {