魏超 5 年 前
コミット
5218750405

+ 3
- 1
src/pages/activity/ActivityList.jsx ファイルの表示

188
 
188
 
189
         <EditIcon type={row.home === 1 ? 'cancel' : 'top'} text={row.home === 1 ? '取消推首页' : '推荐首页'} onClick={homeDynamic(row)} />,
189
         <EditIcon type={row.home === 1 ? 'cancel' : 'top'} text={row.home === 1 ? '取消推首页' : '推荐首页'} onClick={homeDynamic(row)} />,
190
 
190
 
191
-        <EditIcon type="record" text="数据记录" onClick={toDataReacord(row.dynamicId)} />,
191
+        <AuthButton name="admin.buildingDynamic.dataRecord" noRight={null}>
192
+          <EditIcon type="record" text="数据记录" onClick={toDataReacord(row.dynamicId)} />
193
+        </AuthButton>,
192
 
194
 
193
         (row.activityStatus === 0 || row.activityStatus === 1) ?
195
         (row.activityStatus === 0 || row.activityStatus === 1) ?
194
           <AuthButton name="admin.buildingDynamic.update.put" noRight={null}>
196
           <AuthButton name="admin.buildingDynamic.update.put" noRight={null}>

+ 3
- 2
src/pages/activity/drainage/DrainageList.jsx ファイルの表示

237
           <EditIcon text="数据" type="data" onClick={toEditList(datas.drainageId)} />
237
           <EditIcon text="数据" type="data" onClick={toEditList(datas.drainageId)} />
238
         </AuthButton>,
238
         </AuthButton>,
239
 
239
 
240
-
241
-        <EditIcon type="record" text="数据记录" onClick={toDataReacord(datas)} />,
240
+        <AuthButton name="admin.drainageActivity.dataRecord" noRight={null}>
241
+          <EditIcon type="record" text="数据记录" onClick={toDataReacord(datas)} />
242
+        </AuthButton>,
242
 
243
 
243
         <AuthButton name="admin.taDrainage.id.delete" noRight={null}>
244
         <AuthButton name="admin.taDrainage.id.delete" noRight={null}>
244
           <EditIcon text="下载二维码" type="download" onClick={newQrcode.bind(this, datas)} />
245
           <EditIcon text="下载二维码" type="download" onClick={newQrcode.bind(this, datas)} />

+ 3
- 1
src/pages/activity/groupActivity/list.jsx ファイルの表示

166
             <EditIcon type={row.sort ? 'cancel' : 'top'} text={row.sort ? '取消推首页' : '推荐首页'} onClick={recommendGroupActivity(row)} />
166
             <EditIcon type={row.sort ? 'cancel' : 'top'} text={row.sort ? '取消推首页' : '推荐首页'} onClick={recommendGroupActivity(row)} />
167
           </AuthButton>,
167
           </AuthButton>,
168
 
168
 
169
-          <EditIcon type="record" text="数据记录" onClick={() => toDataReacord(row.groupActivityId)} />,
169
+          <AuthButton name="admin.groupActivity.dataRecord" noRight={null}>
170
+            <EditIcon type="record" text="数据记录" onClick={() => toDataReacord(row.groupActivityId)} />
171
+          </AuthButton>,
170
 
172
 
171
           (row.activityStatus === 0 || row.activityStatus === 1) ?
173
           (row.activityStatus === 0 || row.activityStatus === 1) ?
172
             <AuthButton name="admin.taShareActivity.update.put" noRight={null}>
174
             <AuthButton name="admin.taShareActivity.update.put" noRight={null}>

+ 3
- 1
src/pages/activity/helpActivity/list.jsx ファイルの表示

152
           <EditIcon type={row.isMain ? 'cancel' : 'top'} text={row.isMain ? '取消推首页' : '推荐首页'} onClick={topDynamic(row, 1)} />
152
           <EditIcon type={row.isMain ? 'cancel' : 'top'} text={row.isMain ? '取消推首页' : '推荐首页'} onClick={topDynamic(row, 1)} />
153
         </AuthButton>,
153
         </AuthButton>,
154
 
154
 
155
-        <EditIcon type="record" text="数据记录" onClick={() => toDataReacord(row.helpActivityId)} />,
155
+        <AuthButton name="admin.helpActivity.dataRecord" noRight={null}>
156
+          <EditIcon type="record" text="数据记录" onClick={() => toDataReacord(row.helpActivityId)} />
157
+        </AuthButton>,
156
 
