From 19e0e646a77de3c8e23717159d0c701f738c70a4 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Tue, 04 Aug 2020 17:21:41 +0800 Subject: [PATCH] 20200804 代碼提交 --- src/main/resources/templates/febs/views/modules/documentary/traderUpdate.html | 26 ++++++++++++++++++++++++++ 1 files changed, 26 insertions(+), 0 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/documentary/traderUpdate.html b/src/main/resources/templates/febs/views/modules/documentary/traderUpdate.html index dc5be4b..5ed47b1 100644 --- a/src/main/resources/templates/febs/views/modules/documentary/traderUpdate.html +++ b/src/main/resources/templates/febs/views/modules/documentary/traderUpdate.html @@ -84,7 +84,30 @@ } }); } + if (layEvent === 'getOut') { + febs.modal.confirm('确认', '您是否要踢出该交易员?', function () { + confirmUsers(data.id); + }); + } + if (layEvent === 'getFull') { + febs.modal.confirm('确认', '您是否要设置成【满员】状态?', function () { + cancelUsers(data.id); + }); + } }); + + function confirmUsers(id) { + febs.get(ctx + 'documentary/traderGetOut/' + id, null, function () { + febs.alert.success('踢出成功'); + $query.click(); + }); + } + function cancelUsers(id) { + febs.get(ctx + 'documentary/traderGetFull/' + id, null, function () { + febs.alert.success('设置成功'); + $query.click(); + }); + } // 查询按钮 @@ -137,6 +160,9 @@ templet: function (d) { if (d.verifyStatus === 3) { return '<a lay-event="edit" shiro:hasPermission="user:update">审核</a>' + }else if(d.verifyStatus === 1){ + return '<a lay-event="getOut" shiro:hasPermission="user:update">踢出</a>' + return '<a lay-event="getFull" shiro:hasPermission="user:update">满员</a>' }else { return '' } -- Gitblit v1.9.1