mirror of https://github.com/openspug/spug
A web update
parent
b6ca7c4e1a
commit
b42297e576
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { observer } from 'mobx-react';
|
import { observer } from 'mobx-react';
|
||||||
import { Table, Divider, Modal, message } from 'antd';
|
import { Table, Divider, Modal, Tooltip, message } from 'antd';
|
||||||
import { LinkButton } from 'components';
|
import { LinkButton } from 'components';
|
||||||
import ComForm from './Form';
|
import ComForm from './Form';
|
||||||
import http from 'libs/http';
|
import http from 'libs/http';
|
||||||
|
@ -10,16 +10,23 @@ import store from './store';
|
||||||
class ComTable extends React.Component {
|
class ComTable extends React.Component {
|
||||||
columns = [{
|
columns = [{
|
||||||
title: 'Key',
|
title: 'Key',
|
||||||
dataIndex: 'key',
|
key: 'key',
|
||||||
|
render: info => <Tooltip title={info.desc}>{info.key}</Tooltip>
|
||||||
}, {
|
}, {
|
||||||
title: 'Value',
|
title: 'Value',
|
||||||
dataIndex: 'value',
|
dataIndex: 'value',
|
||||||
}, {
|
|
||||||
title: '描述信息',
|
|
||||||
dataIndex: 'desc',
|
|
||||||
ellipsis: true
|
ellipsis: true
|
||||||
|
}, {
|
||||||
|
title: '修改人',
|
||||||
|
width: 120,
|
||||||
|
dataIndex: 'update_user'
|
||||||
|
}, {
|
||||||
|
title: '修改时间',
|
||||||
|
width: 180,
|
||||||
|
dataIndex: 'updated_at'
|
||||||
}, {
|
}, {
|
||||||
title: '操作',
|
title: '操作',
|
||||||
|
width: 120,
|
||||||
render: info => (
|
render: info => (
|
||||||
<span>
|
<span>
|
||||||
<LinkButton onClick={() => store.showForm(info)}>编辑</LinkButton>
|
<LinkButton onClick={() => store.showForm(info)}>编辑</LinkButton>
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
border-right: 1px solid #e8e8e8;
|
border-right: 1px solid #e8e8e8;
|
||||||
}
|
}
|
||||||
.right {
|
.right {
|
||||||
flex: 7;
|
flex: 9;
|
||||||
padding: 8px 40px;
|
padding: 8px 40px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue