Browse Source

中泽0102

master
liqi 6 months ago
parent
commit
d735e0f9f2

+ 1
- 1
config/defaultSettings.ts View File

@@ -24,7 +24,7 @@ const Settings: ProLayoutProps & {
24 24
   //   //https://procomponents.ant.design/components/layout#%E9%80%9A%E8%BF%87-token-%E4%BF%AE%E6%94%B9%E6%A0%B7%E5%BC%8F
25 25
   // },
26 26
 
27
-  title: '中泽集团官网后台管理平台',
27
+  title: '中泽官网后台',
28 28
   navTheme: 'light',
29 29
   colorPrimary: '#00D3A1',
30 30
   layout: 'side',

BIN
public/favicon.ico View File


BIN
public/login/login_bj2.jpg View File


BIN
public/login/logo.png View File


+ 14
- 5
src/pages/GoinZZ/developHistory/index.tsx View File

@@ -5,7 +5,7 @@ import type { FormInstance } from 'antd';
5 5
 import { Button, message, Modal, Image } from 'antd';
6 6
 import { ActionType, FooterToolbar, PageContainer, ProColumns, ProTable } from '@ant-design/pro-components';
7 7
 import { PlusOutlined, DeleteOutlined, ExclamationCircleOutlined, RedoOutlined } from '@ant-design/icons';
8
-import { getDevelopHistoryList, saveDevelopHistory, deleteDevelopHistory} from '@/services/goinZZ/developHistory';
8
+import { getDevelopHistoryList, saveDevelopHistory, deleteDevelopHistory,push} from '@/services/goinZZ/developHistory';
9 9
 import DevelopHistoryForm from './edit';
10 10
 import moment from 'moment';
11 11
 import { KeepAlive } from 'react-activation';
@@ -140,10 +140,19 @@ const NoticeTableList: React.FC = () => {
140 140
             ],
141 141
         },
142 142
     ];
143
-    const publishing = ()=>{
144
-        
145
-    }
146
-
143
+   /**
144
+     * 一键发布
145
+     */
146
+const publishing = async () => {
147
+    try {
148
+        const resp = await push();
149
+        if (resp.code === 200) {
150
+            message.success('发布成功');
151
+        } else {
152
+            message.error(resp.msg);
153
+        }
154
+    } catch (error) { }
155
+}
147 156
     return (
148 157
         <KeepAlive name='发展历程' path="/GoinZZ/developHistory">
149 158
             <PageContainer>

+ 15
- 3
src/pages/GoinZZ/honor/index.tsx View File

@@ -1,4 +1,4 @@
1
-import { saveHonor, getHonorList, deleteHonor, } from '@/services/goinZZ/honor';
1
+import { saveHonor, getHonorList, deleteHonor,push } from '@/services/goinZZ/honor';
2 2
 import { getDictValueEnum } from '@/services/system/dict';
3 3
 import { DeleteOutlined, ExclamationCircleOutlined, PlusOutlined } from '@ant-design/icons';
4 4
 import {
@@ -248,7 +248,19 @@ const NoticeTableList: React.FC = () => {
248 248
       ],
249 249
     },
250 250
   ];
251
-
251
+/**
252
+     * 一键发布
253
+     */
254
+const publishing = async () => {
255
+  try {
256
+      const resp = await push();
257
+      if (resp.code === 200) {
258
+          message.success('发布成功');
259
+      } else {
260
+          message.error(resp.msg);
261
+      }
262
+  } catch (error) { }
263
+}
252 264
   return (
253 265
     <KeepAlive name="资质荣誉" path="/GoinZZ/honor">
254 266
       <PageContainer>
@@ -276,7 +288,7 @@ const NoticeTableList: React.FC = () => {
276 288
                <Button
277 289
                type="primary"
278 290
                key="fabu"
279
-               onClick={()=>{}}
291
+               onClick={publishing}
280 292
            >
281 293
                一键发布
282 294
            </Button>,

+ 15
- 5
src/pages/GoinZZ/structure/index.tsx View File

@@ -1,6 +1,6 @@
1 1
 import DictTag from '@/components/DictTag';
2 2
 import { getDictValueEnum } from '@/services/system/dict';
3
-import { getStructureList, saveStructure, deleteStructure } from '@/services/goinZZ/structure';
3
+import { getStructureList, saveStructure, deleteStructure,push } from '@/services/goinZZ/structure';
4 4
 import { createIcon } from '@/utils/IconUtil';
5 5
 import { buildTreeData } from '@/utils/tree';
6 6
 import { DeleteOutlined, ExclamationCircleOutlined, PlusOutlined } from '@ant-design/icons';
@@ -179,7 +179,19 @@ const StructureList: React.FC = () => {
179 179
       ],
180 180
     },
181 181
   ];
