Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
E
ems3.3
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wuhao
ems3.3
Commits
d9a8cec6
Commit
d9a8cec6
authored
Nov 11, 2022
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11.11
parent
fd65ec2a
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
272 additions
and
163 deletions
+272
-163
defaultSettings.js
config/defaultSettings.js
+1
-1
app.jsx
src/app.jsx
+16
-16
index.jsx
src/components/Footer/index.jsx
+22
-20
index.jsx
src/pages/device/model/index.jsx
+3
-2
columns.js
src/pages/device/supplier/columns.js
+142
-18
index.jsx
src/pages/device/supplier/index.jsx
+6
-3
columns.js
src/pages/device/type/columns.js
+4
-82
index.jsx
src/pages/device/type/index.jsx
+78
-21
No files found.
config/defaultSettings.js
View file @
d9a8cec6
...
@@ -8,7 +8,7 @@ const Settings = {
...
@@ -8,7 +8,7 @@ const Settings = {
fixedHeader
:
false
,
fixedHeader
:
false
,
fixSiderbar
:
false
,
fixSiderbar
:
false
,
pwa
:
false
,
pwa
:
false
,
logo
:
'
https://gw.alipayobjects.com/zos/rmsportal/KDpgvguMpGfqaHPjicRK.sv
g'
,
logo
:
'
/staticfile/group1/M00/00/00/oYYBAGNuFCqARiJKAAGIO2gWB34399.pn
g'
,
colorPrimary
:
'#1890ff'
,
colorPrimary
:
'#1890ff'
,
siderMenuType
:
'sub'
,
siderMenuType
:
'sub'
,
proxypath
:
'/emspro'
,
proxypath
:
'/emspro'
,
...
...
src/app.jsx
View file @
d9a8cec6
...
@@ -128,10 +128,10 @@ export const layout = ({ initialState, setInitialState }) => {
...
@@ -128,10 +128,10 @@ export const layout = ({ initialState, setInitialState }) => {
},
},
links
:
isDev
links
:
isDev
?
[
?
[
<
Link
key=
"openapi"
to=
"/umi/plugin/openapi"
target=
"_blank"
>
//
<Link key="openapi" to="/umi/plugin/openapi" target="_blank">
<
LinkOutlined
/>
//
<LinkOutlined />
<
span
>
OpenAPI 文档
</
span
>
//
<span>OpenAPI 文档</span>
</
Link
>,
//
</Link>,
]
]
:
[],
:
[],
//接口获取菜单数据
//接口获取菜单数据
...
@@ -146,18 +146,18 @@ export const layout = ({ initialState, setInitialState }) => {
...
@@ -146,18 +146,18 @@ export const layout = ({ initialState, setInitialState }) => {
?
JSON
.
parse
(
JSON
.
stringify
(
initialState
?.
newMenu
?.
userHavePermList
))
?
JSON
.
parse
(
JSON
.
stringify
(
initialState
?.
newMenu
?.
userHavePermList
))
:
[],
:
[],
newArr
=
[
newArr
=
[
{
//
{
path
:
'/welcome'
,
//
path: '/welcome',
name
:
'首页'
,
//
name: '首页',
icon
:
'smile'
,
//
icon: 'smile',
component
:
'./Welcome'
,
//
component: './Welcome',
haveChildren
:
false
,
//
haveChildren: false,
key
:
'000000'
,
//
key: '000000',
parentKey
:
'0'
,
//
parentKey: '0',
routes
:
[],
//
routes: [],
children
:
null
,
//
children: null,
title
:
null
,
//
title: null,
},
//
},
].
concat
(
lastArr
);
].
concat
(
lastArr
);
return
newArr
.
map
((
item
,
index
)
=>
{
return
newArr
.
map
((
item
,
index
)
=>
{
...
...
src/components/Footer/index.jsx
View file @
d9a8cec6
...
@@ -12,26 +12,28 @@ const Footer = () => {
...
@@ -12,26 +12,28 @@ const Footer = () => {
background
:
'none'
,
background
:
'none'
,
}
}
}
}
copyright=
{
`${currentYear} ${defaultMessage}`
}
copyright=
{
`${currentYear} ${defaultMessage}`
}
links=
{
[
links=
{
{
[
key
:
'basepro'
,
//
{
title
:
'basepro'
,
// key: 'basepro',
href
:
'https://pro.ant.design'
,
// title: 'basepro',
blankTarget
:
true
,
// href: 'https://pro.ant.design',
},
// blankTarget: true,
{
//
},
key
:
'github'
,
//
{
title
:
<
GithubOutlined
/>,
// key: 'github',
href
:
'https://github.com/ant-design/ant-design-pro'
,
// title: <GithubOutlined />,
blankTarget
:
true
,
// href: 'https://github.com/ant-design/ant-design-pro',
},
// blankTarget: true,
{
//
},
key
:
'Ant Design'
,
//
{
title
:
'Ant Design'
,
// key: 'Ant Design',
href
:
'https://ant.design'
,
// title: 'Ant Design',
blankTarget
:
true
,
// href: 'https://ant.design',
},
// blankTarget: true,
]
}
//
},
]
}
/>
/>
);
);
};
};
...
...
src/pages/device/model/index.jsx
View file @
d9a8cec6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-1
0 15:12:23
* @Last Modified time: 2022-11-1
1 17:11:00
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -96,7 +96,7 @@ function Model(props) {
...
@@ -96,7 +96,7 @@ function Model(props) {
return
(
return
(
<
PremButton
<
PremButton
pop=
{
{
pop=
{
{
title
:
'是否删除该
用户
?'
,
title
:
'是否删除该
设备
?'
,
okText
:
'确认'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
cancelText
:
'取消'
,
onConfirm
:
async
()
=>
{
onConfirm
:
async
()
=>
{
...
@@ -143,6 +143,7 @@ function Model(props) {
...
@@ -143,6 +143,7 @@ function Model(props) {
addconfig=
{
{
addconfig=
{
{
// access: 'sysDepartment_save',
// access: 'sysDepartment_save',
btn
:
{
btn
:
{
type
:
'primary'
,
disabled
:
false
,
disabled
:
false
,
onClick
:
()
=>
{
onClick
:
()
=>
{
setDrawer
((
s
)
=>
({
setDrawer
((
s
)
=>
({
...
...
src/pages/device/supplier/columns.js
View file @
d9a8cec6
...
@@ -6,12 +6,6 @@ function getcolumns(setdrawer) {
...
@@ -6,12 +6,6 @@ function getcolumns(setdrawer) {
title
:
'供应商编号'
,
title
:
'供应商编号'
,
dataIndex
:
'supplierNo'
,
dataIndex
:
'supplierNo'
,
key
:
'supplierNo'
,
key
:
'supplierNo'
,
hideInForm
:
{
accountName
:
{
reverse
:
[
'1'
,
'2'
,
'5'
],
},
remark
:
[
'3'
],
},
},
},
{
{
title
:
'供应商名称'
,
title
:
'供应商名称'
,
...
@@ -20,16 +14,18 @@ function getcolumns(setdrawer) {
...
@@ -20,16 +14,18 @@ function getcolumns(setdrawer) {
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
{
{
required
:
fals
e
,
required
:
tru
e
,
message
:
'此项为必填项'
,
message
:
'此项为必填项'
,
},
},
],
],
},
},
},
},
{
{
title
:
'电话'
,
title
:
'公司官网'
,
dataIndex
:
'telephone'
,
dataIndex
:
'officialWebsite'
,
key
:
'telephone'
,
key
:
'officialWebsite'
,
hideInTable
:
true
,
search
:
false
,
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
{
{
...
@@ -40,9 +36,9 @@ function getcolumns(setdrawer) {
...
@@ -40,9 +36,9 @@ function getcolumns(setdrawer) {
},
},
},
},
{
{
title
:
'
邮箱
'
,
title
:
'
联系电话
'
,
dataIndex
:
'
email
'
,
dataIndex
:
'
telephone
'
,
key
:
'
email
'
,
key
:
'
telephone
'
,
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
{
{
...
@@ -53,9 +49,9 @@ function getcolumns(setdrawer) {
...
@@ -53,9 +49,9 @@ function getcolumns(setdrawer) {
},
},
},
},
{
{
title
:
'
地址
'
,
title
:
'
邮箱
'
,
dataIndex
:
'
address
'
,
dataIndex
:
'
email
'
,
key
:
'
address
'
,
key
:
'
email
'
,
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
{
{
...
@@ -66,8 +62,10 @@ function getcolumns(setdrawer) {
...
@@ -66,8 +62,10 @@ function getcolumns(setdrawer) {
},
},
},
},
{
{
title
:
'评分'
,
title
:
'地址'
,
dataIndex
:
'score'
,
dataIndex
:
'address'
,
key
:
'address'
,
width
:
300
,
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
{
{
...
@@ -90,6 +88,16 @@ function getcolumns(setdrawer) {
...
@@ -90,6 +88,16 @@ function getcolumns(setdrawer) {
},
},
],
],
},
},
options
:
[
{
label
:
'启用'
,
value
:
1
,
},
{
label
:
'禁用'
,
value
:
2
,
},
],
render
:
(
text
,
row
)
=>
{
render
:
(
text
,
row
)
=>
{
return
(
return
(
<
Switch
<
Switch
...
@@ -114,6 +122,122 @@ function getcolumns(setdrawer) {
...
@@ -114,6 +122,122 @@ function getcolumns(setdrawer) {
);
);
},
},
},
},
{
title
:
'评分'
,
dataIndex
:
'score'
,
key
:
'score'
,
valueType
:
'rate'
,
fieldProps
:
{
defaultValue
:
1
,
},
formItemProps
:
{
rules
:
[
{
required
:
false
,
message
:
'此项为必填项'
,
},
],
},
},
{
title
:
'备注'
,
dataIndex
:
'remark'
,
key
:
'remark'
,
valueType
:
'textarea'
,
width
:
300
,
fieldProps
:
{
placeholder
:
'请输入'
,
showCount
:
true
,
maxLength
:
255
,
},
formItemProps
:
{
rules
:
[
{
required
:
false
,
message
:
'此项为必填项'
,
},
],
},
},
{
title
:
'联系信息'
,
valueType
:
'formList'
,
dataIndex
:
'list'
,
key
:
'supplierUserList'
,
initialValue
:
[
{
state
:
'all'
,
title
:
'标题'
,
},
],
colProps
:
{
xs
:
24
,
sm
:
24
,
},
columns
:
[
{
title
:
'联系人'
,
dataIndex
:
'userName'
,
key
:
'userName'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
colProps
:
{
sm
:
6
,
},
},
{
title
:
'手机号码'
,
dataIndex
:
'telephone'
,
key
:
'telephone'
,
formItemProps
:
{
rules
:
[
{
required
:
true
,
message
:
'此项为必填项'
,
},
],
},
colProps
:
{
sm
:
6
,
},
},
{
title
:
'邮箱'
,
dataIndex
:
'email'
,
key
:
'email'
,
colProps
:
{
sm
:
6
,
},
},
{
title
:
'职务'
,
dataIndex
:
'title'
,
key
:
'title'
,
fieldProps
:
{
placeholder
:
'请选择'
,
},
formItemProps
:
{
rules
:
[
{
required
:
false
,
message
:
'此项为必填项'
,
},
],
},
colProps
:
{
sm
:
6
,
},
},
],
search
:
false
,
hideInTable
:
true
,
},
];
];
}
}
...
...
src/pages/device/supplier/index.jsx
View file @
d9a8cec6
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* @Author: Li Hanlin
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-1
0 16:57:58
* @Last Modified time: 2022-11-1
1 17:06:07
*/
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
...
@@ -62,7 +62,7 @@ function Supplier(props) {
...
@@ -62,7 +62,7 @@ function Supplier(props) {
...
s
,
...
s
,
visible
:
true
,
visible
:
true
,
detailpath
:
urlParams
.
detail
,
detailpath
:
urlParams
.
detail
,
params
:
{
id
:
drawer
?.
item
?.
id
},
params
:
{
id
:
row
?.
id
},
title
:
'编辑'
,
title
:
'编辑'
,
val
:
'edit'
,
val
:
'edit'
,
onFinish
:
async
(
vals
)
=>
{
onFinish
:
async
(
vals
)
=>
{
...
@@ -150,8 +150,11 @@ function Supplier(props) {
...
@@ -150,8 +150,11 @@ function Supplier(props) {
setDrawer
((
s
)
=>
({
setDrawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
true
,
visible
:
true
,
item
:
null
,
item
:
{
status
:
1
,
},
title
:
'新增'
,
title
:
'新增'
,
detailpath
:
null
,
val
:
'add'
,
val
:
'add'
,
onFinish
:
async
(
vals
)
=>
{
onFinish
:
async
(
vals
)
=>
{
let
params
=
{
let
params
=
{
...
...
src/pages/device/type/columns.js
View file @
d9a8cec6
function
getcolumns
(
setdrawer
)
{
function
getcolumns
(
setdrawer
)
{
return
[
return
[
{
{
title
:
'基础信息'
,
title
:
'设备类型'
,
valueType
:
'split'
,
dataIndex
:
'title'
,
},
key
:
'title'
,
{
title
:
'用户名'
,
dataIndex
:
'accountName'
,
formItemProps
:
{
rules
:
[
{
required
:
false
,
message
:
'此项为必填项'
,
},
],
},
initialValue
:
'默认值'
,
hideInForm
:
false
,
search
:
false
,
render
:
(
text
,
row
)
=>
{
return
(
<
a
onClick
=
{()
=>
{
setdrawer
?.((
s
)
=>
({
...
s
,
visible
:
true
,
item
:
null
,
title
:
'新增'
,
val
:
'add'
,
}));
}}
>
{
text
}
<
/a
>
);
},
},
{
title
:
'姓名'
,
dataIndex
:
'userName'
,
key
:
'userId'
,
hideInForm
:
{
hideInForm
:
{
accountName
:
{
accountName
:
{
reverse
:
[
'1'
,
'2'
,
'5'
],
reverse
:
[
'1'
,
'2'
,
'5'
],
...
@@ -48,52 +12,9 @@ function getcolumns(setdrawer) {
...
@@ -48,52 +12,9 @@ function getcolumns(setdrawer) {
},
},
search
:
false
,
search
:
false
,
},
},
{
title
:
'额外信息'
,
valueType
:
'split'
,
},
{
title
:
'联系电话'
,
dataIndex
:
'telephone'
,
formItemProps
:
{
rules
:
[
{
required
:
false
,
message
:
'此项为必填项'
,
},
],
},
search
:
false
,
},
{
title
:
'邮箱'
,
dataIndex
:
'mailNo'
,
formItemProps
:
{
rules
:
[
{
required
:
false
,
message
:
'此项为必填项'
,
},
],
},
search
:
false
,
},
{
{
title
:
'备注'
,
title
:
'备注'
,
dataIndex
:
'remark'
,
dataIndex
:
'remark'
,
valueType
:
'editor'
,
search
:
false
,
colProps
:
{
span
:
24
},
initialValue
:
'<p>Hello <b>World!</b></p>'
,
},
{
title
:
'上传样式-图片'
,
dataIndex
:
'uploadImage'
,
key
:
'uploadImage'
,
valueType
:
'uploadImage'
,
fieldProps
:
{
limit
:
2
,
},
formItemProps
:
{
formItemProps
:
{
rules
:
[
rules
:
[
{
{
...
@@ -102,6 +23,7 @@ function getcolumns(setdrawer) {
...
@@ -102,6 +23,7 @@ function getcolumns(setdrawer) {
},
},
],
],
},
},
search
:
false
,
},
},
];
];
}
}
...
...
src/pages/device/type/index.jsx
View file @
d9a8cec6
/* 设备类型
* @Author: Li Hanlin
* @Date: 2022-11-09 14:44:44
* @Last Modified by: Li Hanlin
* @Last Modified time: 2022-11-11 11:15:50
*/
import
*
as
React
from
'react'
;
import
*
as
React
from
'react'
;
import
{
useState
,
useMemo
,
useRef
}
from
'react'
;
import
{
useState
,
useMemo
,
useRef
}
from
'react'
;
import
DrawerPro
from
'@/components/DrawerPro'
;
import
DrawerPro
from
'@/components/DrawerPro'
;
import
AutoTable
from
'@/components/AutoTable'
;
import
AutoTable
from
'@/components/AutoTable'
;
import
PremButton
from
'@/components/PremButton'
;
import
PremButton
from
'@/components/PremButton'
;
import
getcolumns
from
'./columns'
;
import
getcolumns
from
'./columns'
;
import
{
doFetch
}
from
'@/utils/doFetch'
;
import
{
message
}
from
'antd'
;
function
Type
(
props
)
{
function
Type
(
props
)
{
const
actionRef
=
useRef
(),
const
actionRef
=
useRef
(),
formRef
=
useRef
();
formRef
=
useRef
();
const
[
drawer
,
set
d
rawer
]
=
useState
({
const
[
drawer
,
set
D
rawer
]
=
useState
({
visible
:
false
,
visible
:
false
,
});
});
const
urlParams
=
{
save
:
'/asset/equipmentType/save'
,
remove
:
'/asset/equipmentType/deleteById'
,
list
:
'/asset/equipmentType/queryTreeList'
,
detail
:
'/asset/equipmentSupplier/query/detail'
,
};
const
detail
=
(
text
,
row
,
_
,
action
)
=>
{
const
detail
=
(
text
,
row
,
_
,
action
)
=>
{
return
(
return
(
<
PremButton
<
PremButton
...
@@ -19,7 +35,7 @@ function Type(props) {
...
@@ -19,7 +35,7 @@ function Type(props) {
size
:
'small'
,
size
:
'small'
,
type
:
'link'
,
type
:
'link'
,
onClick
:
()
=>
{
onClick
:
()
=>
{
set
d
rawer
((
s
)
=>
({
set
D
rawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
true
,
visible
:
true
,
item
:
row
,
item
:
row
,
...
@@ -41,12 +57,32 @@ function Type(props) {
...
@@ -41,12 +57,32 @@ function Type(props) {
btn=
{
{
btn=
{
{
size
:
'small'
,
size
:
'small'
,
onClick
:
()
=>
{
onClick
:
()
=>
{
set
d
rawer
((
s
)
=>
({
set
D
rawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
true
,
visible
:
true
,
item
:
row
,
detailpath
:
urlParams
.
detail
,
params
:
{
id
:
drawer
?.
item
?.
id
},
title
:
'编辑'
,
title
:
'编辑'
,
val
:
'edit'
,
val
:
'edit'
,
onFinish
:
async
(
vals
)
=>
{
console
.
log
(
1
);
let
params
=
{
...
vals
,
id
:
row
.
id
,
};
let
res
=
await
doFetch
({
url
:
urlParams
.
save
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'编辑成功!'
);
setDrawer
((
s
)
=>
({
...
s
,
visible
:
false
,
}));
actionRef
.
current
.
reload
();
}
},
}));
}));
},
},
}
}
}
}
...
@@ -60,11 +96,19 @@ function Type(props) {
...
@@ -60,11 +96,19 @@ function Type(props) {
return
(
return
(
<
PremButton
<
PremButton
pop=
{
{
pop=
{
{
title
:
'是否删除该
用户
?'
,
title
:
'是否删除该
供应商
?'
,
okText
:
'确认'
,
okText
:
'确认'
,
cancelText
:
'取消'
,
cancelText
:
'取消'
,
onConfirm
:
()
=>
{
onConfirm
:
async
()
=>
{
alert
(
0
);
let
res
=
await
doFetch
({
url
:
urlParams
.
remove
,
params
:
{
id
:
row
.
id
}
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'删除成功!'
);
setDrawer
((
s
)
=>
({
...
s
,
visible
:
false
,
}));
actionRef
.
current
.
reload
();
}
},
},
}
}
}
}
btn=
{
{
btn=
{
{
...
@@ -78,39 +122,53 @@ function Type(props) {
...
@@ -78,39 +122,53 @@ function Type(props) {
};
};
const
columns
=
useMemo
(()
=>
{
const
columns
=
useMemo
(()
=>
{
let
defcolumn
=
getcolumns
(
set
d
rawer
);
let
defcolumn
=
getcolumns
(
set
D
rawer
);
return
defcolumn
.
concat
({
return
defcolumn
.
concat
({
title
:
'操作'
,
title
:
'操作'
,
valueType
:
'option'
,
valueType
:
'option'
,
width
:
150
,
width
:
150
,
render
:
(
text
,
row
,
_
,
action
)
=>
[
render
:
(
text
,
row
,
_
,
action
)
=>
[
edit
(
text
,
row
,
_
,
action
),
remove
(
text
,
row
,
_
,
action
)],
detail
(
text
,
row
,
_
,
action
),
edit
(
text
,
row
,
_
,
action
),
remove
(
text
,
row
,
_
,
action
),
],
});
});
},
[]);
},
[]);
return
(
return
(
<
div
style=
{
{
position
:
'relative'
}
}
>
<
div
style=
{
{
position
:
'relative'
}
}
>
<
AutoTable
<
AutoTable
pagetitle=
" 设备类型"
pagetitle=
{
<
h3
className=
"page-title"
>
设备类型
</
h3
>
}
columns=
{
columns
}
columns=
{
columns
}
path=
"/ngic-auth/sysUser/query/page"
path=
{
urlParams
.
list
}
actionRef=
{
actionRef
}
actionRef=
{
actionRef
}
pageextra=
{
'add'
}
pageextra=
{
'add'
}
resizeable=
{
tru
e
}
resizeable=
{
fals
e
}
addconfig=
{
{
addconfig=
{
{
// access: 'sysDepartment_save',
// access: 'sysDepartment_save',
btn
:
{
btn
:
{
disabled
:
false
,
disabled
:
false
,
type
:
'primary'
,
onClick
:
()
=>
{
onClick
:
()
=>
{
set
d
rawer
((
s
)
=>
({
set
D
rawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
true
,
visible
:
true
,
item
:
null
,
item
:
null
,
title
:
'新增'
,
title
:
'新增'
,
val
:
'add'
,
val
:
'add'
,
onFinish
:
async
(
vals
)
=>
{
let
params
=
{
...
vals
,
};
let
res
=
await
doFetch
({
url
:
urlParams
.
save
,
params
,
});
if
(
res
.
code
===
'0000'
)
{
message
.
success
(
'新增成功!'
);
setDrawer
((
s
)
=>
({
...
s
,
visible
:
false
,
}));
actionRef
.
current
.
reload
();
}
},
}));
}));
},
},
},
},
...
@@ -119,12 +177,11 @@ function Type(props) {
...
@@ -119,12 +177,11 @@ function Type(props) {
<
DrawerPro
<
DrawerPro
fields=
{
columns
}
fields=
{
columns
}
detailpath=
"/ngic-auth/sysUser/query/detail"
defaultFormValue=
{
drawer
?.
item
??
{}
}
params=
{
{
id
:
drawer
?.
item
?.
id
}
}
formRef=
{
formRef
}
formRef=
{
formRef
}
placement=
"right"
placement=
"right"
onClose=
{
()
=>
{
onClose=
{
()
=>
{
set
d
rawer
((
s
)
=>
({
set
D
rawer
((
s
)
=>
({
...
s
,
...
s
,
visible
:
false
,
visible
:
false
,
}));
}));
...
@@ -135,4 +192,4 @@ function Type(props) {
...
@@ -135,4 +192,4 @@ function Type(props) {
);
);
}
}
export
default
Type
;
export
default
Type
;
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment