Commit 37b71cd9 authored by TZW's avatar TZW

bug

parent 553b4b74
import React from 'react'; import React from 'react';
export default () => {
export default () => <>欢迎</>; const style = {
width: '100%',
height: '100%',
backgroundImage: `url(${require('../../public/home.png')})`,
backgroundPosition: '0 0',
backgroundSize: '100% 100%',
backgroundRepeat: 'no-repeat',
};
return <div style={style}></div>;
};
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56 * @Date: 2022-11-10 09:39:56
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-19 16:43:03 * @Last Modified time: 2022-12-20 11:25:48
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -97,7 +97,9 @@ function Model(props) { ...@@ -97,7 +97,9 @@ function Model(props) {
{row?.urlIds.map((it) => ( {row?.urlIds.map((it) => (
// eslint-disable-next-line react/jsx-key // eslint-disable-next-line react/jsx-key
<div style={{ marginBottom: '8px' }}> <div style={{ marginBottom: '8px' }}>
<Image width={80} src={it.url} /> <a href={it?.url} download target="_blank" rel="noopener noreferrer">
{it?.name}
</a>
</div> </div>
))} ))}
</div> </div>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-09 14:43:54 * @Date: 2022-11-09 14:43:54
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-16 16:07:33 * @Last Modified time: 2022-12-20 10:48:29
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -65,7 +65,7 @@ function Section(props) { ...@@ -65,7 +65,7 @@ function Section(props) {
...s, ...s,
visible: true, visible: true,
title: '编辑', title: '编辑',
fields: getcolumns(data), fields: getcolumns(data?.data),
params: { id: row.id }, params: { id: row.id },
detailpath: urlParams.detail, detailpath: urlParams.detail,
val: 'edit', val: 'edit',
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-09 14:43:54 * @Date: 2022-11-09 14:43:54
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-16 16:02:16 * @Last Modified time: 2022-12-20 10:48:14
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -66,7 +66,7 @@ function Section(props) { ...@@ -66,7 +66,7 @@ function Section(props) {
visible: true, visible: true,
title: '编辑', title: '编辑',
params: { id: row.id }, params: { id: row.id },
fields: getcolumns(data), fields: getcolumns(data?.data),
detailpath: '/auth/sysSection/getById', detailpath: '/auth/sysSection/getById',
val: 'edit', val: 'edit',
onFinish: async (vals) => { onFinish: async (vals) => {
...@@ -156,6 +156,7 @@ function Section(props) { ...@@ -156,6 +156,7 @@ function Section(props) {
item: null, item: null,
detailpath: null, detailpath: null,
title: '新增', title: '新增',
fields: getcolumns(false),
val: 'add', val: 'add',
onFinish: async (vals) => { onFinish: async (vals) => {
let params = { let params = {
...@@ -181,7 +182,6 @@ function Section(props) { ...@@ -181,7 +182,6 @@ function Section(props) {
/> />
<DrawerPro <DrawerPro
fields={columns}
// detailpath={urlParams.detail} // detailpath={urlParams.detail}
// params={{ id: drawer?.item?.id }} // params={{ id: drawer?.item?.id }}
defaultFormValue={drawer?.item ?? {}} defaultFormValue={drawer?.item ?? {}}
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* @Author: Li Hanlin * @Author: Li Hanlin
* @Date: 2022-11-09 14:44:18 * @Date: 2022-11-09 14:44:18
* @Last Modified by: Li Hanlin * @Last Modified by: Li Hanlin
* @Last Modified time: 2022-12-16 15:53:09 * @Last Modified time: 2022-12-20 10:47:56
*/ */
import * as React from 'react'; import * as React from 'react';
...@@ -68,7 +68,7 @@ function Factory(props) { ...@@ -68,7 +68,7 @@ function Factory(props) {
item: row, item: row,
title: '编辑', title: '编辑',
val: 'edit', val: 'edit',
fields: getcolumns(data), fields: getcolumns(data?.data),
onFinish: async (vals) => { onFinish: async (vals) => {
let params = { let params = {
...vals, ...vals,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment