傅行帆 5 年之前
父節點
當前提交
15c1ee1c9f
共有 2 個文件被更改,包括 48 次插入22 次删除
  1. 38
    19
      config/config.js
  2. 10
    3
      src/pages/activity/editActivity.jsx

+ 38
- 19
config/config.js 查看文件

124
                 },
124
                 },
125
                 {
125
                 {
126
                   path: '/building/list/add',
126
                   path: '/building/list/add',
127
-                  name: '', // 项目添加
127
+                  name: '项目添加', // 项目添加
128
+                  hideInMenu: true,
128
                   component: './building/list/add/index',
129
                   component: './building/list/add/index',
129
                 },
130
                 },
130
                 {
131
                 {
134
                 },
135
                 },
135
                 {
136
                 {
136
                   path: '/building/type/edi',
137
                   path: '/building/type/edi',
137
-                  name: '',
138
+                  name: '项目类型编辑',
139
+                  hideInMenu: true,
138
                   component: './building/type/edi',
140
                   component: './building/type/edi',
139
                 },
141
                 },
140
               ],
142
               ],
151
                 },
153
                 },
152
                 {
154
                 {
153
                   path: '/customer/customerlist/customerDetail',
155
                   path: '/customer/customerlist/customerDetail',
154
-                  name: '',
156
+                  name: '客户编辑',
157
+                  hideInMenu: true,
155
                   component: './customer/customerlist/customerDetail',
158
                   component: './customer/customerlist/customerDetail',
156
                 },
159
                 },
157
                 {
160
                 {
171
                 },
174
                 },
172
                 {
175
                 {
173
                   path: '/customer/recommendCustomer/audit',
176
                   path: '/customer/recommendCustomer/audit',
174
-                  name: '', //审核
177
+                  name: '客户审核', 
178
+                  hideInMenu: true,
175
                   component: './customer/recommendCustomer/audit',
179
                   component: './customer/recommendCustomer/audit',
176
                 },
180
                 },
177
                 {
181
                 {
198
                 },
202
                 },
199
                 {
203
                 {
200
                   path: '/integralMall/editGoods',
204
                   path: '/integralMall/editGoods',
201
-                  name: '',
205
+                  name: '商品编辑',
206
+                  hideInMenu: true,
202
                   component: './integralMall/editGoods',
207
                   component: './integralMall/editGoods',
203
                 },
208
                 },
204
                 {
209
                 {
213
                 },
218
                 },
214
                 {
219
                 {
215
                   path: '/integralMall/verifyList',
220
                   path: '/integralMall/verifyList',
216
-                  name: '',
221
+                  name: '商品核销列表',
222
+                  hideInMenu: true,
217
                   component: './integralMall/verifyList',
223
                   component: './integralMall/verifyList',
218
                 },
224
                 },
219
               ],
225
               ],
230
                 },
236
                 },
231
                 {
237
                 {
232
                   path: '/channel/addChannel',
238
                   path: '/channel/addChannel',
233
-                  name: '',
239
+                  name: '添加渠道',
240
+                  hideInMenu: true,
234
                   component: './channel/addChannel',
241
                   component: './channel/addChannel',
235
                 },
242
                 },
236
                 {
243
                 {
237
                   path: '/channel/editChannel',
244
                   path: '/channel/editChannel',
238
-                  name: '',
245
+                  name: '编辑渠道',
246
+                  hideInMenu: true,
239
                   component: './channel/editChannel',
247
                   component: './channel/editChannel',
240
                 },
248
                 },
241
                 {
249
                 {
245
                 },
253
                 },
246
                 {
254
                 {
247
                   path: '/channel/recommendClients',
255
                   path: '/channel/recommendClients',
248
-                  name: '',
256
+                  name: '渠道推荐',
257
+                  hideInMenu: true,
249
                   component: './channel/recommendClients',
258
                   component: './channel/recommendClients',
250
                 },
259
                 },
251
                 {
260
                 {
252
                   path: '/channel/InviteClients',
261
                   path: '/channel/InviteClients',
253
-                  name: '',
262
+                  name: '邀请客户',
263
+                  hideInMenu: true,
254
                   component: './channel/InviteClients',
264
                   component: './channel/InviteClients',
255
                 },
265
                 },
256
               ],
266
               ],
267
                 },
277
                 },
268
                 {
278
                 {
269
                   path: '/news/type/editNews',
279
                   path: '/news/type/editNews',
270
-                  name: '',
280
+                  name: '编辑资讯类型',
281
+                  hideInMenu: true,
271
                   component: './news/type/editNews',
282
                   component: './news/type/editNews',
272
                 },
283
                 },
273
                 {
284
                 {
277
                 },
288
                 },
278
                 {
289
                 {
279
                   path: '/news/list/editNewsList',
290
                   path: '/news/list/editNewsList',
280
-                  name: '',
291
+                  name: '编辑资讯',
292
+                  hideInMenu: true,
281
                   component: './news/list/editNewsList',
293
                   component: './news/list/editNewsList',
282
                 },
294
                 },
