diff --git a/src/api/perfManage/goldTarget.ts b/src/api/perfManage/goldTarget.ts index 82e7b800..20742b3e 100644 --- a/src/api/perfManage/goldTarget.ts +++ b/src/api/perfManage/goldTarget.ts @@ -3,13 +3,14 @@ import { request } from '@/plugins/http-fetch'; import { parseObjLineToHump } from '@/utils/parse-utils'; /** - * 查询日志列表 + * 查询黄金指标数据 * @param query 查询参数 * @returns object */ export async function listgoldData(query: Record) { let totalSQL = 'select count(*) as total from gold_kpi where 1=1 '; - let rowsSQL = 'SELECT gold_kpi.*,kpi_title.en_title FROM gold_kpi LEFT JOIN kpi_title on gold_kpi.kpi_id=kpi_title.kpi_id where 1=1 '; + let rowsSQL = + 'SELECT gold_kpi.*,kpi_title.en_title FROM gold_kpi LEFT JOIN kpi_title on gold_kpi.kpi_id=kpi_title.kpi_id where 1=1 '; // 查询 let querySQL = ''; @@ -43,6 +44,7 @@ export async function listgoldData(query: Record) { totalSQL: totalSQL + querySQL, rowsSQL: rowsSQL + querySQL + sortSql + limtSql, }, + timeout: 30 * 1000, }); // 解析数据 diff --git a/src/views/perfManage/perfData/index.vue b/src/views/perfManage/perfData/index.vue index e2ce78b0..e74eb9bf 100644 --- a/src/views/perfManage/perfData/index.vue +++ b/src/views/perfManage/perfData/index.vue @@ -109,6 +109,9 @@ let tableColumns: ColumnsType = [ title: '值', dataIndex: 'value', align: 'center', + sorter: (a: any, b: any) => { + return 1; + }, }, { title: '开始时间', @@ -118,6 +121,9 @@ let tableColumns: ColumnsType = [ if (!opt.value) return ''; return parseDateToStr(opt.value); }, + sorter: (a: any, b: any) => { + return 1; + }, }, { title: '结束时间', @@ -127,6 +133,9 @@ let tableColumns: ColumnsType = [ if (!opt.value) return ''; return parseDateToStr(opt.value); }, + sorter: (a: any, b: any) => { + return 1; + }, }, ];