zlisen 3 年前
父节点
当前提交
cba8c753e4
共有 2 个文件被更改,包括 3 次插入3 次删除
  1. 1
    1
      src/pages/Live/video/List/index.jsx
  2. 2
    2
      src/pages/building/Edit/Apartment/Form.jsx

+ 1
- 1
src/pages/Live/video/List/index.jsx 查看文件

39
 
39
 
40
 
40
 
41
   const onPublish = row => {
41
   const onPublish = row => {
42
-    const buidingStatus = row.status === 1 ? 2 : 1;
42
+   
43
     request({ ...apis.video.publish, urlData: { id: row.videoId } })
43
     request({ ...apis.video.publish, urlData: { id: row.videoId } })
44
       .then(() => {
44
       .then(() => {
45
         message.success( '操作成功');
45
         message.success( '操作成功');

+ 2
- 2
src/pages/building/Edit/Apartment/Form.jsx 查看文件

121
         })(
121
         })(
122
           <Select placeholder="销售状态">
122
           <Select placeholder="销售状态">
123
             {saleType.map((item, _) => (
123
             {saleType.map((item, _) => (
124
-              <Option value={item.id}>{item.name}</Option>
124
+              <Option value={item.id} key={item.id}>{item.name}</Option>
125
             ))}
125
             ))}
126
           </Select>,
126
           </Select>,
127
         )}
127
         )}
137
         })(
137
         })(
138
           <Select placeholder="户型">
138
           <Select placeholder="户型">
139
             {houseType.map((item, _) => (
139
             {houseType.map((item, _) => (
140
-              <Option value={item.id}>{item.name}</Option>
140
+              <Option value={item.id} key={item.id}>{item.name}</Option>
141
             ))}
141
             ))}
142
           </Select>,
142
           </Select>,
143
         )}
143
         )}