158
 
157
         (row.activityStatus === 1 || row.activityStatus === 0) ?
159
         (row.activityStatus === 1 || row.activityStatus === 0) ?
158
           <AuthButton name="admin.helpActivity.update.put" noRight={null}>
160
           <AuthButton name="admin.helpActivity.update.put" noRight={null}>

+ 4
- 2
src/pages/activity/liveActivity/list/index.jsx ファイルの表示

189
       title: '操作',
189
       title: '操作',
190
       align: 'center',
190
       align: 'center',
191
       width: 240,
191
       width: 240,
192
-      render: withActions((text, record) => [     
193
-        <EditIcon type="record" text="数据记录" onClick={toDataReacord(record)} />,
192
+      render: withActions((text, record) => [    
193
+        <AuthButton name="admin.liveActivity.dataRecord" noRight={null}>
194
+          <EditIcon type="record" text="数据记录" onClick={toDataReacord(record)} />
195
+        </AuthButton>,
194
  
196
  
195
         <AuthButton name="admin.live.detail.get" noRight={null}>
197
         <AuthButton name="admin.live.detail.get" noRight={null}>
196
           <EditIcon type="look" text="查看详情" onClick={toAddLive(record)} />
198
           <EditIcon type="look" text="查看详情" onClick={toAddLive(record)} />

+ 10
- 10
src/pages/carouselFigure/advertisingList.jsx ファイルの表示

71
       render: (contentType) => <span>{contentType === 'project' ? '项目' : contentType === 'activity' ? '活动' : contentType === 'news' ? '资讯' : contentType === 'other' ? '其他' :
71
       render: (contentType) => <span>{contentType === 'project' ? '项目' : contentType === 'activity' ? '活动' : contentType === 'news' ? '资讯' : contentType === 'other' ? '其他' :
72
         contentType === 'help' ? '助力' : contentType === 'group' ? '拼团' : contentType === 'h5' ? 'H5活动' : contentType === 'salesBatch' ? '销售批次详情' : contentType === 'live' ? '直播活动详情' : '无'}</span>
72
         contentType === 'help' ? '助力' : contentType === 'group' ? '拼团' : contentType === 'h5' ? 'H5活动' : contentType === 'salesBatch' ? '销售批次详情' : contentType === 'live' ? '直播活动详情' : '无'}</span>
73
     },
73
     },
74
-    // {
75
-    //   title: '发布位置',
76
-    //   dataIndex: 'showPosition',
77
-    //   key: 'showPosition',
78
-    //   align: 'center',
79
-    //   render: (showPosition) => <span>{ showPosition === 'index' ? '首页' : showPosition === 'mall' ? '商城' : '' }</span>
80
-    // },
74
+    {
75
+      title: '发布位置',
76
+      dataIndex: 'showPosition',
77
+      key: 'showPosition',
78
+      align: 'center',
79
+      render: (showPosition) => <span>{ showPosition === 'index' ? '首页' : showPosition === 'building' ? '项目' : '' }</span>
80
+    },
81
     {
81
     {
82
       title: '发布时间',
82
       title: '发布时间',
83
       dataIndex: 'createDate',
83
       dataIndex: 'createDate',
242
             </Select>,
242
             </Select>,
243
           )}
243
           )}
244
         </Form.Item>
244
         </Form.Item>
245
-        {/* <Form.Item>
245
+        <Form.Item>
246
           {getFieldDecorator('showPosition')(
246
           {getFieldDecorator('showPosition')(
247
             <Select style={{ width: '180px' }} placeholder="发布位置">
247
             <Select style={{ width: '180px' }} placeholder="发布位置">
248
-              <Option value="mall">商城</Option>
249
               <Option value="index">首页</Option>
248
               <Option value="index">首页</Option>
249
+              <Option value="building">项目</Option>
250
             </Select>,
250
             </Select>,
251
           )}
251
           )}
252
-        </Form.Item> */}
252
+        </Form.Item>
253
         <Form.Item>
253
         <Form.Item>
