傅行帆 5 anni fa
parent
commit
15c1ee1c9f
2 ha cambiato i file con 48 aggiunte e 22 eliminazioni
  1. 38
    19
      config/config.js
  2. 10
    3
      src/pages/activity/editActivity.jsx

+ 38
- 19
config/config.js Vedi File

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

+ 10
- 3
src/pages/activity/editActivity.jsx Vedi File

@@ -26,8 +26,7 @@ const { TextArea } = Input;
26 26
  * @returns
27 27
  */
28 28
 const Edit = (props) => {
29
-  const [tab, changeTab] = useState('poster')
30
-  // const [tab, changeTab] = useState('basic')
29
+  const [tab, changeTab] = useState('basic')
31 30
   const dynamicId = props.location.query.dynamicId
32 31
   const [dynamicData, setDynamicData] = useState({})
33 32
   if (dynamicId) {
@@ -173,6 +172,14 @@ const Edit = (props) => {
173 172
     const [inputValue, changeInput] = useState('')
174 173
     const [textAreaValue, changeTextArea] = useState('')
175 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 183
     return <div>
177 184
       <div style={{ display: 'flex' }}>
178 185
         <div style={{ width: '420px', height: '900px', display: 'inline-block', marginTop: '30px' }}>
@@ -223,7 +230,7 @@ const Edit = (props) => {
223 230
 
224 231
         </div>
225 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 234
       <Button onClick={() => router.go(-1)}>取消</Button>
228 235
     </div>
229 236