Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JSH ERP
Commits
ba7069ee
Commit
ba7069ee
authored
Sep 14, 2020
by
季圣华
Browse files
解决商品类别删除的bug
parent
e5e3d209
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/materials/materialcategory.html
View file @
ba7069ee
...
...
@@ -173,17 +173,23 @@
return
;
}
if
(
nodes
.
length
>
0
)
{
$
.
messager
.
confirm
(
'
删除确认
'
,
'
确定要删除选中的
'
+
nodes
.
length
+
'
条商品类别信息吗?
'
,
function
(
r
)
{
if
(
r
)
{
var
ids
=
""
;
for
(
var
i
=
0
;
i
<
nodes
.
length
;
i
++
)
{
if
(
i
==
nodes
.
length
-
1
)
{
ids
+=
nodes
[
i
].
id
;
break
;
}
//alert(row[i].id);
ids
+=
nodes
[
i
].
id
+
"
,
"
;
var
ids
=
""
;
var
texts
=
""
;
for
(
var
i
=
0
;
i
<
nodes
.
length
;
i
++
)
{
if
(
i
==
nodes
.
length
-
1
)
{
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
nodes
[
i
].
target
))
{
ids
+=
nodes
[
i
].
id
;
texts
+=
nodes
[
i
].
text
;
}
break
;
}
if
(
$
(
'
#tt
'
).
tree
(
'
isLeaf
'
,
nodes
[
i
].
target
))
{
ids
+=
nodes
[
i
].
id
+
"
,
"
;
texts
+=
nodes
[
i
].
text
+
"
,
"
;
}
}
$
.
messager
.
confirm
(
'
删除确认
'
,
'
确定要删除选中的商品类别(
'
+
texts
+
'
)吗?
'
,
function
(
r
)
{
if
(
r
)
{
$
.
ajax
({
type
:
"
post
"
,
url
:
"
/materialCategory/batchDeleteMaterialCategory
"
,
...
...
Write
Preview
Supports
Markdown
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