update static table

dev_static
tangjiang 5 years ago
parent 05e69e8f74
commit 0d9143c611

@ -83,7 +83,7 @@ export function initAxiosInterceptors(props) {
//proxy="http://47.96.87.25:48080" //proxy="http://47.96.87.25:48080"
proxy="https://pre-newweb.educoder.net" proxy="https://pre-newweb.educoder.net"
proxy="https://test-newweb.educoder.net" proxy="https://test-newweb.educoder.net"
//proxy="https://test-jupyterweb.educoder.net" // proxy="https://test-jupyterweb.educoder.net"
//proxy="http://192.168.2.63:3001" //proxy="http://192.168.2.63:3001"
// 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求 // 在这里使用requestMap控制避免用户通过双击等操作发出重复的请求

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2020-01-10 13:46:30 * @Date: 2020-01-10 13:46:30
* @LastEditors : tangjiang * @LastEditors : tangjiang
* @LastEditTime : 2020-01-11 11:20:50 * @LastEditTime : 2020-01-11 14:02:32
*/ */
import 'antd-table-infinity/dist/index.css'; import 'antd-table-infinity/dist/index.css';
import 'antd-table-infinity/index.css'; import 'antd-table-infinity/index.css';
@ -60,8 +60,8 @@ const DisplayTableData = ({
sumData={sumData} sumData={sumData}
scroll={{ y: 450 }} scroll={{ y: 450 }}
dataSource={data} dataSource={data}
bordered // bordered
debug // debug
/> />
); );
} }

@ -4,7 +4,7 @@
* @Github: * @Github:
* @Date: 2020-01-11 10:55:33 * @Date: 2020-01-11 10:55:33
* @LastEditors : tangjiang * @LastEditors : tangjiang
* @LastEditTime : 2020-01-11 11:58:08 * @LastEditTime : 2020-01-11 14:01:49
*/ */
import { random } from 'lodash'; import { random } from 'lodash';
@ -31,6 +31,8 @@ const fetchData = (startIndex = 0) =>
name: 'John Brown', name: 'John Brown',
age: 32, age: 32,
address: 'New York No. 1 Lake Park', address: 'New York No. 1 Lake Park',
address2: 'address2',
address3: 'address3'
}; };
}), }),
); );
@ -42,7 +44,7 @@ const columns = [
title: '序号', title: '序号',
dataIndex: 'index', dataIndex: 'index',
render: text => text, render: text => text,
width: 50, width: 80,
}, },
{ {
title: '使用单位', title: '使用单位',
@ -62,22 +64,23 @@ const columns = [
{ {
title: '选用实训/个', title: '选用实训/个',
// width: 200, // width: 200,
dataIndex: 'address', dataIndex: 'address2',
}, },
{ {
title: '选用实训/个', title: '选用实训/个',
// width: 200, // width: 200,
dataIndex: 'address', dataIndex: 'address3',
} }
]; ];
const sumData = [ const sumData = [
{ {
index: '合计', index: '合计',
key: ',4',
name: 'Disabled User', name: 'Disabled User',
age: 99, age: 99,
address: 'Sidney No. 1 Lake Park', address: 'Sidney No. 1 Lake Park',
address2: 'address2',
addrexs3: 'address3'
}, },
]; ];

Loading…
Cancel
Save