254
           {getFieldDecorator('status')(
254
           {getFieldDecorator('status')(
255
             <Select style={{ width: '180px' }} placeholder="状态">
255
             <Select style={{ width: '180px' }} placeholder="状态">

+ 35
- 10
src/pages/carouselFigure/editAdvertising.jsx ファイルの表示

36
   let cityId = ''
36
   let cityId = ''
37
   let isHaveActive=false
37
   let isHaveActive=false
38
   let isCanChoose=true
38
   let isCanChoose=true
39
+  let isHavePosition = false
39
 
40
 
40
   const setExtraData = (data) => {
41
   const setExtraData = (data) => {
41
     if(data.isHaveActive!=undefined){
42
     if(data.isHaveActive!=undefined){
46
       }
47
       }
47
     }
48
     }
48
 
49
 
50
+    if (data.showPosition == 'index'){
51
+      isHavePosition = true;
52
+    }else{
53
+      isHavePosition = false;
54
+    }
55
+
49
     contentVisible = data.contentType === 'other';
56
     contentVisible = data.contentType === 'other';
50
     activityVisible = data.contentType === 'activity';
57
     activityVisible = data.contentType === 'activity';
51
     newsVisible = data.contentType === 'news';
58
     newsVisible = data.contentType === 'news';
123
           { required: true,message: '是否城市活动' },
130
           { required: true,message: '是否城市活动' },
124
         ],
131
         ],
125
       },
132
       },
133
+      {
134
+        label: '发布位置',
135
+        name: 'showPosition',
136
+        type: FieldTypes.Select,
137
+        value:isHaveActive,
138
+        dict: [{
139
+          label: '首页',
140
+          value: 'index',
141
+        },
142
+        {
143
+          label: '项目',
144
+          value: 'building',
145
+        }],
146
+        value: data.showPosition,
147
+        rules: [
148
+          { required: true, message: '请选择发布位置' },
149
+        ],
150
+      },
126
       {
151
       {
127
         label: '所属项目',
152
         label: '所属项目',
128
         name: 'buildingId',
153
         name: 'buildingId',
129
         render: <BuildSelect />,
154
         render: <BuildSelect />,
130
         value: data.buildingId,
155
         value: data.buildingId,
131
-        hidden: () => !isHaveActive,
156
+        hidden: () => !isHaveActive && isHavePosition,
132
         rules: [
157
         rules: [
133
           { required: true, message: '请选择所属项目' },
158
           { required: true, message: '请选择所属项目' },
134
         ],
159
         ],
137
         label: '展示城市',
162
         label: '展示城市',
138
         name: 'cityId',
163
         name: 'cityId',
139
         render: <CitySelect />,
164
         render: <CitySelect />,
140
-        hidden: () => isHaveActive,
165
+        hidden: () => !isHavePosition || isHaveActive,
141
         value: data.cityId,
166
         value: data.cityId,
142
         rules: [
167
         rules: [
143
           { required: true, message: '请选择展示城市' },
168
           { required: true, message: '请选择展示城市' },
159
         type: FieldTypes.Select,
184
         type: FieldTypes.Select,
160
         hidden: () => isHaveActive,
185
         hidden: () => isHaveActive,
161
         dict: [{
186
         dict: [{
162
-          label: 'h5',
187
+          label: 'H5活动详情',
163
           value: 'h5',
188
           value: 'h5',
164
         },
189
         },
165
         {
190
         {
187
         hidden: () => !isHaveActive,
212
         hidden: () => !isHaveActive,
188
         type: FieldTypes.Select,
213
         type: FieldTypes.Select,
189
         dict: [{
214
         dict: [{
190
-          label: '常规活动',
215
+          label: '报名活动详情',
191
           value: 'activity'
216
           value: 'activity'
192
         },
217
         },
193
         {
218
         {
194
-          label: '项目',
219
+          label: '项目详情',
195
           value: 'project'
220
           value: 'project'
196
         },
221
         },
197
         {
222
         {
198
-          label: '资讯',
223
+          label: '资讯详情',
199
           value: 'news'
224
           value: 'news'
200
         },
225
         },
201
         {
226
         {
202
-          label: '拼团',
227
+          label: '拼团活动详情',
203
           value: 'group'
228
           value: 'group'
204
         },
229
         },
205
         {
230
         {
206
-          label: '助力',
231
+          label: '助力活动详情',
207
           value: 'help'
232
           value: 'help'
208
         },
233
         },
209
         {
234
         {
210
-          label: 'h5',
235
+          label: 'H5活动详情',
211
           value: 'h5',
236
           value: 'h5',
212
         },
237
         },
213
         {
238
         {
214
-          label: '销售批次详情',
239
+          label: '在线选房详情',
215
           value: 'salesBatch',
240
           value: 'salesBatch',
216
         },
241
         },
217
         {
242
         {