zlisen 3 년 전
부모
커밋
24dddd6e9c

+ 14
- 13
config/routes.js 파일 보기

@@ -540,19 +540,7 @@ export default [
540 540
                 component: './carouselFigure/editAdvertising',
541 541
                 menuCode: '/carouselFigure/editAdvertising',
542 542
               },
543
-              {
544
-                path: '/carouselFigure/customImg/list',
545
-                name: '其他',
546
-                component: './carouselFigure/customImg/list',
547
-                menuCode: '/carouselFigure/customImg/list',
548
-              },
549
-              {
550
-                path: '/carouselFigure/customImg/edit',
551
-                name: '其他编辑',
552
-                hideInMenu: true,
553
-                component: './carouselFigure/customImg/edit',
554
-                menuCode: '/carouselFigure/customImg/edit',
555
-              },
543
+             
556 544
             ],
557 545
           },
558 546
          
@@ -600,6 +588,19 @@ export default [
600 588
                 component: './staff/Organization',
601 589
                 menuCode: '/system/Organization/List',
602 590
               },
591
+              // {
592
+              //   path: '/system/customImg/list',
593
+              //   name: '首页分享',
594
+              //   component: './carouselFigure/customImg/list',
595
+              //   menuCode: '/carouselFigure/customImg/list',
596
+              // },
597
+              {
598
+                path: '/system/customImg/edit',
599
+                name: '首页分享',
600
+                // hideInMenu: true,
601
+                component: './carouselFigure/customImg/edit',
602
+                menuCode: '/carouselFigure/customImg/edit',
603
+              },
603 604
             ],
604 605
           },
605 606
           {

+ 9
- 3
src/components/Share/index.jsx 파일 보기

@@ -68,6 +68,12 @@ const ShareForm = (props) => {
68 68
     }
69 69
   }, [targetId, targetType])
70 70
 
