Pārlūkot izejas kodu

增加字段,修改功能

master
suomingxiang pirms 2 mēnešiem
vecāks
revīzija
6ab3e02407

+ 1
- 1
config/proxy.ts Parādīt failu

19
 
19
 
20
       // changeOrigin: true,// 依赖 origin 的功能可能需要这个,比如 cookie;
20
       // changeOrigin: true,// 依赖 origin 的功能可能需要这个,比如 cookie;
21
 
21
 
22
-      target: 'http://192.168.1.33:9100',//李琦;
22
+      target: 'http://192.168.1.210:9100',
23
       //target: 'http://192.168.1.69:9400',//69测试环境;
23
       //target: 'http://192.168.1.69:9400',//69测试环境;
24
       //target: 'http://www.wbvis.com/cpgw-back',//正式环境;
24
       //target: 'http://www.wbvis.com/cpgw-back',//正式环境;
25
       pathRewrite: { '^/api': '' },
25
       pathRewrite: { '^/api': '' },

+ 1
- 1
src/pages/Home/banner/index.tsx Parādīt failu

172
     }
172
     }
173
 
173
 
174
     return (
174
     return (
175
-        <KeepAlive name='焦点图管理' path="/Banner/BannerList">
175
+        <KeepAlive name='焦点图管理' path="/Home/banner">
176
             <PageContainer>
176
             <PageContainer>
177
                 <div style={{ width: '100%', float: 'right' }}>
177
                 <div style={{ width: '100%', float: 'right' }}>
178
                     <ProTable<API.System.Notice>
178
                     <ProTable<API.System.Notice>

+ 34
- 7
src/pages/Other/footer/index.tsx Parādīt failu

119
         },
119
         },
120
     ];
120
     ];
121
     useEffect(()=>{
121
     useEffect(()=>{
122
-        getDetail()
123
-    },[])
122
+        setTimeout(() => {
123
+            getDetail()
124
+        },100)
125
+    },[form])
124
     const getDetail = async ()=>{
126
     const getDetail = async ()=>{
125
         try {
127
         try {
126
             const res = await getFooterList()
128
             const res = await getFooterList()
127
             if(res.code === 200){
129
             if(res.code === 200){
128
                 if(res.data){
130
                 if(res.data){
129
-                    form?.current?.setFieldsValue(res.data)
131
+                    form.current.setFieldsValue(res.data)
130
                     if(res.data.wxImgUrl){
132
                     if(res.data.wxImgUrl){
131
                         setFileList([{
133
                         setFileList([{
132
                             id:res.data.wxImg,
134
                             id:res.data.wxImg,
145
     const onFinishForm = async (values)=>{
147
     const onFinishForm = async (values)=>{
146
         try {
148
         try {
147
             if(img) values.img = img;
149
             if(img) values.img = img;
150
+            console.log('values',values)
148
             const res = await saveFooter(values)
151
             const res = await saveFooter(values)
149
             if(res.code === 200){
152
             if(res.code === 200){
150
                 message.success('保存成功')
153
                 message.success('保存成功')
186
                             }}
189
                             }}
187
                         />
190
                         />
188
 
191
 
189
-                        <ProFormDigit
192
+                        <ProFormText
190
                             name="headquarter"
193
                             name="headquarter"
191
                             label="总部地址"
194
                             label="总部地址"
192
                             labelCol={{
195
                             labelCol={{
194
                             }}
197
                             }}
195
                         />
198
                         />
196
 
199
 
197
-                        <ProFormDigit
200
+                        <ProFormText
198
                             name="email"
201
                             name="email"
199
                             label="邮箱"
202
                             label="邮箱"
200
                             labelCol={{
203
                             labelCol={{
201
                                 style: { width: 95 }
204
                                 style: { width: 95 }
202
                             }}
205
                             }}
206
+                        />
207
+                         <ProFormText
208
+                            name="baxx1"
209
+                            label="版权归属"
210
+                            placeholder={'例如:中泽集团版权所有 ZHONGZE GROUP COPYRIGHT'}
211
+                            labelCol={{
212
+                                style: { width: 95 }
213
+                            }}
214
+                        />
215
+                         <ProFormText
216
+                            name="baxx2"
217
+                            label="版权信息"
218
+                            placeholder={'例如:@ 2014-2025'}
219
+                            labelCol={{
220
+                                style: { width: 95 }
221
+                            }}
222
+                        />
223
+                         <ProFormText
224
+                            name="baxx3"
225
+                            label="ICP备案号"
226
+                            placeholder={'例如:辽ICP备2022002992号'}
227
+                            labelCol={{
228
+                                style: { width: 95 }
229
+                            }}
203
                         />
230
                         />
204
                         <ProForm.Item
231
                         <ProForm.Item
205
                             label={'微信二维码'}
232
                             label={'微信二维码'}
227
                         </ProForm.Item>
254
                         </ProForm.Item>
228
 
255
 
229
                     </ProForm>
256
                     </ProForm>
230
-                    <ProTable<API.System.Notice>
257
+                    {/* <ProTable<API.System.Notice>
231
                         actionRef={actionRef}
258
                         actionRef={actionRef}
232
                         formRef={formTableRef}
259
                         formRef={formTableRef}
233
                         headerTitle="旗下企业"
260
                         headerTitle="旗下企业"
262
                         }
289
                         }
263
                         }
290
                         }
264
                         columns={columns}
291
                         columns={columns}
265
-                    />
292
+                    /> */}
266
                 </div>
293
                 </div>
267
                 <EnterpriseForm
294
                 <EnterpriseForm
268
                     onSubmit={async (values) => {
295
                     onSubmit={async (values) => {

Notiek ielāde…
Atcelt
Saglabāt