|
@@ -37,16 +37,17 @@ const createEditor = () => {
|
37
|
37
|
let isHaveActive = false
|
38
|
38
|
let isCanChoose = true
|
39
|
39
|
let isHavePosition = false
|
|
40
|
+ let islet = true
|
40
|
41
|
|
41
|
42
|
const setExtraData = (data) => {
|
42
|
|
- if (data.isHaveActive != undefined) {
|
|
43
|
+ if (data.isHaveActive !== undefined) {
|
43
|
44
|
isHaveActive = data.isHaveActive
|
44
|
45
|
if (!isHaveActive) {
|
45
|
46
|
// data.contentType=null
|
46
|
47
|
data.buildingId = null
|
47
|
48
|
}
|
48
|
49
|
}
|
49
|
|
-
|
|
50
|
+ islet = isHaveActive
|
50
|
51
|
if (data.showPosition == 'index') {
|
51
|
52
|
isHavePosition = true;
|
52
|
53
|
} else {
|
|
@@ -69,17 +70,31 @@ const createEditor = () => {
|
69
|
70
|
h5Visible = data.contentType === 'h5';
|
70
|
71
|
|
71
|
72
|
cityId = data.cityId
|
|
73
|
+ // console.log(data.buildingId, ' data.buildingId')
|
72
|
74
|
buildingId = data.buildingId
|
73
|
75
|
}
|
74
|
76
|
|
75
|
77
|
const setExtraData1 = data => {
|
76
|
78
|
console.log(data, "data.buildingIddata.buildingId2")
|
|
79
|
+ islet = isHaveActive
|
|
80
|
+
|
77
|
81
|
if ((data.contentType === 'h5' && data.buildingId == null) || data.contentType === '' || data.contentType === 'nothing' || (data.contentType === 'live' && data.buildingId == null)) {
|
78
|
82
|
isHaveActive = false
|
79
|
83
|
} else {
|
80
|
84
|
isHaveActive = true
|
81
|
85
|
}
|
|
86
|
+ // if (!isHaveActivea && data.contentType === 'h5') {
|
|
87
|
+ // // data.contentType=null
|
|
88
|
+ // data.buildingId = null
|
|
89
|
+ // }
|
82
|
90
|
|
|
91
|
+ // if (data.isHaveActive !== undefined) {
|
|
92
|
+ // isHaveActive = data.isHaveActive
|
|
93
|
+ // if (!isHaveActive) {
|
|
94
|
+ // // data.contentType=null
|
|
95
|
+ // data.buildingId = null
|
|
96
|
+ // }
|
|
97
|
+ // }
|
83
|
98
|
if (data.showPosition == 'index') {
|
84
|
99
|
isHavePosition = true;
|
85
|
100
|
} else {
|
|
@@ -94,6 +109,8 @@ const createEditor = () => {
|
94
|
109
|
salesBatchVisible = data.contentType === 'salesBatch';
|
95
|
110
|
liveVisible = data.contentType === 'live';
|
96
|
111
|
h5Visible = data.contentType === 'h5';
|
|
112
|
+
|
|
113
|
+ console.log(data.buildingId, ' data.buildingId')
|
97
|
114
|
buildingId = data.buildingId
|
98
|
115
|
}
|
99
|
116
|
|
|
@@ -270,9 +287,9 @@ const createEditor = () => {
|
270
|
287
|
],
|
271
|
288
|
},
|
272
|
289
|
{
|
273
|
|
- label: '是否发布H5活动',
|
|
290
|
+ label: '发布H5活动',
|
274
|
291
|
name: 'targetId',
|
275
|
|
- render: <SelectH5 buildingId={() => buildingId} />,
|
|
292
|
+ render: <SelectH5 buildingId={() => islet ? buildingId : ''} />,
|
276
|
293
|
hidden: () => !h5Visible,
|
277
|
294
|
value: data.targetId,
|
278
|
295
|
rules: [
|