张延森 4 лет назад
Родитель
Сommit
a5f94753b2

+ 2
- 0
src/pages/carouselFigure/carouselFigureList.jsx Просмотреть файл

@@ -19,7 +19,9 @@ const ContentTypeDict = {
19 19
   'notice': '公告',
20 20
   'tpNews': '服务',
21 21
   'activity': '活动',
22
+  'mall': '积分商城',
22 23
   'news': '资讯',
24
+  'nothing': '无',
23 25
 }
24 26
 
25 27
 const PositionDict = {

+ 15
- 15
src/pages/carouselFigure/editCarousel.jsx Просмотреть файл

@@ -252,12 +252,12 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
252 252
             //   label: '项目',
253 253
             //   value: 'project',
254 254
             // },
255
-            // {
256
-            //   label: '资讯',
257
-            //   value: 'news',
258
-            // },
259 255
             {
260
-              label: '商城',
256
+              label: '资讯',
257
+              value: 'news',
258
+            },
259
+            {
260
+              label: '积分商城',
261 261
               value: 'mall',
262 262
             },
263 263
             {
@@ -366,16 +366,16 @@ const { MonthPicker, RangePicker, WeekPicker } = DatePicker;
366 366
             { required: true, message: '请选择发布服务' },
367 367
           ],
368 368
         },
369
-        // {
370
-        //   label: '发布资讯',
371
-        //   name: 'targetId',
372
-        //   render: <SelectNews buildingId={() => buildingId} />,
373
-        //   hidden: () => !newsVisible,
374
-        //   value: data.targetId,
375
-        //   rules: [
376
-        //     { required: true, message: '请选择发布资讯' },
377
-        //   ],
378
-        // },
369
+        {
370
+          label: '发布资讯',
371
+          name: 'targetId',
372
+          render: <SelectNews buildingId={() => buildingId} />,
373
+          hidden: () => !newsVisible,
374
+          value: data.targetId,
375
+          rules: [
376
+            { required: true, message: '请选择发布资讯' },
377
+          ],
378
+        },
379 379
         // {
380 380
         //   label: '发布内容',
381 381
         //   name: 'content',

+ 2
- 2
src/pages/carouselFigure/propagandaList.jsx Просмотреть файл

@@ -82,7 +82,7 @@ const header = (props) => {
82 82
     //   dataIndex: 'showPosition',
83 83
     //   key: 'showPosition',
84 84
     //   align: 'center',
85
-    //   render: (showPosition) => <span>{ showPosition === 'index' ? '首页' : showPosition === 'mall' ? '商城' : '' }</span>
85
+    //   render: (showPosition) => <span>{ showPosition === 'index' ? '首页' : showPosition === 'mall' ? '积分商城' : '' }</span>
86 86
     // },
87 87
     {
88 88
       title: '发布时间',
@@ -253,7 +253,7 @@ const header = (props) => {
253 253
         {/* <Form.Item>
254 254
           {getFieldDecorator('showPosition')(
255 255
             <Select style={{ width: '180px' }} placeholder="发布位置">
256
-              <Option value="mall">商城</Option>
256
+              <Option value="mall">积分商城</Option>
257 257
               <Option value="index">首页</Option>
258 258
             </Select>,
259 259
           )}