teamTemplateEdit.html 3.9 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
		<div class="layui-form-item layui-col-xs12">
			<span class="hr-title">基本信息</span><hr>
		</div>
doc_wei's avatar
doc_wei 已提交
21
		<div class="layui-form-item layui-col-xs6">
doc_wei's avatar
doc_wei 已提交
22
			<label class="layui-form-label">团队名称<i class="red">*</i></label>
doc_wei's avatar
doc_wei 已提交
23
			<div class="layui-input-block">
doc_wei's avatar
doc_wei 已提交
24 25
				<input type="text" id="name" name="name" win-verify="required" placeholder="请输入团队名称" class="layui-input" value="{{name}}"/>
				<div class="layui-form-mid layui-word-aux">团队名称不能重复</div>
doc_wei's avatar
doc_wei 已提交
26 27 28
			</div>
		</div>
		<div class="layui-form-item layui-col-xs6">
doc_wei's avatar
doc_wei 已提交
29
			<label class="layui-form-label">适用对象<i class="red">*</i></label>
doc_wei's avatar
doc_wei 已提交
30
			<div class="layui-input-block">
doc_wei's avatar
doc_wei 已提交
31 32 33
				<select lay-filter="objectType" lay-search="" id="objectType" win-verify="required">

				</select>
doc_wei's avatar
doc_wei 已提交
34 35 36 37 38 39 40 41 42 43 44 45
			</div>
		</div>
		<div class="layui-form-item layui-col-xs12">
			<label class="layui-form-label">状态<i class="red">*</i></label>
			<div class="layui-input-block winui-radio" id="enabled">
			</div>
		</div>
		<div class="layui-form-item layui-col-xs12">
			<label class="layui-form-label">备注</label>
			<div class="layui-input-block">
				<textarea id="remark" name="remark" placeholder="请输入备注" class="layui-textarea" style="height: 100px;" maxlength="200">{{remark}}</textarea>
			</div>
doc_wei's avatar
doc_wei 已提交
46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69
		</div>
		<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">

doc_wei's avatar
doc_wei 已提交
70 71 72 73 74 75 76 77 78 79
		</div>
		<div class="layui-form-item layui-col-xs12">
			<div class="layui-input-block">
				<button class="winui-btn" id="cancle"><language showName="com.skyeye.cancel"></language></button>
				<button class="winui-btn" lay-submit lay-filter="formEditBean"><language showName="com.skyeye.save"></language></button>
			</div>
		</div>
		{{/bean}}
	</script>

doc_wei's avatar
doc_wei 已提交
80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99
	<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>

doc_wei's avatar
doc_wei 已提交
100 101 102
	<script src="../../assets/lib/layui/layui.js"></script>
   	<script src="../../assets/lib/layui/custom.js"></script>
   	<script type="text/javascript">
doc_wei's avatar
doc_wei 已提交
103
        layui.config({base: '../../js/teamTemplate/'}).use('teamTemplateEdit');
doc_wei's avatar
doc_wei 已提交
104 105 106
    </script>
</body>
</html>