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
618e8a91
Commit
618e8a91
authored
2 years ago
by
TZW
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
b894cdf5
master
ems_danji
ems_zl
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
11 additions
and
2 deletions
+11
-2
index.jsx
src/components/TreeRender/index.jsx
+10
-2
index.jsx
src/pages/spare/setting/index.jsx
+1
-0
No files found.
src/components/TreeRender/index.jsx
View file @
618e8a91
...
...
@@ -220,11 +220,12 @@ function TreeRender({
)
}
{
(
!
item
.
children
||
item
.
children
.
length
==
0
)
&&
item
.
key
!=
'0'
&&
(
<
Popconfirm
placement=
"
bottom
"
placement=
"
top
"
title=
"是否删除该节点?"
okText=
"删除"
cancelText=
"取消"
onConfirm=
{
()
=>
{
onConfirm=
{
(
e
)
=>
{
console
.
log
(
111
);
doFetch
({
url
:
deleteurl
,
params
:
{
id
:
item
.
key
}
}).
then
((
res
)
=>
{
if
(
res
.
code
==
'0000'
)
{
message
.
success
(
'操作成功'
);
...
...
@@ -237,7 +238,14 @@ function TreeRender({
<
Tooltip
title=
"删除"
>
<
MinusSquareOutlined
onClick=
{
(
e
)
=>
{
// console.log(e);
e
.
stopPropagation
();
doFetch
({
url
:
deleteurl
,
params
:
{
id
:
item
.
key
}
}).
then
((
res
)
=>
{
if
(
res
.
code
==
'0000'
)
{
message
.
success
(
'操作成功'
);
refresh
();
}
});
}
}
style=
{
{
color
:
'red'
}
}
/>
...
...
This diff is collapsed.
Click to expand it.
src/pages/spare/setting/index.jsx
View file @
618e8a91
...
...
@@ -145,6 +145,7 @@ function Setting(props) {
saveurl=
"/sparepart/sparePartType/save"
submitKey=
"sparePartTypeName"
onselected=
{
(
vals
)
=>
{
console
.
log
(
vals
);
setsparePartTypeId
(
vals
[
0
]
??
''
);
}
}
/>
...
...
This diff is collapsed.
Click to expand it.
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