diff --git a/pages/member/user.html b/pages/member/user.html index 7a64839..01af3fd 100644 --- a/pages/member/user.html +++ b/pages/member/user.html @@ -58,7 +58,7 @@ toolbar: "#toolbarTpl", size: "sm", cols: [[ - {type: "checkbox"}, + {type: "checkbox", fixed: "left"}, {field: "id", title: "ID", width: 80, sort: true}, {field: "username", title: "用户名", width: 100}, {field: "name", title: "姓名", width: 100}, @@ -68,7 +68,7 @@ {field: "email", title: "邮箱", width: 200}, {field: "createTime", title: "创建时间", width: 200}, {field: "logins", title: "登陆次数", width: 100}, - {title: "操作", width: 200, templet: "#operationTpl", align: "center"} + {title: "操作", width: 100, templet: "#operationTpl", align: "center", fixed: "right"} ]], done: function (res, curr, count) { console.info(res, curr, count); @@ -173,7 +173,7 @@ }) } - function del() { + function del(id) { okLayer.confirm("确定要删除吗?", function () { okUtils.ajax(okUtils.mockApi.user.batchDel, "delete", {idsStr: id}).done(function (response) { console.log(response)