|
@@ -119,14 +119,16 @@ const NoticeTableList: React.FC = () => {
|
119
|
119
|
},
|
120
|
120
|
];
|
121
|
121
|
useEffect(()=>{
|
122
|
|
- getDetail()
|
123
|
|
- },[])
|
|
122
|
+ setTimeout(() => {
|
|
123
|
+ getDetail()
|
|
124
|
+ },100)
|
|
125
|
+ },[form])
|
124
|
126
|
const getDetail = async ()=>{
|
125
|
127
|
try {
|
126
|
128
|
const res = await getFooterList()
|
127
|
129
|
if(res.code === 200){
|
128
|
130
|
if(res.data){
|
129
|
|
- form?.current?.setFieldsValue(res.data)
|
|
131
|
+ form.current.setFieldsValue(res.data)
|
130
|
132
|
if(res.data.wxImgUrl){
|
131
|
133
|
setFileList([{
|
132
|
134
|
id:res.data.wxImg,
|
|
@@ -145,6 +147,7 @@ const NoticeTableList: React.FC = () => {
|
145
|
147
|
const onFinishForm = async (values)=>{
|
146
|
148
|
try {
|
147
|
149
|
if(img) values.img = img;
|
|
150
|
+ console.log('values',values)
|
148
|
151
|
const res = await saveFooter(values)
|
149
|
152
|
if(res.code === 200){
|
150
|
153
|
message.success('保存成功')
|
|
@@ -186,7 +189,7 @@ const NoticeTableList: React.FC = () => {
|
186
|
189
|
}}
|
187
|
190
|
/>
|
188
|
191
|
|
189
|
|
- <ProFormDigit
|
|
192
|
+ <ProFormText
|
190
|
193
|
name="headquarter"
|
191
|
194
|
label="总部地址"
|
192
|
195
|
labelCol={{
|
|
@@ -194,12 +197,36 @@ const NoticeTableList: React.FC = () => {
|
194
|
197
|
}}
|
195
|
198
|
/>
|
196
|
199
|
|
197
|
|
- <ProFormDigit
|
|
200
|
+ <ProFormText
|
198
|
201
|
name="email"
|
199
|
202
|
label="邮箱"
|
200
|
203
|
labelCol={{
|
201
|
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
|
231
|
<ProForm.Item
|
205
|
232
|
label={'微信二维码'}
|
|
@@ -227,7 +254,7 @@ const NoticeTableList: React.FC = () => {
|
227
|
254
|
</ProForm.Item>
|
228
|
255
|
|
229
|
256
|
</ProForm>
|
230
|
|
- <ProTable<API.System.Notice>
|
|
257
|
+ {/* <ProTable<API.System.Notice>
|
231
|
258
|
actionRef={actionRef}
|
232
|
259
|
formRef={formTableRef}
|
233
|
260
|
headerTitle="旗下企业"
|
|
@@ -262,7 +289,7 @@ const NoticeTableList: React.FC = () => {
|
262
|
289
|
}
|
263
|
290
|
}
|
264
|
291
|
columns={columns}
|
265
|
|
- />
|
|
292
|
+ /> */}
|
266
|
293
|
</div>
|
267
|
294
|
<EnterpriseForm
|
268
|
295
|
onSubmit={async (values) => {
|