From e3238194cebb7def1d9d1fcb689f8b863ded1cf7 Mon Sep 17 00:00:00 2001 From: lai <371757574@qq.com> Date: Wed, 25 Oct 2023 17:22:31 +0800 Subject: [PATCH] =?UTF-8?q?---=E4=BF=AE=E5=A4=8D=E9=BB=84=E9=87=91?= =?UTF-8?q?=E6=8C=87=E6=A0=87titile=E6=98=BE=E7=A4=BA=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/perfManage/goldTarget.ts | 2 +- src/views/perfManage/goldTarget/index.vue | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/api/perfManage/goldTarget.ts b/src/api/perfManage/goldTarget.ts index 24e563ba..82e7b800 100644 --- a/src/api/perfManage/goldTarget.ts +++ b/src/api/perfManage/goldTarget.ts @@ -9,7 +9,7 @@ import { parseObjLineToHump } from '@/utils/parse-utils'; */ export async function listgoldData(query: Record) { 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 = ''; diff --git a/src/views/perfManage/goldTarget/index.vue b/src/views/perfManage/goldTarget/index.vue index 856dad79..e6ac862f 100644 --- a/src/views/perfManage/goldTarget/index.vue +++ b/src/views/perfManage/goldTarget/index.vue @@ -84,13 +84,15 @@ let tableColumns: ColumnsType = [ }, { title: '黄金指标项', - dataIndex: 'en_title', + dataIndex: 'enTitle', align: 'center', + sorter: (a:any, b:any) => { return 1}, }, { title: '值', dataIndex: 'value', align: 'center', + sorter: (a:any, b:any) => { return 1}, }, { title: '开始时间', @@ -100,6 +102,7 @@ let tableColumns: ColumnsType = [ if (!opt.value) return ''; return parseDateToStr(opt.value); }, + sorter: (a:any, b:any) => { return 1}, }, { title: '结束时间',