魏超 hace 5 años
padre
commit
5218750405

+ 3
- 1
src/pages/activity/ActivityList.jsx Ver fichero

@@ -188,7 +188,9 @@ const header = props => {
188 188
 
189 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 195
         (row.activityStatus === 0 || row.activityStatus === 1) ?
194 196
           <AuthButton name="admin.buildingDynamic.update.put" noRight={null}>

+ 3
- 2
src/pages/activity/drainage/DrainageList.jsx Ver fichero

@@ -237,8 +237,9 @@ const header = (props) => {
237 237
           <EditIcon text="数据" type="data" onClick={toEditList(datas.drainageId)} />
238 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 244
         <AuthButton name="admin.taDrainage.id.delete" noRight={null}>
244 245
           <EditIcon text="下载二维码" type="download" onClick={newQrcode.bind(this, datas)} />

+ 3
- 1
src/pages/activity/groupActivity/list.jsx Ver fichero

@@ -166,7 +166,9 @@ const header = props => {
166 166
             <EditIcon type={row.sort ? 'cancel' : 'top'} text={row.sort ? '取消推首页' : '推荐首页'} onClick={recommendGroupActivity(row)} />
167 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 173
           (row.activityStatus === 0 || row.activityStatus === 1) ?
172 174
             <AuthButton name="admin.taShareActivity.update.put" noRight={null}>

+ 3
- 1
src/pages/activity/helpActivity/list.jsx Ver fichero

@@ -152,7 +152,9 @@ const header = props => {
152 152
           <EditIcon type={row.isMain ? 'cancel' : 'top'} text={row.isMain ? '取消推首页' : '推荐首页'} onClick={topDynamic(row, 1)} />
153 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 159
         (row.activityStatus === 1 || row.activityStatus === 0) ?
158 160
           <AuthButton name="admin.helpActivity.update.put" noRight={null}>

+ 4
- 2
src/pages/activity/liveActivity/list/index.jsx Ver fichero

@@ -189,8 +189,10 @@ const header = props => {
189 189
       title: '操作',
190 190
       align: 'center',
191 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 197
         <AuthButton name="admin.live.detail.get" noRight={null}>
196 198
           <EditIcon type="look" text="查看详情" onClick={toAddLive(record)} />

+ 10
- 10
src/pages/carouselFigure/advertisingList.jsx Ver fichero

@@ -71,13 +71,13 @@ const header = (props) => {
71 71
       render: (contentType) => <span>{contentType === 'project' ? '项目' : contentType === 'activity' ? '活动' : contentType === 'news' ? '资讯' : contentType === 'other' ? '其他' :
72 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 82
       title: '发布时间',
83 83
       dataIndex: 'createDate',
@@ -242,14 +242,14 @@ const header = (props) => {
242 242
             </Select>,
243 243
           )}
244 244
         </Form.Item>
245
-        {/* <Form.Item>
245
+        <Form.Item>
246 246
           {getFieldDecorator('showPosition')(
247 247
             <Select style={{ width: '180px' }} placeholder="发布位置">
248
-              <Option value="mall">商城</Option>
249 248
               <Option value="index">首页</Option>
249
+              <Option value="building">项目</Option>
250 250
             </Select>,
251 251
           )}
252
-        </Form.Item> */}
252
+        </Form.Item>
253 253
         <Form.Item>
254 254
           {getFieldDecorator('status')(
255 255
             <Select style={{ width: '180px' }} placeholder="状态">

+ 35
- 10
src/pages/carouselFigure/editAdvertising.jsx Ver fichero

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