From bfe34914f512f8a40721abfed907614d452e32b9 Mon Sep 17 00:00:00 2001 From: tangjiang <465264938@qq.com> Date: Fri, 14 Feb 2020 14:16:40 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=9F=E8=AE=A1=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/react/src/modules/paths/statics/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/public/react/src/modules/paths/statics/index.js b/public/react/src/modules/paths/statics/index.js index b10809f99..47bf209a1 100644 --- a/public/react/src/modules/paths/statics/index.js +++ b/public/react/src/modules/paths/statics/index.js @@ -4,7 +4,7 @@ * @Github: * @Date: 2020-01-10 09:33:45 * @LastEditors : tangjiang - * @LastEditTime : 2020-01-14 17:01:32 + * @LastEditTime : 2020-02-14 14:14:47 */ import './index.scss'; import React, { useEffect } from 'react'; @@ -172,30 +172,35 @@ const App = (props) => { title: '通关实训数', dataIndex: 'passed_myshixun_count', align: 'center', + with: 150, sorter: (a, b) => a.passed_myshixun_count - b.passed_myshixun_count }, { title: '完成关卡', dataIndex: 'passed_games_count', align: 'center', + with: 150, sorter: (a, b) => a.passed_games_count - b.passed_games_count }, { title: '代码行', dataIndex: 'code_line_count', align: 'center', + with: 150, sorter: (a, b) => a.code_line_count - b.code_line_count }, { title: '评测次数', dataIndex: 'evaluate_count', align: 'center', + with: 150, sorter: (a, b) => a.evaluate_count - b.evaluate_count }, { title: '所用时间', dataIndex: 'cost_time', align: 'center', + with: 150, render: (text) => (text && moment(text).format('HH:mm:ss')) || '-', sorter: (a, b) => a.cost_time - b.cost_time }