mirror of
https://github.com/getrebuild/rebuild.git
synced 2025-02-21 04:44:45 +08:00
opt
This commit is contained in:
parent
3f408af295
commit
07a3919ed8
2 changed files with 4 additions and 44 deletions
|
@ -1,41 +0,0 @@
|
|||
<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<%@ include file="/_include/Head.jsp"%>
|
||||
<title>删除角色</title>
|
||||
<style type="text/css">
|
||||
.alters{margin-left:48px;margin-right:48px}
|
||||
</style>
|
||||
</head>
|
||||
<body class="dialog">
|
||||
<div class="main-content">
|
||||
<div class="text-center">
|
||||
<div class="text-danger">
|
||||
<span class="modal-main-icon zmdi zmdi-alert-triangle"></span>
|
||||
</div>
|
||||
<h4>删除确认</h4>
|
||||
<p class="alters">我们建议你禁用用户,而非删除用户。<br>如确认删除,你需要先将此用户下的所有业务数据转移给其他用户。</p>
|
||||
<div class="mt-6 mb-4">
|
||||
<button class="btn btn-space btn-secondary" type="button" onclick="parent.rb.modalHide()">取消</button>
|
||||
<button class="btn btn-space btn-primary" type="button">禁用</button>
|
||||
<button class="btn btn-space btn-danger" type="button">删除</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<%@ include file="/_include/Foot.jsp"%>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function(){
|
||||
let user = $urlp('user')
|
||||
let btn = $('.btn-danger').click(function(){
|
||||
btn.button('loading')
|
||||
$.post(rb.baseUrl + '/admin/bizuser/user-delete?id=' + user, function(res){
|
||||
if (res.error_code == 0) parent.location.replace(rb.baseUrl + '/admin/bizuser/role-privileges')
|
||||
else rb.notice(res.error_msg, 'danger')
|
||||
btn.button('reset')
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
|
@ -29,13 +29,14 @@
|
|||
<div class="J_edit-menu hide" style="margin-top:-6px">
|
||||
<div class="tab-container">
|
||||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item"><a class="nav-link J_menuType active" href="#ENTITY" data-toggle="tab">关联实体</a></li>
|
||||
<li class="nav-item"><a class="nav-link J_menuType active" href="#ENTITY" data-toggle="tab">关联项</a></li>
|
||||
<li class="nav-item"><a class="nav-link J_menuType" href="#URL" data-toggle="tab">外部地址</a></li>
|
||||
</ul>
|
||||
<div class="tab-content m-0" style="padding:20px 0">
|
||||
<div class="tab-pane active" id="ENTITY">
|
||||
<select class="form-control form-control-sm J_menuEntity">
|
||||
<option value="">请选择实体</option>
|
||||
<option value="">请选择关联项</option>
|
||||
<optgroup label="实体"></optgroup>
|
||||
</select>
|
||||
</div>
|
||||
<div class="tab-pane" id="URL">
|
||||
|
@ -80,7 +81,7 @@ $(document).ready(function(){
|
|||
|
||||
$.get(rb.baseUrl + '/commons/metadata/entities', function(res){
|
||||
$(res.data).each(function(){
|
||||
$('<option value="' + this.name + '" data-icon="' + this.icon + '">' + this.label + '</option>').appendTo('.J_menuEntity')
|
||||
$('<option value="' + this.name + '" data-icon="' + this.icon + '">' + this.label + '</option>').appendTo('.J_menuEntity optgroup')
|
||||
})
|
||||
})
|
||||
$('.J_menuEntity').change(function(){
|
||||
|
|
Loading…
Reference in a new issue