teamBusinessEdit.html 3.2 KB
Newer Older
doc_wei's avatar
doc_wei 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title></title>
    <link href="../../assets/lib/layui/css/layui.css" rel="stylesheet" />
    <link href="../../assets/lib/winui/css/winui.css" rel="stylesheet" />
</head>
<body>
	<div style="padding:20px; margin:0 auto;">
	    <form class="layui-form" action="" id="showForm" autocomplete="off">
	        
	    </form>
	</div>

	<script type="text/x-handlebars-template" id="showTemplate">
		{{#bean}}
doc_wei's avatar
doc_wei 已提交
18 19 20 21 22 23 24 25 26 27 28
		<div class="layui-form-item layui-col-xs12">
			<span class="hr-title">基本信息</span><hr>
		</div>
		<div class="layui-form-item layui-col-xs6">
			<label class="layui-form-label">团队经理<i class="red">*</i></label>
			<div class="layui-input-block">
				<input type="text" id="chargeUser" name="chargeUser" win-verify="required" placeholder="请选择团队经理" class="layui-input" readonly="readonly"/>
				<i class="fa fa-user-plus input-icon" id="chargeUserSelPeople"></i>
				<div class="layui-form-mid layui-word-aux">团队经理拥有所有的权限</div>
			</div>
		</div>
doc_wei's avatar
doc_wei 已提交
29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
		<div class="layui-form-item layui-col-xs12">
			<span class="hr-title">成员信息</span><hr>
		</div>
		<div class="layui-form-item layui-col-xs12">
			<label class="layui-form-label">成员信息</label>
			<div class="layui-input-block">
				<div class="winui-tip alert-info" id="showInfo">一个用户在一个团队中只能属于一个角色</div>
				<div class="winui-toolbar">
					<div class="winui-tool" style="text-align: left;">
						<button id="addRole" class="winui-toolbtn" type="button"><i class="fa fa-plus" aria-hidden="true"></i>添加角色</button>
					</div>
				</div>
				<div style="margin:auto 10px;">
					<table id="messageTable" lay-filter="messageTable"></table>
				</div>
			</div>
		</div>

		<div class="layui-form-item layui-col-xs12">
			<span class="hr-title">权限信息</span><hr>
		</div>
		<div class="layui-form-item layui-col-xs12" id="authList">

		</div>
		<div class="layui-form-item layui-col-xs12">
			<div class="layui-input-block">
55
				<button class="winui-btn" id="cancle" type="button"><language showName="com.skyeye.cancel"></language></button>
doc_wei's avatar
doc_wei 已提交
56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88
				<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
			</div>
		</div>
		{{/bean}}
	</script>

	<script type="text/html" id="tableBar">
		{{# if(d.pId == '0'){ }}
		<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="addUser">添加成员</a>
		<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="removeRole">移除</a>
		{{# } else { }}
		<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="removeUser">移除</a>
		{{# } }}
	</script>

	<script type="text/x-handlebars-template" id="authTableTemplate">
		{{#list}}
		<div class="layui-form-item layui-col-xs12">
			<label class="layui-form-label">{{title}}<i class="red">*</i></label>
			<div class="layui-input-block">
				<table id="{{id}}" lay-filter="{{id}}"></table>
			</div>
		</div>
		{{/list}}
	</script>

	<script src="../../assets/lib/layui/layui.js"></script>
   	<script src="../../assets/lib/layui/custom.js"></script>
   	<script type="text/javascript">
        layui.config({base: '../../js/teamBusiness/'}).use('teamBusinessEdit');
    </script>
</body>
</html>