From 6c4df4f1416f7f0de0345cb4807938c2aa7565d2 Mon Sep 17 00:00:00 2001 From: bobi Date: Thu, 22 Aug 2019 19:35:43 +0800 Subject: [PATCH] fixed:user.htl --- pages/member/user.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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)