| | |
| | | <!--</script>--> |
| | | |
| | | <script type="text/html" id="aiApplyOption"> |
| | | <button class="layui-btn layui-btn-sm layui-btn-success" type="button" shiro:hasPermission="applyList:view" lay-event="aiApplyInfoAgreeEvent">同意</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-danger" type="button" shiro:hasPermission="applyList:view" lay-event="aiApplyInfoDisagreeEvent">拒绝</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-warm" type="button" shiro:hasPermission="applyList:view" lay-event="aiApplyInfoUnbindEvent">解绑</button> |
| | | {{# if(d.state == 0){ }} |
| | | <button class="layui-btn layui-btn-sm layui-btn-success" type="button" shiro:hasPermission="companyList:info" lay-event="aiApplyInfoAgreeEvent">同意</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-danger" type="button" shiro:hasPermission="companyList:info" lay-event="aiApplyInfoDisagreeEvent">拒绝</button> |
| | | {{# } }} |
| | | {{# if(d.state == 1){ }} |
| | | <button class="layui-btn layui-btn-sm layui-btn-warm" type="button" shiro:hasPermission="companyList:info" lay-event="aiApplyInfoUnbindEvent">解绑</button> |
| | | {{# } }} |
| | | </script> |
| | | |
| | | |
| | |
| | | } |
| | | }); |
| | | } else if (layEvent === 'aiApplyInfoAgreeEvent') { |
| | | febs.modal.confirm('删除', '确认删除?', function () { |
| | | memberRoleDeleteEvent(data.id); |
| | | }); |
| | | // 同意操作 |
| | | febs.confirm('确定要同意该申请吗?', function () { |
| | | febs.modal.confirm('审核','确定要同意该申请吗?', function () { |
| | | handleApplyAction(data.id, 'agree'); |
| | | }); |
| | | } else if (layEvent === 'aiApplyInfoDisagreeEvent') { |
| | | // 拒绝操作 |
| | | febs.confirm('确定要拒绝该申请吗?', function () { |
| | | febs.modal.confirm('审核','确定要拒绝该申请吗?', function () { |
| | | handleApplyAction(data.id, 'disagree'); |
| | | }); |
| | | } else if (layEvent === 'aiApplyInfoUnbindEvent') { |
| | | // 解绑操作 |
| | | febs.confirm('确定要解除绑定吗?此操作不可撤销!', function () { |
| | | febs.modal.confirm('审核','确定要解除绑定吗?此操作不可撤销!', function () { |
| | | handleApplyAction(data.id, 'unbind'); |
| | | }); |
| | | } |
| | |
| | | data: JSON.stringify({id: id}), |
| | | dataType: 'json', |
| | | headers: {'Content-Type': 'application/json;charset=utf-8'}, |
| | | beforeSend: function() { |
| | | febs.loading.show(); |
| | | }, |
| | | success: function(res) { |
| | | if (res.code === 200) { |
| | | febs.alert.success(actionName + '成功'); |
| | |
| | | febs.alert.error('服务器错误,请稍后重试'); |
| | | }, |
| | | complete: function() { |
| | | febs.loading.hide(); |
| | | } |
| | | }); |
| | | } |