Przeglądaj źródła

修改订单编号字段

zhanghe 7 lat temu
rodzic
commit
08b97a2038
2 zmienionych plików z 7 dodań i 7 usunięć
  1. 6 6
      src/routes/Order/List/table.js
  2. 1 1
      src/utils/config.js

+ 6 - 6
src/routes/Order/List/table.js

@@ -15,9 +15,9 @@ export default class TableList extends PureComponent {
 
     const columns = [{
       title: '订单编号',
-      dataIndex: 'id',
-      key: 'id',
-      width: '28%',
+      dataIndex: 'serialNo',
+      key: 'serialNo',
+      width: '14%',
     }, {
       title: '校区',
       dataIndex: 'campusName',
@@ -38,7 +38,7 @@ export default class TableList extends PureComponent {
         };
         return (<Badge status={statusMap[record.orderStatus] || 'processing'} text={orderStatuses[record.orderStatus]} />);
       },
-      width: '8%',
+      width: '15%',
     }, {
       title: '下单时间',
       dataIndex: 'gmtCreated',
@@ -46,13 +46,13 @@ export default class TableList extends PureComponent {
       render: text => (
         <div>{moment(text).format('YYYY-MM-DD HH:mm:ss')}</div>
       ),
-      width: '17%',
+      width: '20%',
     }, {
       title: '操作',
       dataIndex: 'operation',
       key: 'operation',
       render: (_, record) => <a onClick={() => this.handleItemView(record)}>查看详情</a>,
-      width: '8%',
+      width: '12%',
     }];
 
     // 配置分页

+ 1 - 1
src/utils/config.js

@@ -44,7 +44,7 @@ Codes.CODE_SEASON = '季';
 Codes.CODE_ITEM = '件';
 
 module.exports = {
-  apiHost: '/api/v1',
+  apiHost: 'http://tt-cms.api.ai160.com',
   ossHost: 'http://efunimgs.oss-cn-beijing.aliyuncs.com',
   // apiHost: '/api',
   // 每页返回数据量