|
@@ -1,4 +1,4 @@
|
1
|
|
-import React, {useState} from 'react'
|
|
1
|
+import React, { useState } from 'react'
|
2
|
2
|
import { Tabs, Card } from 'antd'
|
3
|
3
|
import Poster from '@/components/Poster'
|
4
|
4
|
import Share from '@/components/Share'
|
|
@@ -18,27 +18,27 @@ export default (props) => {
|
18
|
18
|
const { history } = props
|
19
|
19
|
const { query } = history.location
|
20
|
20
|
const { id } = query
|
21
|
|
- const [institutionId,setInstitutionId] = useState()
|
22
|
|
- const [marketingCode,setMarketingCode] = useState('')
|
23
|
|
- const [isPublish,setIsPublish] = useState(false)
|
|
21
|
+ const [institutionId, setInstitutionId] = useState()
|
|
22
|
+ const [marketingCode, setMarketingCode] = useState('')
|
|
23
|
+ const [isPublish, setIsPublish] = useState(false)
|
24
|
24
|
const target = { id, type: 'building' }
|
25
|
25
|
|
26
|
26
|
return (
|
27
|
27
|
<Card>
|
28
|
28
|
<Tabs defaultActiveKey="1">
|
29
|
29
|
<TabPane tab="基础信息" key="1">
|
30
|
|
- <div className={styles['tab-wrapper']} style={{maxWidth: 1000}}>
|
31
|
|
- <Basic {...props} setMarketingCode={(e)=>setMarketingCode(e)} institutionIdChange={(e)=>setInstitutionId(e)} isPublish={isPublish} setIsPublish={(e)=>setIsPublish(e)}/>
|
|
30
|
+ <div className={styles['tab-wrapper']} style={{ maxWidth: 1000 }}>
|
|
31
|
+ <Basic {...props} setMarketingCode={(e) => setMarketingCode(e)} institutionIdChange={(e) => setInstitutionId(e)} isPublish={isPublish} setIsPublish={(e) => setIsPublish(e)} />
|
32
|
32
|
</div>
|
33
|
33
|
</TabPane>
|
34
|
34
|
<TabPane tab="户型设置" key="2">
|
35
|
35
|
<div className={styles['tab-wrapper']}>
|
36
|
|
- <Apartment {...props} isPublish={isPublish}/>
|
|
36
|
+ <Apartment {...props} isPublish={isPublish} />
|
37
|
37
|
</div>
|
38
|
38
|
</TabPane>
|
39
|
39
|
<TabPane tab="项目相册" key="3">
|
40
|
40
|
<div className={styles['tab-wrapper']}>
|
41
|
|
- <AlbumList {...props} isPublish={isPublish}/>
|
|
41
|
+ <AlbumList {...props} isPublish={isPublish} />
|
42
|
42
|
</div>
|
43
|
43
|
</TabPane>
|
44
|
44
|
<TabPane tab="全景照片" key="4">
|
|
@@ -48,29 +48,29 @@ export default (props) => {
|
48
|
48
|
</TabPane>
|
49
|
49
|
<TabPane tab="项目动态" key="8">
|
50
|
50
|
<div className={styles['tab-wrapper']}>
|
51
|
|
- <News {...props} isPublish={isPublish}/>
|
|
51
|
+ <News {...props} isPublish={isPublish} />
|
52
|
52
|
</div>
|
53
|
53
|
</TabPane>
|
54
|
54
|
<TabPane tab="特价房源" key="9">
|
55
|
55
|
<div className={styles['tab-wrapper']}>
|
56
|
|
- <SpecialRoom {...props} isPublish={isPublish}/>
|
|
56
|
+ <SpecialRoom {...props} isPublish={isPublish} />
|
57
|
57
|
</div>
|
58
|
58
|
</TabPane>
|
59
|
59
|
<TabPane tab="渠道设置" key="7">
|
60
|
|
- <div className={styles['tab-wrapper']} style={{maxWidth: '800px'}}>
|
61
|
|
- <Channel {...props} institutionId={institutionId} isPublish={isPublish}/>
|
|
60
|
+ <div className={styles['tab-wrapper']} style={{ maxWidth: '800px' }}>
|
|
61
|
+ <Channel {...props} institutionId={institutionId} isPublish={isPublish} />
|
62
|
62
|
</div>
|
63
|
63
|
</TabPane>
|
64
|
64
|
<TabPane tab="驻场设置" key="10">
|
65
|
|
- <div className={styles['tab-wrapper']} style={{maxWidth: '1200px'}}>
|
66
|
|
- <OnSiteService {...props} marketingCode={marketingCode} isPublish={isPublish}/>
|
|
65
|
+ <div className={styles['tab-wrapper']} style={{ maxWidth: '1200px' }}>
|
|
66
|
+ <OnSiteService {...props} marketingCode={marketingCode} isPublish={isPublish} />
|
67
|
67
|
</div>
|
68
|
68
|
</TabPane>
|
69
|
69
|
<TabPane tab="海报图片" key="5">
|
70
|
|
- <Poster target={target} rights="building.poster.save" {...props} submitBtn={!isPublish} />
|
|
70
|
+ <Poster target={target} rights="building.poster.save" {...props} submitBtn={!isPublish} />
|
71
|
71
|
</TabPane>
|
72
|
72
|
<TabPane tab="分享设置" key="6">
|
73
|
|
- <div className={styles['tab-wrapper']} style={{maxWidth: '800px'}}>
|
|
73
|
+ <div className={styles['tab-wrapper']} style={{ maxWidth: '800px' }}>
|
74
|
74
|
<Share target={target} rights="building.share.save" {...props} submitBtn={!isPublish} />
|
75
|
75
|
</div>
|
76
|
76
|
</TabPane>
|