|
@@ -30,6 +30,7 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
30
|
30
|
let helpVisible = false
|
31
|
31
|
let groupVisible = false
|
32
|
32
|
let buildingId = ''
|
|
33
|
+ let cityId=''
|
33
|
34
|
let locationType = false
|
34
|
35
|
let isHaveActive=true
|
35
|
36
|
|
|
@@ -38,6 +39,7 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
38
|
39
|
isHaveActive=data.isHaveActive
|
39
|
40
|
if(!isHaveActive) {
|
40
|
41
|
data.contentType=null
|
|
42
|
+ data.buildingId=null
|
41
|
43
|
}
|
42
|
44
|
|
43
|
45
|
contentVisible = data.contentType === 'other';
|
|
@@ -46,14 +48,31 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
46
|
48
|
helpVisible = data.contentType === 'help';
|
47
|
49
|
groupVisible = data.contentType === 'group';
|
48
|
50
|
|
|
51
|
+ cityId=data.cityId
|
49
|
52
|
buildingId = data.buildingId
|
50
|
53
|
locationType = data.showPosition === 'mall';
|
51
|
54
|
console.log(locationType, 'locationType');
|
52
|
55
|
}
|
53
|
56
|
|
|
57
|
+ const setExtraData1 = (data) => {
|
|
58
|
+ if(data.title){
|
|
59
|
+ isHaveActive=true
|
|
60
|
+ }else{
|
|
61
|
+ isHaveActive=false
|
|
62
|
+ }
|
|
63
|
+ contentVisible = data.contentType === 'other';
|
|
64
|
+ activityVisible = data.contentType === 'activity';
|
|
65
|
+ newsVisible = data.contentType === 'news';
|
|
66
|
+ helpVisible = data.contentType === 'help';
|
|
67
|
+ groupVisible = data.contentType === 'group';
|
|
68
|
+
|
|
69
|
+ locationType = data.showPosition === 'mall';
|
|
70
|
+ console.log(locationType, 'locationType');
|
|
71
|
+ }
|
|
72
|
+
|
54
|
73
|
|
55
|
74
|
const handleFormValueChange = (props, changedValues, allValues) => {
|
56
|
|
- setExtraData(allValues)
|
|
75
|
+ setExtraData(allValues)
|
57
|
76
|
}
|
58
|
77
|
|
59
|
78
|
const XForm = createForm({ onValuesChange: handleFormValueChange })
|
|
@@ -73,7 +92,7 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
73
|
92
|
const getDetail = contentId => {
|
74
|
93
|
request({ ...apis.carsuseFigure.getExtendContent, urlData: { id: contentId } }).then(data => {
|
75
|
94
|
console.log(data)
|
76
|
|
- setExtraData(data)
|
|
95
|
+ setExtraData1(data)
|
77
|
96
|
setData(data)
|
78
|
97
|
})
|
79
|
98
|
}
|
|
@@ -87,7 +106,7 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
|
87
|
106
|
|
88
|
107
|
const fields = [
|
89
|
108
|
{
|
90
|
|
- label: '项目活动',
|
|
109
|
+ label: '是否关联活动',
|
91
|
110
|
name: 'isHaveActive',
|
92
|
111
|
type: FieldTypes.Switch,
|
93
|
112
|
value:isHaveActive,
|