283
               ],
295
               ],
294
                 },
306
                 },
295
                 {
307
                 {
296
                   path: '/activity/editActivity',
308
                   path: '/activity/editActivity',
297
-                  name: '',
309
+                  name: '编辑活动',
310
+                  hideInMenu: true,
298
                   component: './activity/editActivity',
311
                   component: './activity/editActivity',
299
                 },
312
                 },
300
                 {
313
                 {
301
                   path: '/activity/SignList',
314
                   path: '/activity/SignList',
302
-                  name: '',
315
+                  name: '报名列表',
316
+                  hideInMenu: true,
303
                   component: './activity/SignList',
317
                   component: './activity/SignList',
304
                 },
318
                 },
305
               ],
319
               ],
316
                 },
330
                 },
317
                 {
331
                 {
318
                   path: '/staff/editStaff',
332
                   path: '/staff/editStaff',
319
-                  name: '',
333
+                  name: '编辑员工',
334
+                  hideInMenu: true,
320
                   component: './staff/list/editStaff',
335
                   component: './staff/list/editStaff',
321
                 },
336
                 },
322
 
337
 
327
                 },
342
                 },
328
                 {
343
                 {
329
                   path: '/staff/editRole',
344
                   path: '/staff/editRole',
330
-                  name: '',
345
+                  name: '编辑角色',
346
+                  hideInMenu: true,
331
                   component: './staff/list/editRole',
347
                   component: './staff/list/editRole',
332
                 },
348
                 },
333
 
349
 
345
                 },
361
                 },
346
                 {
362
                 {
347
                   path: '/carouselFigure/editCarousel',
363
                   path: '/carouselFigure/editCarousel',
348
-                  name: '',
364
+                  name: '轮播图编辑',
365
+                  hideInMenu: true,
349
                   component: './carouselFigure/editCarousel',
366
                   component: './carouselFigure/editCarousel',
350
                 },
367
                 },
351
                 {
368
                 {
355
                 },
372
                 },
356
                 {
373
                 {
357
                   path: '/carouselFigure/editAdvertising',
374
                   path: '/carouselFigure/editAdvertising',
358
-                  name: '',
375
+                  name: '开屏广告编辑',
376
+                  hideInMenu: true,
359
                   component: './carouselFigure/editAdvertising',
377
                   component: './carouselFigure/editAdvertising',
360
                 },
378
                 },
361
               ],
379
               ],
387
                 },
405
                 },
388
                 {
406
                 {
389
                   path: '/system/editPolicy',
407
                   path: '/system/editPolicy',
390
-                  name: '',
408
+                  name: '购房政策编辑',
409
+                  hideInMenu: true,
391
                   component: './system/editPolicy',
410
                   component: './system/editPolicy',
392
                 },
411
                 },
393
               ],
412
               ],

+ 10
- 3
src/pages/activity/editActivity.jsx 查看文件

26
  * @returns
26
  * @returns
27
  */
27
  */
28
 const Edit = (props) => {
28
 const Edit = (props) => {
29
-  const [tab, changeTab] = useState('poster')
30
-  // const [tab, changeTab] = useState('basic')
29
+  const [tab, changeTab] = useState('basic')
31
   const dynamicId = props.location.query.dynamicId
30
   const dynamicId = props.location.query.dynamicId
32
   const [dynamicData, setDynamicData] = useState({})
31
   const [dynamicData, setDynamicData] = useState({})
33
   if (dynamicId) {
32
   if (dynamicId) {
173
     const [inputValue, changeInput] = useState('')
172
     const [inputValue, changeInput] = useState('')
174
     const [textAreaValue, changeTextArea] = useState('')
173
     const [textAreaValue, changeTextArea] = useState('')
175
     const [imgValue, changeImg] = useState('')
174
     const [imgValue, changeImg] = useState('')
175
+
176
+    const submitPoster  = () => {
177
+      console.log(inputValue)
178
+      console.log(textAreaValue)
179
+      console.log(imgValue)
180
+      console.log(dynamicId)
181
+    }
182
+
176
     return <div>
183
     return <div>
177
       <div style={{ display: 'flex' }}>
184
       <div style={{ display: 'flex' }}>
178
         <div style={{ width: '420px', height: '900px', display: 'inline-block', marginTop: '30px' }}>
185
         <div style={{ width: '420px', height: '900px', display: 'inline-block', marginTop: '30px' }}>
223
 
230
 
224
         </div>
231
         </div>
225
       </div>
232
       </div>
226
-      <Button type="primary" onClick={() => router.go(-1)} style={{ margin: '40px 40px 40px 30vw' }}> 确定</Button>
233
+      <Button type="primary" onClick={submitPoster} style={{ margin: '40px 40px 40px 30vw' }}> 确定</Button>
227
       <Button onClick={() => router.go(-1)}>取消</Button>
234
       <Button onClick={() => router.go(-1)}>取消</Button>
228
     </div>
235
     </div>
229
 
236