Commit 160999d9 by cyf783

Merge branch 'master' of https://git.oschina.net/cyf783/guns

parents 78afc014 bd6ce38d
......@@ -15,7 +15,7 @@
<select id="list" resultType="map">
select * from dict
where num = 0
where pid = 0
<if test="condition != null and condition != ''">
AND name like CONCAT('%',#{condition},'%')
</if>
......
......@@ -98,15 +98,20 @@ MgrUser.roleAssign = function () {
*/
MgrUser.delMgrUser = function () {
if (this.check()) {
var userId = this.seItem.id;
var ajax = new $ax(Feng.ctxPath + "/mgr/delete", function (data) {
Feng.success("删除成功!");
MgrUser.table.refresh();
}, function (data) {
Feng.error("删除失败!" + data.responseJSON.message + "!");
});
ajax.set("userId", userId);
ajax.start();
var operation = function(){
var userId = MgrUser.seItem.id;
var ajax = new $ax(Feng.ctxPath + "/mgr/delete", function () {
Feng.success("删除成功!");
MgrUser.table.refresh();
}, function (data) {
Feng.error("删除失败!" + data.responseJSON.message + "!");
});
ajax.set("userId", userId);
ajax.start();
};
Feng.confirm("是否删除用户" + MgrUser.seItem.account + "?",operation);
}
};
......
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