| | |
| | | }
|
| | | });
|
| | | }
|
| | | 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();
|
| | | });
|
| | | }
|
| | |
|
| | |
|
| | | // 查询按钮
|
| | |
| | | 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 ''
|
| | | }
|