---修复黄金指标titile显示问题

This commit is contained in:
lai
2023-10-25 17:22:31 +08:00
parent 9b00ec91b9
commit e3238194ce
2 changed files with 5 additions and 2 deletions

View File

@@ -9,7 +9,7 @@ import { parseObjLineToHump } from '@/utils/parse-utils';
*/ */
export async function listgoldData(query: Record<string, any>) { export async function listgoldData(query: Record<string, any>) {
let totalSQL = 'select count(*) as total from gold_kpi where 1=1 '; let totalSQL = 'select count(*) as total from gold_kpi where 1=1 ';
let rowsSQL = 'select * 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 querySQL = ''; let querySQL = '';

View File

@@ -84,13 +84,15 @@ let tableColumns: ColumnsType = [
}, },
{ {
title: '黄金指标项', title: '黄金指标项',
dataIndex: 'en_title', dataIndex: 'enTitle',
align: 'center', align: 'center',
sorter: (a:any, b:any) => { return 1},
}, },
{ {
title: '值', title: '值',
dataIndex: 'value', dataIndex: 'value',
align: 'center', align: 'center',
sorter: (a:any, b:any) => { return 1},
}, },
{ {
title: '开始时间', title: '开始时间',
@@ -100,6 +102,7 @@ let tableColumns: ColumnsType = [
if (!opt.value) return ''; if (!opt.value) return '';
return parseDateToStr(opt.value); return parseDateToStr(opt.value);
}, },
sorter: (a:any, b:any) => { return 1},
}, },
{ {
title: '结束时间', title: '结束时间',