182
-
182
+   /**
183
+     * 一键发布
184
+     */
185
+   const publishing = async () => {
186
+    try {
187
+        const resp = await push();
188
+        if (resp.code === 200) {
189
+            message.success('发布成功');
190
+        } else {
191
+            message.error(resp.msg);
192
+        }
193
+    } catch (error) { }
194
+}
183 195
   return (
184 196
     <KeepAlive name={'企业架构'} path="/goinZZ/structure">
185 197
       <PageContainer>
@@ -206,9 +218,7 @@ const StructureList: React.FC = () => {
206 218
               <Button
207 219
                 type="primary"
208 220
                 key="fabu"
209
-                onClick={async () => {
210
-
211
-                }}
221
+                onClick={publishing}
212 222
               >
213 223
                 一键发布
214 224
               </Button>,

+ 44
- 16
src/pages/JoinZZ/biddingDocument/index.tsx View File

@@ -6,7 +6,7 @@ import { Button, message, Modal, Image } from 'antd';
6 6
 import { ActionType, FooterToolbar, PageContainer, ProColumns, ProTable } from '@ant-design/pro-components';
7 7
 import { PlusOutlined, DeleteOutlined, ExclamationCircleOutlined, RedoOutlined } from '@ant-design/icons';
8 8
 // import { getNoticeList, removeNotice, addNotice, updateNotice, exportNotice } from '@/services/system/notice';
9
-import { getBiddingDocumentList, saveBiddingDocument, deleteBiddingDocument, pushBiddingDocumentDetail } from '@/services/JoinZZ/biddingDocument';
9
+import { getBiddingDocumentList, saveBiddingDocument, deleteBiddingDocument, pushBiddingDocumentDetail,pushJoinList,pushJoin,pushBiddingDocumentDetailAll } from '@/services/JoinZZ/biddingDocument';
10 10
 import BiddingDocumentForm from './edit';
11 11
 import { getDictValueEnum } from '@/services/system/dict';
12 12
 import moment from 'moment';
@@ -124,17 +124,7 @@ const NoticeTableList: React.FC = () => {
124 124
                 >
125 125
                     编辑
126 126
                 </Button>,
127
-                //   <Button
128
-                //   type="link"
129
-                //   size="small"
130
-                //   key="preview"
131
-                //   onClick={() => {
132
-                //     window.open('/api/system/wysiwyg/newsDetail/'+record.uuid);
133
-
134
-                //   }}
135
-                // >
136
-                //   <FormattedMessage id="public.preview" defaultMessage="预览" />
137
-                // </Button>,
127
+        
138 128
                 <Button
139 129
                     type="link"
140 130
                     size="small"
@@ -142,7 +132,7 @@ const NoticeTableList: React.FC = () => {
142 132
                     disabled={record.pushStatus == 0 ? false : true}
143 133
                     onClick={() => {
144 134
                         let params = {
145
-                            newsUuid: record.uuid,
135
+                            uuid: record.uuid,
146 136
                         }
147 137
                         pushBiddingDocumentDetail(params).then((res: any) => {
148 138
                             if (res.code == 200) {
@@ -154,7 +144,26 @@ const NoticeTableList: React.FC = () => {
154 144
                                 message.error(res.msg)
155 145
                             }
156 146
                         })
157
-
147
+                        pushJoinList().then((res: any) => {
148
+                            if (res.code == 200) {
149
+                                if (actionRef.current) {
150
+                                    actionRef.current.reload();
151
+                                }
152
+                                message.success(res.msg)
153
+                            } else {
154
+                                message.error(res.msg)
155
+                            }
156
+                        })
157
+                        pushJoin().then((res: any) => {
158
+                            if (res.code == 200) {
159
+                                if (actionRef.current) {
160
+                                    actionRef.current.reload();
161
+                                }
162
+                                message.success(res.msg)
163
+                            } else {
164
+                                message.error(res.msg)
165
+                            }
166
+                        })
158 167
                     }}
159 168
                 >
160 169
                     {record.pushStatus == 0 ? '发布' : '已发布'}
@@ -187,7 +196,19 @@ const NoticeTableList: React.FC = () => {
187 196
             ],
188 197
         },
189 198
     ];
190
-
199
+/**
200
+     * 一键发布
201
+     */
202
+const publishing = async () => {
203
+    try {
204
+        const resp = pushBiddingDocumentDetailAll();
205
+        if (resp.code === 200) {
206
+            message.success('发布成功');
207
+        } else {
208
+            message.error(resp.msg);
209
+        }
210
+    } catch (error) { }
211
+}
191 212
     return (
192 213
         <KeepAlive name={'招标文件'} path="/JoinZZ/biddingDocument">
193 214
             <PageContainer>
@@ -210,7 +231,14 @@ const NoticeTableList: React.FC = () => {
210 231
                                 }}
211 232
                             >
212 233
                                 <PlusOutlined /> <FormattedMessage id="public.add" defaultMessage="新建" />
213
-                            </Button>
234
+                            </Button>,
235
+                            <Button
236
+                            type="primary"
237
+                            key="fabu"
238
+                            onClick={publishing}
239
+                            >
240
+                                一键发布
241
+                            </Button>,
214 242
                         ]}
215 243
                         request={(params) => {
216 244
                             return getBiddingDocumentList({ ...params } as API.System.NoticeListParams).then((res) => {

+ 1
- 35
src/pages/JoinZZ/vacancy/index.tsx View File

@@ -116,41 +116,7 @@ const NoticeTableList: React.FC = () => {
116 116
                 >
117 117
                     编辑
118 118
                 </Button>,
119
-                //   <Button
120
-                //   type="link"
121
-                //   size="small"
122
-                //   key="preview"
123
-                //   onClick={() => {
124
-                //     window.open('/api/system/wysiwyg/newsDetail/'+record.uuid);
125
-
126
-                //   }}
127
-                // >
128
-                //   <FormattedMessage id="public.preview" defaultMessage="预览" />
129
-                // </Button>,
130
-                <Button
131
-                    type="link"
132
-                    size="small"
133
-                    key="publish"
134
-                    disabled={record.pushStatus == 0 ? false : true}
135
-                    onClick={() => {
136
-                        let params = {
137
-                            newsUuid: record.uuid,
138
-                        }
139
-                        pushVacancyDetail(params).then((res: any) => {
140
-                            if (res.code == 200) {
141
-                                if (actionRef.current) {
142
-                                    actionRef.current.reload();
143
-                                }
144
-                                message.success(res.msg)
145
-                            } else {
146
-                                message.error(res.msg)
147
-                            }
148
-                        })
149
-
150
-                    }}
151
-                >
152
-                    {record.pushStatus == 0 ? '发布' : '已发布'}
153
-                </Button>,
119
+                                
154 120
                 <Button
155 121
                     type="link"
156 122
                     size="small"

+ 2
- 1
src/pages/News/NewsList/edit.tsx View File

@@ -107,7 +107,8 @@ const NewsForm: React.FC<NewsProps> = (props) => {
107 107
         digest,
108 108
         top,
109 109
         key,
110
-        column
110
+        column,
111
+        source
111 112
       })
112 113
       // if (top) {
113 114
       //   setCheckTop(1)

+ 2
- 2
src/pages/News/NewsList/index.tsx View File

@@ -6,7 +6,7 @@ import { Button, message, Modal, Image } from 'antd';
6 6
 import { ActionType, FooterToolbar, PageContainer, ProColumns, ProTable } from '@ant-design/pro-components';
7 7
 import { PlusOutlined, DeleteOutlined, ExclamationCircleOutlined, RedoOutlined } from '@ant-design/icons';
8 8
 // import { getNoticeList, removeNotice, addNotice, updateNotice, exportNotice } from '@/services/system/notice';
9
-import { getNewsList, saveNews, deleteNews, pushNewsDetail,push } from '@/services/news/news';
9
+import { getNewsList, saveNews, deleteNews, pushNewsDetail,pushNews,pushIndex,pushNewsDetailAll } from '@/services/news/news';
10 10
 import NewsForm from './edit';
11 11
 import { getDictValueEnum } from '@/services/system/dict';
12 12
 import moment from 'moment';
@@ -210,7 +210,7 @@ const NoticeTableList: React.FC = () => {
210 210
      */
211 211
 const publishing = async () => {
212 212
     try {
213
-        const resp = await push();
213
+        const resp = await pushNewsDetailAll();
214 214
         if (resp.code === 200) {
215 215
             message.success('发布成功');
216 216
         } else {

+ 4
- 2
src/pages/PartyWork/partyWork/edit.tsx View File

@@ -101,12 +101,14 @@ const PartyWorkForm: React.FC<PartyWorkProps> = (props) => {
101 101
     if(!props.open) return;
102 102
     // const { title, content, surface, surfaceUrl, date } = props;
103 103
     if(!props.currentRow) return;
104
-    const { digest, top,key,content,surface,surfaceUrl,date,title,source} = props.currentRow;
104
+    const { digest, top,key,content,surface,surfaceUrl,date,title,source,column} = props.currentRow;
105 105
     if (props.currentRow) {
106 106
       form.setFieldsValue({
107 107
         digest,
108 108
         top,
109
-        key
109
+        key,
110
+        column,
111
+        source
110 112
       })
111 113
       // if (top) {
112 114
       //   setCheckTop(1)

+ 8
- 7
src/pages/PartyWork/partyWork/index.tsx View File

@@ -6,7 +6,7 @@ import { Button, message, Modal, Image } from 'antd';
6 6
 import { ActionType, FooterToolbar, PageContainer, ProColumns, ProTable } from '@ant-design/pro-components';
7 7
 import { PlusOutlined, DeleteOutlined, ExclamationCircleOutlined, RedoOutlined } from '@ant-design/icons';
8 8
 // import { getNoticeList, removeNotice, addNotice, updateNotice, exportNotice } from '@/services/system/notice';
9
-import { getPartyWorkList, savePartyWork, deletePartyWork, pushPartyWorkDetail,push1,push2 } from '@/services/partyWork/partyWork';
9
+import { getPartyWorkList, savePartyWork, deletePartyWork, pushPartyWorkDetail,push1,push2,pushPartyWorkDetailAll } from '@/services/partyWork/partyWork';
10 10
 import PartyWorkForm from './edit';
11 11
 import { getDictValueEnum } from '@/services/system/dict';
12 12
 import moment from 'moment';
@@ -58,7 +58,7 @@ const NoticeTableList: React.FC = () => {
58 58
     }, [])
59 59
 
60 60
     const getEnum = ()=>{
61
-        getDataEnumList({ enumUuid: '2024810214616101' }).then((res) => {
61
+        getDataEnumList({ enumUuid: '2024510243805101' }).then((res) => {
62 62
             console.log(res.rows)
63 63
 
64 64
             const enumOptions = res.rows.map((item: any) => ({
@@ -160,8 +160,10 @@ const NoticeTableList: React.FC = () => {
160 160
                     disabled={record.pushStatus == 0 ? false : true}
161 161
                     onClick={() => {
162 162
                         let params = {
163
-                            newsUuid: record.uuid,
163
+                            partyWorkUuid: record.uuid,
164 164
                         }
165
+                        console.log("record",record);
166
+                        console.log("params",params);
165 167
                         pushPartyWorkDetail(params).then((res: any) => {
166 168
                             if (res.code == 200) {
167 169
                                 if (actionRef.current) {
@@ -210,12 +212,11 @@ const NoticeTableList: React.FC = () => {
210 212
      */
211 213
 const publishing = async () => {
212 214
     try {
213
-        const resp1 = await push1();
214
-        const resp2 = await push2();
215
-        if (resp1.code === 200 && resp2.code === 200) {
215
+        const resp = await pushPartyWorkDetailAll();
216
+        if (resp.code === 200) {
216 217
             message.success('发布成功');
217 218
         } else {
218
-            message.error(resp1.msg + resp2.msg);
219
+            message.error(resp.msg );
219 220
         }
220 221
     } catch (error) { }
221 222
 }

+ 4
- 26
src/pages/SocialRespon/socialRespon/edit.tsx View File

@@ -102,12 +102,14 @@ const SocialResponForm: React.FC<SocialResponProps> = (props) => {
102 102
     if(!props.open) return;
103 103
     // const { title, content, surface, surfaceUrl, date } = props;
104 104
     if(!props.currentRow) return;
105
-    const { digest, top,key,content,surface,surfaceUrl,date,title,source} = props.currentRow;
105
+    const { digest, top,key,content,surface,surfaceUrl,date,title,source,column} = props.currentRow;
106 106
     if (props.currentRow) {
107 107
       form.setFieldsValue({
108 108
         digest,
109 109
         top,
110
-        key
110
+        key,
111
+        column,
112
+        source
111 113
       })
112 114
       // if (top) {
113 115
       //   setCheckTop(1)
@@ -321,30 +323,6 @@ const SocialResponForm: React.FC<SocialResponProps> = (props) => {
321 323
           ]
322 324
           }
323 325
         />
324
-
325
-        <ProFormSelect
326
-          name="column"
327
-          key="column"
328
-          label='社会责任分类'
329
-          request={() =>
330
-            getDataEnumList({enumUuid: '2024511519324105'}).then((res) => {
331
-              let tList = []
332
-              res.rows.forEach(item => {
333
-                tList.push({
334
-                  label: item.dataName,
335
-                  value: item.uuid,
336
-                })
337
-              })
338
-              return tList;
339
-            })
340
-
341
-          }
342
-          labelCol={{
343
-            style: { width: 95 }
344
-          }}
345
-          placeholder={'请选择新闻分类'}
346
-
347
-        />
348 326
          
349 327
         <ProFormText
350 328
           name="key"

+ 3
- 11
src/pages/SocialRespon/socialRespon/index.tsx View File

@@ -6,7 +6,7 @@ import { Button, message, Modal, Image } from 'antd';
6 6
 import { ActionType, FooterToolbar, PageContainer, ProColumns, ProTable } from '@ant-design/pro-components';
7 7
 import { PlusOutlined, DeleteOutlined, ExclamationCircleOutlined, RedoOutlined } from '@ant-design/icons';
8 8
 // import { getNoticeList, removeNotice, addNotice, updateNotice, exportNotice } from '@/services/system/notice';
9
-import { getSocialResponList, saveSocialRespon, deleteSocialRespon, pushSocialResponDetail,push } from '@/services/socialRespon/socialRespon';
9
+import { getSocialResponList, saveSocialRespon, deleteSocialRespon, pushSocialResponDetail,push,pushSocialResponDetailAll } from '@/services/socialRespon/socialRespon';
10 10
 import SocialResponForm from './edit';
11 11
 import { getDictValueEnum } from '@/services/system/dict';
12 12
 import moment from 'moment';
@@ -84,14 +84,6 @@ const NoticeTableList: React.FC = () => {
84 84
             dataIndex: 'title',
85 85
             valueType: 'text',
86 86
         },
87
-        {
88
-            title: '社会责任分类',
89
-            dataIndex: 'column',
90
-            valueType: 'select',
91
-            fieldProps: {
92
-                options: enumList,
93
-            },
94
-        },
95 87
         {
96 88
             title: '展示日期',
97 89
             dataIndex: 'date',
@@ -150,7 +142,7 @@ const NoticeTableList: React.FC = () => {
150 142
                     disabled={record.pushStatus == 0 ? false : true}
151 143
                     onClick={() => {
152 144
                         let params = {
153
-                            newsUuid: record.uuid,
145
+                            socialResponUuid: record.uuid,
154 146
                         }
155 147
                         pushSocialResponDetail(params).then((res: any) => {
156 148
                             if (res.code == 200) {
@@ -200,7 +192,7 @@ const NoticeTableList: React.FC = () => {
200 192
      */
201 193
 const publishing = async () => {
202 194
     try {
203
-        const resp = await push();
195
+        const resp = await pushSocialResponDetailAll();
204 196
         if (resp.code === 200) {
205 197
             message.success('发布成功');
206 198
         } else {

+ 31
- 1
src/services/JoinZZ/biddingDocument.ts View File

@@ -42,7 +42,37 @@ export async function deleteBiddingDocument(biddingDocumentUuid:any) {
42 42
 
43 43
 //发布
44 44
 export async function pushBiddingDocumentDetail(params: any) {
45
-  return request('/api/system/static/biddingDocument', {
45
+  return request('/api/staticize/static/articleDetail?type=biddingDocument&uuid='+params.uuid, {
46
+    method: 'GET',
47
+    headers: {
48
+      'Content-Type': 'application/json;charset=UTF-8',
49
+    },
50
+  });
51
+}
52
+
53
+//发布全部
54
+export async function pushBiddingDocumentDetailAll(params: any) {
55
+  return request('/api/staticize/static/articleDetail?type=biddingDocument&uuid='+params.uuid, {
56
+    method: 'GET',
57
+    headers: {
58
+      'Content-Type': 'application/json;charset=UTF-8',
59
+    },
60
+  });
61
+}
62
+
63
+//发布招标文件列表
64
+export async function pushJoinList(params: any) {
65
+  return request('/api/staticize/static/joinList', {
66
+    method: 'GET',
67
+    headers: {
68
+      'Content-Type': 'application/json;charset=UTF-8',
69
+    },
70
+  });
71
+}
72
+
73
+//发布加入中泽
74
+export async function pushJoin(params: any) {
75
+  return request('/api/staticize/static/join', {
46 76
     method: 'GET',
47 77
     headers: {
48 78
       'Content-Type': 'application/json;charset=UTF-8',

+ 1
- 1
src/services/JoinZZ/vacancy.ts View File

@@ -42,7 +42,7 @@ export async function deleteVacancy(vacancyUuid:any) {
42 42
 
43 43
 //发布
44 44
 export async function pushVacancyDetail(params: any) {
45
-  return request('/api/system/static/vacancy', {
45
+  return request('/api/staticize/static/join', {
46 46
     method: 'GET',
47 47
     headers: {
48 48
       'Content-Type': 'application/json;charset=UTF-8',

+ 11
- 0
src/services/goinZZ/developHistory.ts View File

@@ -40,3 +40,14 @@ export async function deleteDevelopHistory(developHistoryUuid:any) {
40 40
   });
41 41
 }
42 42
 
43
+//发布
44
+export async function push(params: any) {
45
+  return request('/api/staticize/static/intoTime', {
46
+    method: 'GET',
47
+    headers: {
48
+      'Content-Type': 'application/json;charset=UTF-8',
49
+    },
50
+    params,
51
+  });
52
+}
53
+

+ 11
- 0
src/services/goinZZ/honor.ts View File

@@ -72,3 +72,14 @@ return request(`/api/system/goinZZ/certificate/remove`, {
72 72
 });
73 73
 }
74 74
 
75
+//发布
76
+export async function push(params: any) {
77
+  return request('/api/staticize/static/intoZz', {
78
+    method: 'GET',
79
+    headers: {
80
+      'Content-Type': 'application/json;charset=UTF-8',
81
+    },
82
+    params,
83
+  });
84
+}
85
+

+ 11
- 0
src/services/goinZZ/structure.ts View File

@@ -40,3 +40,14 @@ export async function deleteStructure(structureUuid:any) {
40 40
   });
41 41
 }
42 42
 
43
+//发布
44
+export async function push(params: any) {
45
+  return request('/api/staticize/static/intoZz', {
46
+    method: 'GET',
47
+    headers: {
48
+      'Content-Type': 'application/json;charset=UTF-8',
49
+    },
50
+    params,
51
+  });
52
+}
53
+

+ 23
- 3
src/services/news/news.ts View File

@@ -53,7 +53,7 @@ export async function deleteNews(newsUuid:any) {
53 53
 
54 54
 //发布新闻
55 55
 export async function pushNewsDetail(params: any) {
56
-  return request('/api/system/static/articleDetail/news/'+params.newsUuid, {
56
+  return request('/api/staticize/static/articleDetail?type=news&uuid='+params.newsUuid, {
57 57
     method: 'GET',
58 58
     headers: {
59 59
       'Content-Type': 'application/json;charset=UTF-8',
@@ -61,8 +61,18 @@ export async function pushNewsDetail(params: any) {
61 61
   });
62 62
 }
63 63
 
64
-//发布
65
-export async function push(params: any) {
64
+//发布全部新闻
65
+export async function pushNewsDetailAll() {
66
+  return request('/api/staticize/static/articleDetail?type=news', {
67
+    method: 'GET',
68
+    headers: {
69
+      'Content-Type': 'application/json;charset=UTF-8',
70
+    },
71
+  });
72
+}
73
+
74
+//发布新闻首页
75
+export async function pushNews(params: any) {
66 76
   return request('/api/staticize/static/news', {
67 77
     method: 'GET',
68 78
     headers: {
@@ -71,3 +81,13 @@ export async function push(params: any) {
71 81
     params,
72 82
   });
73 83
 }
84
+//发布首页
85
+export async function pushIndex(params: any) {
86
+  return request('/api/staticize/static/index', {
87
+    method: 'GET',
88
+    headers: {
89
+      'Content-Type': 'application/json;charset=UTF-8',
90
+    },
91
+    params,
92
+  });
93
+}

+ 12
- 2
src/services/partyWork/partyWork.ts View File

@@ -51,9 +51,19 @@ export async function deletePartyWork(partyWorkUuid:any) {
51 51
   });
52 52
 }
53 53
 
54
-//发布
54
+//发布党建详情
55 55
 export async function pushPartyWorkDetail(params: any) {
56
-  return request('/api/system/static/articleDetail/partyWork/'+params.partyWorkUuid, {
56
+  return request('/api/staticize/static/articleDetail?type=partyWork&uuid='+params.partyWorkUuid, {
57
+    method: 'GET',
58
+    headers: {
59
+      'Content-Type': 'application/json;charset=UTF-8',
60
+    },
61
+  });
62
+}
63
+
64
+//发布全部党建详情
65
+export async function pushPartyWorkDetailAll() {
66
+  return request('/api/staticize/static/articleDetail?type=partyWork', {
57 67
     method: 'GET',
58 68
     headers: {
59 69
       'Content-Type': 'application/json;charset=UTF-8',

+ 12
- 2
src/services/socialRespon/socialRespon.ts View File

@@ -51,9 +51,19 @@ export async function deleteSocialRespon(socialResponUuid:any) {
51 51
   });
52 52
 }
53 53
 
54
-//发布
54
+//发布社会责任详情
55 55
 export async function pushSocialResponDetail(params: any) {
56
-  return request('/api/system/static/articleDetail/socialRespon/'+params.socialResponUuid, {
56
+  return request('/api/staticize/static/articleDetail?type=socialRespon&uuid='+params.socialResponUuid, {
57
+    method: 'GET',
58
+    headers: {
59
+      'Content-Type': 'application/json;charset=UTF-8',
60
+    },
61
+  });
62
+}
63
+
64
+//发布全部社会责任详情
65
+export async function pushSocialResponDetailAll() {
66
+  return request('/api/staticize/static/articleDetail?type=socialRespon', {
57 67
     method: 'GET',
58 68
     headers: {
59 69
       'Content-Type': 'application/json;charset=UTF-8',

Loading…
Cancel
Save