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
a5a225e2
Commit
a5a225e2
authored
Jul 06, 2020
by
季圣华
Browse files
优化批量删除系统配置
parent
0f1f5600
Changes
1
Hide whitespace changes
Inline
Side-by-side
erp_web/pages/manage/systemConfig.html
View file @
a5a225e2
...
...
@@ -297,33 +297,28 @@
}
ids
+=
row
[
i
].
id
+
"
,
"
;
}
if
(
row
[
i
].
loginName
==
"
jsh
"
){
$
.
messager
.
alert
(
'
提示
'
,
'
管理员jsh不能删除!
'
,
'
warning
'
);
return
;
}
else
{
$
.
ajax
({
type
:
"
post
"
,
url
:
"
/systemConfig/batchDeleteSystemConfigByIds
"
,
dataType
:
"
json
"
,
async
:
false
,
data
:
({
ids
:
ids
}),
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
)
{
$
(
"
#searchBtn
"
).
click
();
$
(
"
:checkbox
"
).
attr
(
"
checked
"
,
false
);
}
else
{
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除系统配置信息失败,请稍后再试!
'
,
'
error
'
);
}
},
//此处添加错误处理
error
:
function
()
{
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除系统配置信息异常,请稍后再试!
'
,
'
error
'
);
return
;
$
.
ajax
({
type
:
"
post
"
,
url
:
"
/systemConfig/batchDeleteSystemConfigByIds
"
,
dataType
:
"
json
"
,
async
:
false
,
data
:
({
ids
:
ids
}),
success
:
function
(
res
)
{
if
(
res
&&
res
.
code
===
200
)
{
$
(
"
#searchBtn
"
).
click
();
$
(
"
:checkbox
"
).
attr
(
"
checked
"
,
false
);
}
else
{
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除系统配置信息失败,请稍后再试!
'
,
'
error
'
);
}
});
}
},
//此处添加错误处理
error
:
function
()
{
$
.
messager
.
alert
(
'
删除提示
'
,
'
删除系统配置信息异常,请稍后再试!
'
,
'
error
'
);
return
;
}
});
}
});
}
...
...
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