From 6d7d119a90e8947f178c0d626bf5fa8adb9a26d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=84=9A=E9=81=93?= Date: Wed, 29 Aug 2018 15:38:09 +0800 Subject: [PATCH] fix code style update bug --- src/pages/List/TableList.js | 122 ++++++++++++++++++------------------ 1 file changed, 61 insertions(+), 61 deletions(-) diff --git a/src/pages/List/TableList.js b/src/pages/List/TableList.js index 1d450a8b..894c6f89 100644 --- a/src/pages/List/TableList.js +++ b/src/pages/List/TableList.js @@ -66,67 +66,6 @@ const CreateForm = Form.create()(props => { @Form.create() class UpdateForm extends PureComponent { - columns = [ - { - title: '规则名称', - dataIndex: 'name', - }, - { - title: '描述', - dataIndex: 'desc', - }, - { - title: '服务调用次数', - dataIndex: 'callNo', - sorter: true, - align: 'right', - render: val => `${val} 万`, - // mark to display a total number - needTotal: true, - }, - { - title: '状态', - dataIndex: 'status', - filters: [ - { - text: status[0], - value: 0, - }, - { - text: status[1], - value: 1, - }, - { - text: status[2], - value: 2, - }, - { - text: status[3], - value: 3, - }, - ], - render(val) { - return ; - }, - }, - { - title: '上次调度时间', - dataIndex: 'updatedAt', - sorter: true, - render: val => {moment(val).format('YYYY-MM-DD HH:mm:ss')}, - }, - { - title: '操作', - render: (text, record) => ( - - this.handleUpdateModalVisible(true, record)}>配置 - - 订阅警报 - - ), - }, - ]; - constructor(props) { super(props); @@ -342,6 +281,67 @@ export default class TableList extends PureComponent { stepFormValues: {}, }; + columns = [ + { + title: '规则名称', + dataIndex: 'name', + }, + { + title: '描述', + dataIndex: 'desc', + }, + { + title: '服务调用次数', + dataIndex: 'callNo', + sorter: true, + align: 'right', + render: val => `${val} 万`, + // mark to display a total number + needTotal: true, + }, + { + title: '状态', + dataIndex: 'status', + filters: [ + { + text: status[0], + value: 0, + }, + { + text: status[1], + value: 1, + }, + { + text: status[2], + value: 2, + }, + { + text: status[3], + value: 3, + }, + ], + render(val) { + return ; + }, + }, + { + title: '上次调度时间', + dataIndex: 'updatedAt', + sorter: true, + render: val => {moment(val).format('YYYY-MM-DD HH:mm:ss')}, + }, + { + title: '操作', + render: (text, record) => ( + + this.handleUpdateModalVisible(true, record)}>配置 + + 订阅警报 + + ), + }, + ]; + componentDidMount() { const { dispatch } = this.props; dispatch({ -- GitLab