zlisen 3 anni fa
parent
commit
73bde17c23

+ 7
- 6
config/routes.js Vedi File

@@ -486,8 +486,9 @@ export default [
486 486
               },
487 487
             ],
488 488
           },
489
+         
489 490
           {
490
-            path: '/',
491
+            path: '/system',
491 492
             name: '系统管理',
492 493
             component: '../layouts/BlankLayout',
493 494
             routes: [
@@ -497,29 +498,29 @@ export default [
497 498
                 component: './system/intention',
498 499
               },
499 500
               {
500
-                path: '/staff/Staff/List',
501
+                path: '/system/Staff/List',
501 502
                 name: '员工列表',
502 503
                 component: './staff/Staff/List',
503 504
               },
504 505
               {
505
-                path: '/staff/Staff/Edit',
506
+                path: '/system/Staff/Edit',
506 507
                 name: '编辑员工',
507 508
                 hideInMenu: true,
508 509
                 component: './staff/Staff/Edit',
509 510
               },
510 511
               {
511
-                path: '/staff/Role/List',
512
+                path: '/system/Role/List',
512 513
                 name: '角色管理',
513 514
                 component: './staff/Role/List',
514 515
               },
515 516
               {
516
-                path: '/staff/Role/Edit',
517
+                path: '/system/Role/Edit',
517 518
                 name: '编辑角色',
518 519
                 hideInMenu: true,
519 520
                 component: './staff/Role/Edit',
520 521
               },
521 522
               {
522
-                path: '/staff/Organization/List',
523
+                path: '/system/Organization/List',
523 524
                 name: '组织架构',
524 525
                 component: './staff/Organization',
525 526
               },

+ 3
- 4
src/pages/Live/LiveActivity/Edit/components/base.jsx Vedi File

@@ -55,9 +55,7 @@ const header = props => {
55 55
   };
56 56
 
57 57
   const cancelPage = () => {
58
-    router.push({
59
-      pathname: '/activity/liveActivity/list/index',
60
-    });
58
+    router.go('-1')
61 59
   };
62 60
 
63 61
   //打开新页面
@@ -120,12 +118,13 @@ const header = props => {
120 118
         <Form.Item label="所属城市">
121 119
           {getFieldDecorator('cityId', {
122 120
             initialValue: liveActivityData.cityId,
123
-            rules: [{ required: true, message: ' 请输入所属城市' }],
121
+            rules: [{ required: true, message: ' 请选择所属城市' }],
124 122
           })(<CitySelect3 buildingId={props.form.getFieldValue('buildingId')} />)}
125 123
         </Form.Item>
126 124
         <Form.Item label="所属楼盘">
127 125
           {getFieldDecorator('buildingId', {
128 126
             initialValue: liveActivityData.buildingId,
127
+            rules: [{ required: true, message: ' 请选择所属楼盘' }],
129 128
           })(<BuildSelect2 cityId={props.form.getFieldValue('cityId')} />)}
130 129
         </Form.Item>
131 130
         <Form.Item label="直播活动标题">

+ 4
- 2
src/pages/Live/LiveActivity/add/index.jsx Vedi File

@@ -81,11 +81,13 @@ const header = props => {
81 81
       <Form labelCol={{ span: 7 }} wrapperCol={{ span: 12 }} onSubmit={handleSubmit}>
82 82
         <Form.Item label="所属城市">
83 83
           {getFieldDecorator('cityId', {
84
-            rules: [{ required: true, message: ' 请输入所属城市' }],
84
+            rules: [{ required: true, message: ' 请选择所属城市' }],
85 85
           })(<CitySelect3 buildingId={props.form.getFieldValue('buildingId')}/>)}
86 86
         </Form.Item>
87 87
         <Form.Item label="所属楼盘">
88
-          {getFieldDecorator('buildingId')(<BuildSelect2 cityId={props.form.getFieldValue('cityId')}/>)}
88
+          {getFieldDecorator('buildingId', {
89
+            rules: [{ required: true, message: ' 请选择所属楼盘' }],
90
+          })(<BuildSelect2 cityId={props.form.getFieldValue('cityId')}/>)}
89 91
         </Form.Item>
90 92
         <Form.Item label="直播活动标题">
91 93
           {getFieldDecorator('liveActivityTitle', {

+ 3
- 1
src/pages/building/Edit/Basic/index.jsx Vedi File

@@ -130,7 +130,9 @@ const BuildingBasic = React.forwardRef((props, ref) => {
130 130
           {getFieldDecorator('buildingId')(<Input disabled />)}
131 131
         </Item>
132 132
         <Item label="城市公司">
133
-          {getFieldDecorator('institutionId')(
133
+          {getFieldDecorator('institutionId',{
134
+            rules: [{ required: true, message: '请选择城市公司号' }],
135
+          })(
134 136
             <InstitutionSelect />
135 137
           )}
136 138
         </Item>

+ 2
- 2
src/pages/staff/Role/List/index.jsx Vedi File

@@ -25,13 +25,13 @@ const header = props => {
25 25
 
26 26
   function addRole(roleId) {
27 27
     router.push({
28
-      pathname: '/staff/Role/Edit',
28
+      pathname: '/system/Role/Edit',
29 29
     });
30 30
   }
31 31
 
32 32
   function toEditRole(roleId) {
33 33
     router.push({
34
-      pathname: '/staff/Role/Edit',
34
+      pathname: '/system/Role/Edit',
35 35
       query: {
36 36
         id: roleId,
37 37
       },

+ 3
- 1
src/pages/staff/staff/Edit/index.jsx Vedi File

@@ -70,7 +70,9 @@ const StaffEdit = props => {
70 70
   }, []);
71 71
 
72 72
   const handleSubmit = val => {
73
-    val.institutionIdLis =  val.institutionIdLis?.split(',')
73
+    console.log(val,userId,'----------111------------')
74
+    // val.institutionIdLis =  val?.institutionIdLis?.split(',')
75
+    // console.log(val,userId,'----------------------')
74 76
     if (userId) {
75 77
       request({ ...apis.staff.updateTaUser, urlData: { id: userId }, data: val })
76 78
         .then(data => {

+ 1
- 1
src/pages/staff/staff/list/index.jsx Vedi File

@@ -19,7 +19,7 @@ export default props => {
19 19
   const toEdit = useCallback(row => {
20 20
     //跳转到编辑商品
21 21
     router.push({
22
-      pathname: '/staff/Staff/Edit',
22
+      pathname: '/system/Staff/Edit',
23 23
       query: {
24 24
         userId: row?.userId || undefined,
25 25
       },

+ 2
- 2
src/pages/statistics/activity/index.jsx Vedi File

@@ -119,8 +119,8 @@ const DataReport = props => {
119 119
       <Table
120 120
         columns={columns}
121 121
         dataSource={data?.records}
122
-        key="ff87cf95ed63367168bcb081c15d9d5e"
123
-        pagination={{current:data?.current, pageSize: '10', total: data?.total }}
122
+        key="dynamicId"
123
+        pagination={{current:data?.current, pageSize: 10, total: data?.total }}
124 124
         onChange={handleTableChange}
125 125
       ></Table>
126 126
     </Card>