Commit 37b71cd9 authored by TZW's avatar TZW

bug

parent 553b4b74
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 @@
* @Author: Li Hanlin
* @Date: 2022-11-10 09:39:56
* @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';
......@@ -97,7 +97,9 @@ function Model(props) {
{row?.urlIds.map((it) => (
// eslint-disable-next-line react/jsx-key
<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>
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:43:54
* @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';
......@@ -65,7 +65,7 @@ function Section(props) {
...s,
visible: true,
title: '编辑',
fields: getcolumns(data),
fields: getcolumns(data?.data),
params: { id: row.id },
detailpath: urlParams.detail,
val: 'edit',
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:43:54
* @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';
......@@ -66,7 +66,7 @@ function Section(props) {
visible: true,
title: '编辑',
params: { id: row.id },
fields: getcolumns(data),
fields: getcolumns(data?.data),
detailpath: '/auth/sysSection/getById',
val: 'edit',
onFinish: async (vals) => {
......@@ -156,6 +156,7 @@ function Section(props) {
item: null,
detailpath: null,
title: '新增',
fields: getcolumns(false),
val: 'add',
onFinish: async (vals) => {
let params = {
......@@ -181,7 +182,6 @@ function Section(props) {
/>
<DrawerPro
fields={columns}
// detailpath={urlParams.detail}
// params={{ id: drawer?.item?.id }}
defaultFormValue={drawer?.item ?? {}}
......
......@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:18
* @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';
......@@ -68,7 +68,7 @@ function Factory(props) {
item: row,
title: '编辑',
val: 'edit',
fields: getcolumns(data),
fields: getcolumns(data?.data),
onFinish: async (vals) => {
let params = {
...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