傅行帆 преди 4 години
родител
ревизия
1f859974a0

+ 29
- 29
config/routes.js Целия файл

@@ -36,35 +36,35 @@ export default [
36 36
           //   name: '首页',
37 37
           //   component: './Welcome',
38 38
           // },
39
-          {
40
-            path: '/building',
41
-            name: '项目管理',
42
-            component: '../layouts/BlankLayout',
43
-            routes: [
44
-              {
45
-                path: '/building/list',
46
-                name: '项目列表',
47
-                component: './building/list/index',
48
-              },
49
-              {
50
-                path: '/building/list/add',
51
-                name: '项目添加', // 项目添加
52
-                hideInMenu: true,
53
-                component: './building/list/add/index',
54
-              },
55
-              {
56
-                path: '/building/type',
57
-                name: '项目类型',
58
-                component: './building/type/index',
59
-              },
60
-              {
61
-                path: '/building/type/edi',
62
-                name: '项目类型编辑',
63
-                hideInMenu: true,
64
-                component: './building/type/edi',
65
-              },
66
-            ],
67
-          },
39
+          // {
40
+          //   path: '/building',
41
+          //   name: '项目管理',
42
+          //   component: '../layouts/BlankLayout',
43
+          //   routes: [
44
+          //     {
45
+          //       path: '/building/list',
46
+          //       name: '项目列表',
47
+          //       component: './building/list/index',
48
+          //     },
49
+          //     {
50
+          //       path: '/building/list/add',
51
+          //       name: '项目添加', // 项目添加
52
+          //       hideInMenu: true,
53
+          //       component: './building/list/add/index',
54
+          //     },
55
+          //     {
56
+          //       path: '/building/type',
57
+          //       name: '项目类型',
58
+          //       component: './building/type/index',
59
+          //     },
60
+          //     {
61
+          //       path: '/building/type/edi',
62
+          //       name: '项目类型编辑',
63
+          //       hideInMenu: true,
64
+          //       component: './building/type/edi',
65
+          //     },
66
+          //   ],
67
+          // },
68 68
           {
69 69
             path: '/customer',
70 70
             name: '客户管理',

+ 2
- 2
src/pages/integralMall/GoodsList.jsx Целия файл

@@ -172,11 +172,11 @@ function header(props) {
172 172
             </Select>,
173 173
           )}
174 174
         </Form.Item>
175
-        <Form.Item>
175
+        {/* <Form.Item>
176 176
           {getFieldDecorator('buildingId')(
177 177
             <BuildSelect />,
178 178
           )}
179
-        </Form.Item>
179
+        </Form.Item> */}
180 180
         <Form.Item>
181 181
           {getFieldDecorator('priceLesser')(
182 182
             <Input

+ 9
- 9
src/pages/integralMall/editGoods.jsx Целия файл

@@ -30,15 +30,15 @@ const header = props => {
30 30
   }
31 31
 
32 32
   const fields = [
33
-    {
34
-      label: '所属项目',
35
-      name: 'buildingId',
36
-      render: <BuildSelect />,
37
-      value: goodsData.buildingId,
38
-      rules: [
39
-        {required: true, message: '请选择所属项目'},
40
-      ]
41
-    },
33
+    // {
34
+    //   label: '所属项目',
35
+    //   name: 'buildingId',
36
+    //   render: <BuildSelect />,
37
+    //   value: goodsData.buildingId,
38
+    //   rules: [
39
+    //     {required: true, message: '请选择所属项目'},
40
+    //   ]
41
+    // },
42 42
     {
43 43
       label: '商品封面图',
44 44
       name: 'imgUrl',

+ 2
- 2
src/pages/integralMall/exchangeRecords.jsx Целия файл

@@ -165,7 +165,7 @@ function record(props) {
165 165
               />,
166 166
             )}
167 167
           </Form.Item>
168
-          <Form.Item>
168
+          {/* <Form.Item>
169 169
             {getFieldDecorator('personType')(
170 170
               <Select style={{ minWidth: '1.1rem' }} placeholder="用户类型">
171 171
                 <Option value="Realty Consultant">置业顾问</Option>
@@ -173,7 +173,7 @@ function record(props) {
173 173
                 <Option value="estate agent">经纪人</Option>
174 174
               </Select>,
175 175
             )}
176
-          </Form.Item>
176
+          </Form.Item> */}
177 177
           <Form.Item>
178 178
             {getFieldDecorator('status')(
179 179
               <Select style={{ minWidth: '1.1rem' }} placeholder="状态">

+ 2
- 2
src/pages/news/list/NewsList.jsx Целия файл

@@ -280,7 +280,7 @@ function body(props) {
280 280
     <>
281 281
       <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
282 282
 
283
-        <Form.Item>
283
+        {/* <Form.Item>
284 284
           {getFieldDecorator('cityId')(
285 285
             <SelectCity />,
286 286
           )}
@@ -289,7 +289,7 @@ function body(props) {
289 289
           {getFieldDecorator('buildingId')(
290 290
             <BuildSelect />,
291 291
           )}
292
-        </Form.Item>
292
+        </Form.Item> */}
293 293
         <Form.Item>
294 294
           {getFieldDecorator('title')(
295 295
             <Input

+ 13
- 19
src/pages/news/list/editNewsList.jsx Целия файл

@@ -53,15 +53,15 @@ const Basic = (props) => {
53 53
   }
54 54
 
55 55
   const fields = [
56
-    {
57
-      label: '意向项目',
58
-      name: 'buildingId',
59
-      render: <BuildSelect onChange={(e => handleBuildingChange(e))}/>,
60
-      value: dynamicData.buildingId,
61
-      rules: [
62
-        {required: true, message: '请选择所属项目'},
63
-      ]
64
-    },
56
+    // {
57
+    //   label: '意向项目',
58
+    //   name: 'buildingId',
59
+    //   render: <BuildSelect onChange={(e => handleBuildingChange(e))}/>,
60
+    //   value: dynamicData.buildingId,
61
+    //   rules: [
62
+    //     {required: true, message: '请选择所属项目'},
63
+    //   ]
64
+    // },
65 65
     {
66 66
       label: '资讯列表图',
67 67
       name: 'newsImg',
@@ -132,7 +132,7 @@ const Basic = (props) => {
132 132
     if(dynamicData.newsId){
133 133
       submitValue.newsId = dynamicData.newsId
134 134
       request({ ...apis.news.put, urlData: {id: dynamicData.newsId}, data: { ...submitValue },}).then((data) => {
135
-        // cancelPage();
135
+        cancelPage();
136 136
         message.info("保存成功")
137 137
         console.log(data,'data1')
138 138
       }).catch((err) => {
@@ -140,14 +140,8 @@ const Basic = (props) => {
140 140
       })
141 141
     }else{
142 142
       request({ ...apis.news.post, data: { ...submitValue },}).then((data) => {
143
-        // cancelPage();
143
+        cancelPage();
144 144
         message.info("保存成功")
145
-        router.push({
146
-          pathname: '/news/list/editNewsList',
147
-          query: {
148
-            newsId:data.newsId
149
-          },
150
-        });
151 145
         console.log(data,'data2')
152 146
       }).catch((err) => {
153 147
         message.info(err.msg || err.message)
@@ -375,13 +369,13 @@ const Basic = (props) => {
375 369
 
376 370
   return (
377 371
     <div>
378
-      <div>
372
+      {/* <div>
379 373
         <Radio.Group value={tab} buttonStyle="solid" onChange={e => changeTab(e.target.value)}>
380 374
           <Radio.Button value="basic">基本信息</Radio.Button>
381 375
           <Radio.Button value="poster">海报图片</Radio.Button>
382 376
           <Radio.Button value="share">分享设置</Radio.Button>
383 377
         </Radio.Group>
384
-      </div>
378
+      </div> */}
385 379
       <div>
386 380
         { tab === 'basic' && <Basic data={dynamicData} /> }
387 381
         { tab === 'poster' && <Poster /> }

+ 2
- 2
src/pages/news/type/NewsType.jsx Целия файл

@@ -115,7 +115,7 @@ function NewsType(props) {
115 115
   return (
116 116
 
117 117
     <>
118
-      <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
118
+      {/* <Form layout="inline" onSubmit={e => handleSubmit(e, props)}>
119 119
         <Form.Item>
120 120
           {getFieldDecorator('buildingId')(
121 121
             <BuildSelect />,
@@ -131,7 +131,7 @@ function NewsType(props) {
131 131
             重置
132 132
             </Button>
133 133
         </Form.Item>
134
-      </Form>
134
+      </Form> */}
135 135
       <AuthButton name="admin.taNewsType.post" noRight={null}>
136 136
         <Button type="danger" className={styles.addBtn} onClick={toEditNews()}>新增</Button>
137 137
       </AuthButton>

+ 9
- 9
src/pages/news/type/editNews.jsx Целия файл

@@ -34,15 +34,15 @@ const header = props => {
34 34
   }
35 35
 
36 36
   const fields = [
37
-    {
38
-      label: '所属项目',
39
-      name: 'buildingId',
40
-      render: <BuildSelect />,
41
-      value: newsData.buildingId,
42
-      rules: [
43
-        {required: true, message: '请选择所属项目'},
44
-      ]
45
-    },
37
+    // {
38
+    //   label: '所属项目',
39
+    //   name: 'buildingId',
40
+    //   render: <BuildSelect />,
41
+    //   value: newsData.buildingId,
42
+    //   rules: [
43
+    //     {required: true, message: '请选择所属项目'},
44
+    //   ]
45
+    // },
46 46
     {
47 47
       label: '类型图',
48 48
       name: 'newsTypeImg',