魏熙美 преди 5 години
родител
ревизия
9561e57bb8
променени са 2 файла, в които са добавени 5 реда и са изтрити 4 реда
  1. 2
    2
      src/pages/building/list/index.jsx
  2. 3
    2
      src/pages/building/type/index.jsx

+ 2
- 2
src/pages/building/list/index.jsx Целия файл

@@ -86,7 +86,7 @@ function CartBody(props) {
86 86
           openNotificationWithIcon('success', '操作成功')
87 87
           props.onSuccess()
88 88
         }).catch(err => {
89
-          openNotificationWithIcon('error', err.message)
89
+          // openNotificationWithIcon('error', err.message)
90 90
         })
91 91
 
92 92
         modal.destroy();
@@ -269,7 +269,7 @@ function body(props) {
269 269
           {getFieldDecorator('buildingStatus')(
270 270
             <Select style={{ width: '180px' }} placeholder="楼盘状态" onChange={handleSelectChange}>
271 271
               <Option value="1">发布</Option>
272
-              <Option value="0">未发布</Option>
272
+              <Option value="2">未发布</Option>
273 273
             </Select>,
274 274
           )}
275 275
         </Form.Item>

+ 3
- 2
src/pages/building/type/index.jsx Целия файл

@@ -15,8 +15,9 @@ function body() {
15 15
   const columns = [
16 16
     {
17 17
       title: '编号',
18
-      dataIndex: 'buildingTypeId',
19
-      key: 'buildingTypeId',
18
+      dataIndex: 'index',
19
+      key: 'index',
20
+      render: (text, record, index) => <span>{index + 1}</span>,
20 21
     },
21 22
     {
22 23
       title: '类型名称',