71
+
72
+  const onCancel =()=>{
73
+    setFieldsValue({ shareContentImg:'', shareContentTitle:'' })
74
+    message.info('内容已清空,点击保持后生效')
75
+  }
76
+
71 77
   useEffect(() => {
72 78
     const { shareContentImg, shareContentTitle } = formData || {}
73 79
 
@@ -79,19 +85,19 @@ const ShareForm = (props) => {
79 85
     <Form {...formItemLayout} onSubmit={handleSubmit}>
80 86
       <Form.Item label="分享标题">
81 87
       {getFieldDecorator('shareContentTitle', {
82
-        rules: [{required: true, message: '请填写分享标题'}]
88
+        // rules: [{required: true, message: '请填写分享标题'}]
83 89
       })(<Input placeholder="建议不要超过20字" />)}
84 90
       </Form.Item>
85 91
       <Form.Item label="分享图" help="建议图片尺寸:750*600px,比例5:4,格式:jpg">
86 92
       {getFieldDecorator('shareContentImg', {
87
-          rules: [{ required: true, message: '请上传分享图' }],
93
+          // rules: [{ required: true, message: '请上传分享图' }],
88 94
       })(<ImageUpload />)}
89 95
       </Form.Item>
90 96
       <Form.Item label=" " colon={false} style={{marginTop: '2em'}}>
91 97
         <AuthButton name={rights}>
92 98
           <Button loading={loading} style={{marginLeft: '4em'}} type="primary" htmlType="submit">保存</Button>
93 99
         </AuthButton>
94
-        {/* <Button style={{marginLeft: '2em'}} onClick={props.onCancel}>取消</Button> */}
100
+        <Button style={{marginLeft: '2em'}} onClick={onCancel}>清空</Button>
95 101
       </Form.Item>
96 102
     </Form>
97 103
   )

+ 0
- 1
src/pages/Live/LiveActivity/Edit/components/base.jsx 파일 보기

@@ -230,7 +230,6 @@ const header = props => {
230 230
         <Form.Item label="权重">
231 231
           {getFieldDecorator('weight', {
232 232
             initialValue: liveActivityData.weight,
233
-            rules: [{ required: true, message: '请设置权重' }],
234 233
           })(<InputNumber placeholder="权重越大越靠前" style={{ width: '150px' }} />)}
235 234
         </Form.Item>
236 235
         <Form.Item label="发布状态">

+ 0
- 1
src/pages/Live/LiveActivity/add/index.jsx 파일 보기

@@ -194,7 +194,6 @@ const header = props => {
194 194
         </Form.Item>
195 195
         <Form.Item label="权重">
196 196
           {getFieldDecorator('weight', {
197
-            rules: [{ required: true, message: '请设置权重' }],
198 197
           })(<InputNumber placeholder="权重越大越靠前" style={{ width: '150px' }} />)}
199 198
         </Form.Item>
200 199
         <Form.Item label="发布状态">

+ 0
- 1
src/pages/Live/video/Edit/index.jsx 파일 보기

@@ -164,7 +164,6 @@ const header = props => {
164 164
         <Form.Item label="权重">
165 165
           {getFieldDecorator('weight', {
166 166
             initialValue: data.weight,
167
-            rules: [{ required: true, message: '请设置权重' }],
168 167
           })(<InputNumber placeholder="权重越大越靠前" style={{ width: '150px' }} />)}
169 168
         </Form.Item>
170 169
 

+ 0
- 4
src/pages/activity/SignupActivity/edit/Basic.jsx 파일 보기

@@ -27,10 +27,6 @@ const BasicForm = props => {
27 27
   const [data, setData] = useState(1);
28 28
   const [showSignupTime, setShowSignupTime] = useState([]);
29 29
 
30
-  const radioOnChange = e => {
31
-    setIsEnlist(e.target.value);
32
-  };
33
-
34 30
   const { dynamicId, type } = props;
35 31
 
36 32
   // 查询详情

+ 2
- 2
src/pages/activity/groupRoomActivity/detail.jsx 파일 보기

@@ -134,9 +134,9 @@ const BasicForm = props => {
134 134
         <Form.Item label="活动标题">
135 135
           <span>{detailData.title}</span>
136 136
         </Form.Item>
137
-        {/* <Form.Item label="副标题">
137
+        <Form.Item label="副标题">
138 138
           <span>{detailData.halfTitle}</span>
139
-        </Form.Item> */}
139
+        </Form.Item>
140 140
         <Form.Item label="活动时间">
141 141
           <span>{`${moment(detailData.startDate).format('YYYY-MM-DD HH:mm')} —— ${moment(
142 142
             detailData.endDate,

+ 11
- 1
src/pages/activity/groupRoomActivity/edit/Basic.jsx 파일 보기

@@ -188,7 +188,7 @@ const BasicForm = props => {
188 188
         </Form.Item> */}
189 189
         <Form.Item
190 190
           label="活动详情主图"
191
-          help="建议图片尺寸:750*415px,比例16:9,格式:jpg,用于:普通活动详情"
191
+          help="建议图片尺寸:750*415px,比例16:9,格式:jpg,用于:活动详情"
192 192
         >
193 193
           {getFieldDecorator('imgUrl', {
194 194
             rules: [
@@ -209,6 +209,16 @@ const BasicForm = props => {
209 209
             ],
210 210
           })(<Input />)}
211 211
         </Form.Item>
212
+        <Form.Item label="活动副标题">
213
+          {getFieldDecorator('halfTitle', {
214
+            rules: [
215
+              {
216
+                required: true,
217
+                message: '请输入活动副标题',
218
+              },
219
+            ],
220
+          })(<Input />)}
221
+        </Form.Item>
212 222
         <Form.Item label="活动时间">
213 223
           {getFieldDecorator('activityTime', {
214 224
             rules: [

+ 1
- 1
src/pages/building/Edit/Basic/index.jsx 파일 보기

@@ -179,7 +179,7 @@ const BuildingBasic = React.forwardRef((props, ref) => {
179 179
             {getFieldDecorator('isRecentOpening', { valuePropName: 'checked' })(<Switch />)}
180 180
           </Form.Item>
181 181
         </FormGroupItem>
182
-        <Form.Item label="列表均价" help="项目列表展示价格,示例:约10000元/㎡、约1000万元/套起">
182
+        <Form.Item label="列表均价" help="项目列表展示价格,示例:约10000元/㎡、约1000万元/套起;建议不要超过10个中文字符或20个英文字符,否则可能影响小程序端展示美观">
183 183
           {getFieldDecorator('price', {
184 184
               rules: [{ required: true, message: '请输入列表均价' }],
185 185
           })(<Input />)}

+ 4
- 2
src/pages/building/Edit/Panorama/Form.jsx 파일 보기

@@ -23,6 +23,8 @@ const AMForm = props => {
23 23
       }
24 24
       const data = values;
25 25
       data.buildingId = props.buildingId;
26
+      data.panoramaType = 'building';
27
+      
26 28
       const api = apis.paorama.add;
27 29
 
28 30
       // 网路请求
@@ -40,7 +42,7 @@ const AMForm = props => {
40 42
 
41 43
   return (
42 44
     <ModalForm title="全景设置" visible={visible} onCancel={onCancel} modalProps={{destroyOnClose:true}} onSubmit={submitData}>
43
-      <Form.Item label="全景类型">
45
+      {/* <Form.Item label="全景类型">
44 46
         {getFieldDecorator('panoramaType', {
45 47
           initialValue:panoramaType,
46 48
           rules: [{ required: true, message: '请选择全景类型' }],
@@ -50,7 +52,7 @@ const AMForm = props => {
50 52
             <Radio.Button value="building">项目</Radio.Button>
51 53
           </Radio.Group>,
52 54
         )}
53
-      </Form.Item>
55
+      </Form.Item> */}
54 56
       {/* {panoramaType == 'apartment' && (
55 57
         <Form.Item label="全景内容">
56 58
           {getFieldDecorator('apartmentId', {

+ 11
- 11
src/pages/building/Edit/Panorama/List.jsx 파일 보기

@@ -21,17 +21,17 @@ export default props => {
21 21
         />
22 22
       ),
23 23
     },
24
-    {
25
-      title: '类型',
26
-      dataIndex: 'panoramaType',
27
-      key: 'panoramaType',
28
-      render: (x, record) => <span>{x === 'apartment' ? '户型' : '项目'}</span>,
29
-    },
30
-    {
31
-      title: '内容',
32
-      dataIndex: 'content',
33
-      key: 'content',
34
-    },
24
+    // {
25
+    //   title: '类型',
26
+    //   dataIndex: 'panoramaType',
27
+    //   key: 'panoramaType',
28
+    //   render: (x, record) => <span>{x === 'apartment' ? '户型' : '项目'}</span>,
29
+    // },
30
+    // {
31
+    //   title: '内容',
32
+    //   dataIndex: 'content',
33
+    //   key: 'content',
34
+    // },
35 35
     {
36 36
       title: '链接地址',
37 37
       dataIndex: 'panoramaLink',

+ 46
- 53
src/pages/carouselFigure/customImg/edit.jsx 파일 보기

@@ -16,31 +16,12 @@ let helpTips = '';
16 16
 const XForm = createForm();
17 17
 
18 18
 const header = props => {
19
-  const {
20
-    currentUser = {
21
-      avatar: '',
22
-      userName: '',
23
-    },
24
-    menu,
25
-  } = props;
26
-
27
-  const imgId = props.location.query.imgId;
28
-  const imgType = props.location.query.imgType;
29
-
30
-  const [data, setData] = useState({}
31
-    // imgType === 'index'
32
-    //   ? {
33
-    //       imgUrl:
34
-    //         'https://estateagents.oss-cn-shanghai.aliyuncs.com/miniapp/upload/images/1574145199853-97feda7895c65be33aa234a7b81b37f.jpg',
35
-    //       imgType: 'index',
36
-    //       imgDesc: '小程序首页分享配图',
37
-    //       imgDocument: currentUser.orgName + ' 精准获客平台',
38
-    //     }
39
-    //   : {
40
-    //       imgUrl: 'http://njcj.oss-cn-shanghai.aliyuncs.com/icon.png',
41
-    //       imgType: 'indexNews',
42
-    //     },
43
-  );
19
+
20
+
21
+  const imgId =1;
22
+
23
+
24
+  const [data, setData] = useState({});
44 25
 
45 26
   if (imgId) {
46 27
     useEffect(() => {
@@ -49,7 +30,8 @@ const header = props => {
49 30
 
50 31
     // 查询列表
51 32
     const getData = imgId => {
52
-      request({ ...apis.carsuseFigure.getCustomImg, urlData: { id: imgId } }).then(data => {
33
+
34
+      request({ ...apis.carsuseFigure.getCustomImg, urlData: { id: 1 } }).then(data => {
53 35
 
54 36
         setData(data);
55 37
       });
@@ -65,51 +47,62 @@ const header = props => {
65 47
       help: '建议图片尺寸:750*600px,比例5:4,格式:jpg,用于:首页分享',
66 48
       rules: [{ required: true, message: '请选择图片' }],
67 49
     },
50
+    // {
51
+    //   label: '类型',
52
+    //   name: 'imgType',
53
+    //   type: FieldTypes.Select,
54
+    //   value: data.imgType,
55
+    //   dict: [
56
+    //     {
57
+    //       label: '首页分享',
58
+    //       value: 'index',
59
+    //     },
60
+    //     // {
61
+    //     //   label: '首页资讯',
62
+    //     //   value: 'indexNews',
63
+    //     // },
64
+    //   ],
65
+    //   rules: [{ required: true, message: '请选择类型' }],
66
+    // },
68 67
     {
69
-      label: '类型',
70
-      name: 'imgType',
71
-      type: FieldTypes.Select,
72
-      value: data.imgType,
73
-      dict: [
74
-        {
75
-          label: '首页分享',
76
-          value: 'index',
77
-        },
78
-        // {
79
-        //   label: '首页资讯',
80
-        //   value: 'indexNews',
81
-        // },
82
-      ],
83
-      rules: [{ required: true, message: '请选择类型' }],
84
-    },
85
-    data.imgType === 'index' && {
86 68
       label: '分享文案',
87 69
       name: 'imgDocument',
88 70
       type: FieldTypes.Text,
89 71
       value: data.imgDocument,
90 72
       rules: [{ required: true, message: '请输入分享文案' }],
91 73
     },
74
+    {
75
+      label: '是否启用',
76
+      name: 'status',
77
+      type: FieldTypes.Switch,
78
+      value: data.status===1?true:false,
79
+      // rules: [{ required: true, message: '请输入分享文案' }],
80
+    },
92 81
   ];
93 82
 
94 83
   const handleSubmit = values => {
95 84
     if (imgId) {
96 85
       values.imgId = imgId;
86
+      values.imgType = 'index'
87
+      values.status = values.status==true?1:-1
97 88
       request({ ...apis.carsuseFigure.updateCustomImg, data: values })
98 89
         .then(data => {
99
-          cancelPage();
100
-        })
101
-        .catch(err => {
102
-          message.info(err.msg || err.message);
103
-        });
104
-    } else {
105
-      request({ ...apis.carsuseFigure.addCustomImg, data: values })
106
-        .then(data => {
107
-          cancelPage();
90
+          message.info('操作成功');
91
+          // cancelPage();
108 92
         })
109 93
         .catch(err => {
110 94
           message.info(err.msg || err.message);
111 95
         });
112
-    }
96
+    } 
97
+    // else {
98
+    //   request({ ...apis.carsuseFigure.addCustomImg, data: values })
99
+    //     .then(data => {
100
+    //       cancelPage();
101
+    //     })
102
+    //     .catch(err => {
103
+    //       message.info(err.msg || err.message);
104
+    //     });
105
+    // }
113 106
   };
114 107
 
115 108
   const cancelPage = () => {

+ 1
- 1
src/pages/carouselFigure/customImg/list.jsx 파일 보기

@@ -35,7 +35,7 @@ function header(props) {
35 35
   // 跳转到编辑商品
36 36
   const toEditCustom = (imgId, imgType) => () => {
37 37
     router.push({
38
-      pathname: '/carouselFigure/customImg/edit',
38
+      pathname: '/system/customImg/edit',
39 39
       query: {
40 40
         imgId,
41 41
         imgType: imgType

+ 17
- 16
src/pages/carouselFigure/editAdvertising.jsx 파일 보기

@@ -360,22 +360,22 @@ const createEditor = () => {
360 360
         value: data.targetId,
361 361
         rules: [{ required: true, message: '请选择发布直播活动' }],
362 362
       },
363
-      {
364
-        label: '状态',
365
-        name: 'status',
366
-        type: FieldTypes.Select,
367
-        dict: [
368
-          {
369
-            label: '上架',
370
-            value: 1,
371
-          },
372
-          {
373
-            label: '下架',
374
-            value: 0,
375
-          },
376
-        ],
377
-        value: data.status != null ? data.status : 1,
378
-      },
363
+      // {
364
+      //   label: '状态',
365
+      //   name: 'status',
366
+      //   type: FieldTypes.Select,
367
+      //   dict: [
368
+      //     {
369
+      //       label: '上架',
370
+      //       value: 1,
371
+      //     },
372
+      //     {
373
+      //       label: '下架',
374
+      //       value: 0,
375
+      //     },
376
+      //   ],
377
+      //   value: data.status != null ? data.status : 1,
378
+      // },
379 379
     ];
380 380
 
381 381
     const handleSubmit = val => {
@@ -402,6 +402,7 @@ const createEditor = () => {
402 402
             message.info(err.msg || err.message);
403 403
           });
404 404
       } else {
405
+        val.status=0
405 406
         request({ ...apis.carsuseFigure.addExtendContent, data: val })
406 407
           .then(data => {
407 408
             cancelPage();

+ 17
- 16
src/pages/carouselFigure/editCarousel.jsx 파일 보기

@@ -331,22 +331,22 @@ const Edit = props => {
331 331
         value: data.targetId,
332 332
         rules: [{ required: true, message: '请选择发布直播活动' }],
333 333
       },
334
-      {
335
-        label: '状态',
336
-        name: 'status',
337
-        type: FieldTypes.Select,
338
-        dict: [
339
-          {
340
-            label: '上架',
341
-            value: 1,
342
-          },
343
-          {
344
-            label: '下架',
345
-            value: 0,
346
-          },
347
-        ],
348
-        value: data.status != null ? data.status : 1,
349
-      },
334
+      // {
335
+      //   label: '状态',
336
+      //   name: 'status',
337
+      //   type: FieldTypes.Select,
338
+      //   dict: [
339
+      //     {
340
+      //       label: '上架',
341
+      //       value: 1,
342
+      //     },
343
+      //     {
344
+      //       label: '下架',
345
+      //       value: 0,
346
+      //     },
347
+      //   ],
348
+      //   value: data.status != null ? data.status : 1,
349
+      // },
350 350
       {
351 351
         label: '权重',
352 352
         name: 'orderNo',
@@ -383,6 +383,7 @@ const Edit = props => {
383 383
             message.info(err.msg || err.message);
384 384
           });
385 385
       } else {
386
+        val.status=0
386 387
         request({ ...apis.carsuseFigure.addExtendContent, data: val })
387 388
           .then(data => {
388 389
             message.info('操作成功');

+ 2
- 2
src/pages/channel/independentList/index.jsx 파일 보기

@@ -9,7 +9,7 @@ import {
9 9
   Card,
10 10
   Row,
11 11
   Col,
12
-  Pagination,
12
+  Popconfirm,
13 13
   Alert,
14 14
   Table,
15 15
   Avatar,
@@ -433,7 +433,7 @@ function body(props) {
433 433
     request({ ...apis.customer.deleteChannelPerson, urlData: { id: row.personId } })
434 434
       .then(response => {
435 435
         message.info('删除成功');
436
-        getList({ pageNum: pageNum, pageSize: 10, ...fieldsValue });
436
+        getList({ pageNum: 1, pageSize: 10, ...fieldsValue });
437 437
       })
438 438
       .catch(error => {});
439 439
   }

+ 3
- 3
src/pages/customer/Customer/PublicCustomer/index.jsx 파일 보기

@@ -225,7 +225,7 @@ const PublicCustomer = () => {
225 225
         <Button type="primary" loading={exportLoding} onClick={() => exportCustomer()}>
226 226
           导出
227 227
         </Button>
228
-        {/* <AuthButton name="admin.customer.import" noRight={null}>
228
+        <AuthButton name="admin.customer.import" noRight={null}>
229 229
           <Button
230 230
             type="primary"
231 231
             onClick={() => batchAssistConsultant()}
@@ -233,7 +233,7 @@ const PublicCustomer = () => {
233 233
           >
234 234
             批量分配置业顾问
235 235
           </Button>
236
-        </AuthButton> */}
236
+        </AuthButton>
237 237
       </>
238 238
     );
239 239
   };
@@ -255,7 +255,7 @@ const PublicCustomer = () => {
255 255
     <>
256 256
       <QueryTable
257 257
         ref={ref}
258
-        // rowSelection={rowSelection}
258
+        rowSelection={rowSelection}
259 259
         rowKey="customerId"
260 260
         api={apis.customer.customerRecommend}
261 261
         searchFields={searchFields}

+ 5
- 4
src/pages/staff/Role/Edit/index.jsx 파일 보기

@@ -183,13 +183,14 @@ const Poster = props => {
183 183
   const gridStyle1 = {
184 184
     width: '20%',
185 185
     textAlign: 'left',
186
-    height: '72px',
186
+    height: '120px',
187 187
     padding: '24px',
188 188
   };
189 189
   const gridStyle2 = {
190
+    // flex:'1',
190 191
     width: '80%',
191 192
     textAlign: 'left',
192
-    height: '72px',
193
+    height: '120px',
193 194
   };
194 195
 
195 196
   function toRoleList() {
@@ -277,7 +278,7 @@ const Poster = props => {
277 278
                           menu =>
278 279
                             item.menuId === menu.menuRoot &&
279 280
                             item.menuId !== menu.menuId && (
280
-                              <>
281
+                              <div >
281 282
                                 <Card.Grid style={gridStyle1}>
282 283
                                   <Checkbox
283 284
                                     checked={dataMenuId.includes(menu.menuId)}
@@ -301,7 +302,7 @@ const Poster = props => {
301 302
                                       </>
302 303
                                     ))}
303 304
                                 </Card.Grid>
304
-                              </>
305
+                              </div>
305 306
                             ),
306 307
                         )}
307 308
                       </Card>

+ 5
- 0
src/pages/staff/staff/list/index.jsx 파일 보기

@@ -127,6 +127,11 @@ export default props => {
127 127
       label: '姓名',
128 128
       placeholder: '请输入姓名',
129 129
     },
130
+    {
131
+      name: 'phone',
132
+      label: '电话',
133
+      placeholder: '请输入手机号',
134
+    },
130 135
     {
131 136
       name: 'isConsultant',
132 137
       label: '类型',