Index.cshtml
8.44 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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
55
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
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
@{
Layout = "~/Views/Shared/_LayoutSys.cshtml";
}
@section header
{
<style type="text/css">
.footer {
position: relative;
top: 10px;
width: 500px;
text-align: right;
}
.footer-btn {
margin-right: 40px;
}
</style>
}
<blockquote class="layui-elem-quote toolList" id="menus"></blockquote>
<div id="listForm" class="layui-tab-item layui-show">
<form class="layui-form layui-form-pane" action="" lay-filter="listForm">
<div class="layui-form-item" id="panelSearch" hidden>
<fieldset class="layui-elem-field">
<div class="layui-field-box" id="qform">
<div class="layui-form-item layui-col-sm12">
<div class="layui-inline toolList">
<a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius" data-type="btnQuery"><i class="layui-icon"></i>查询</a>
<a href="javascript:;" class="layui-btn layui-btn-sm layui-btn-radius layui-btn-danger" data-type="btnClose"><i class="layui-icon"></i>关闭</a>
</div>
</div>
<div class="layui-row">
<div class="layui-col-sm3">
<label class="layui-form-label">用户名</label>
<div class="layui-input-inline">
<input name="Name" id="Name" type="text" autocomplete="off" maxlength="50" class="layui-input">
</div>
</div>
<div class="layui-col-sm3">
<label class="layui-form-label">卡号</label>
<div class="layui-input-inline">
<input name="Idcard" id="Idcard" type="text" autocomplete="off" maxlength="50" class="layui-input">
</div>
</div>
</div>
</div>
</fieldset>
</div>
</form>
</div>
<div class="layui-row">
<div class="layui-col-xs2">
<ul id="tree" class="ztree"
style="padding: 2px; border: 1px solid #ddd; overflow: auto;"></ul>
</div>
<div class="layui-col-xs10">
<table class="layui-table" lay-data="{height: 'full-60', page:true, id:'mainList' ,limit:50}" lay-filter="list" lay-size="sm">
<thead>
<tr>
<th lay-data="{checkbox:true, fixed: true}"></th>
<th lay-data="{field:'Id', width:80, hide: true}">Id</th>
<th lay-data="{field:'Account', width:180, sort: true, fixed: false}">账号</th>
<th lay-data="{field:'Name', width:180}">用户名</th>
<th lay-data="{field:'Organizations', width:200}">所属部门</th>
<th lay-data="{field:'FaceID', width:135}">脸部ID</th>
<th lay-data="{field:'FacePicture', width:135}">图片路径</th>
<th lay-data="{field:'Idcard', width:135}">工卡ID</th>
<th lay-data="{field:'PhoneNumber', width:180}">联系方式</th>
<th lay-data="{field:'CreateBy', width:150, hide: false}">创建者</th>
<th lay-data="{field:'CreateTime', width:150, hide: false}">创建时间</th>
<th lay-data="{field:'UpdateBy', width:150, hide: true}">更新者</th>
<th lay-data="{field:'UpdateTime', width:150, hide: true}">更新时间</th>
</tr>
</thead>
</table>
</div>
</div>
<!--用户添加/编辑窗口-->
<div id="divEdit" style="display: none">
<form class="layui-form layui-form-pane" action="" id="formEdit">
<div class="layui-form-item">
<label class="layui-form-label">账号</label>
<div class="layui-input-block">
<input type="text" name="Account" v-model="Account" id="Account" required lay-verify="required"
placeholder="请输入登录账号" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item Password">
<label class="layui-form-label">密码</label>
<div class="layui-input-block">
<input type="password" name="Password" v-model="Password"
placeholder="请设置初始密码" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">用户名</label>
<div class="layui-input-block">
<input type="text" name="Name" v-model="Name" required lay-verify="required"
placeholder="请输入姓名" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">联系方式</label>
<div class="layui-input-block">
<input type="text" name="PhoneNumber" v-model="PhoneNumber" required lay-verify="required"
placeholder="请输入联系方式" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">所属部门</label>
<div class="layui-input-block">
<input id="Organizations" name="Organizations" v-model="Organizations" required lay-verify="required" class="layui-input" readonly />
<input id="OrganizationIds" name="OrganizationIds" v-model="OrganizationIds" required lay-verify="required" type="hidden" />
<div id="menuContent" class="menuContent" style="display: none;">
<ul id="org" class="ztree"></ul>
</div>
</div>
</div>
<div class="layui-form-item" pane>
<label class="layui-form-label">性别</label>
<div class="layui-input-block">
<input type="radio" name="Sex" value="1" title="男" checked>
<input type="radio" name="Sex" value="0" title="女">
</div>
</div>
<div class="layui-form-item" pane>
<label class="layui-form-label">是否可用</label>
<div class="layui-input-block">
<input type="checkbox" name="Status" v-model="Status" lay-skin="switch" value="1">
</div>
</div>
<div hidden>
<input name="Id" v-model="Id" disabled="disabled" type="text" autocomplete="off" lay-verify="">
<input name="CreateBy" v-model="CreateBy" class="layui-input" type="text" autocomplete="off" lay-verify="">
<input name="CreateTime" v-model="CreateTime" class="layui-input" type="text" autocomplete="off" lay-verify="">
<input name="UpdateBy" v-model="UpdateBy" class="layui-input" type="text" autocomplete="off" lay-verify="">
<input name="UpdateTime" v-model="UpdateTime" class="layui-input" type="text" autocomplete="off" lay-verify="">
</div>
<div class="layui-form-item footer">
<div class="layui-input-block footer-btn">
<button class="layui-btn layui-btn-normal" lay-submit lay-filter="formSubmit">立即提交</button>
<button type="reset" class="layui-btn layui-btn-primary">重置</button>
</div>
</div>
</form>
</div>
<!--登录多重绑定-->
<div id="divBinding" style="display: none">
<form class="layui-form " action="">
<div class="layui-form-item">
<label class="layui-form-label">员工图片</label>
<div class="layui-input-block">
<input type="file" id="UserImage" name="UserImage" lay-verify="required" placeholder="请选择一张图片" autocomplete="off" class="layui-input">
</div>
</div>
<div class="layui-form-item">
<label class="layui-form-label">工卡ID</label>
<div class="layui-input-block">
<input type="text" id="JobCard" name="JobCard" lay-verify="required" placeholder="请输入工卡ID" autocomplete="off" class="layui-input">
</div>
</div>
<div><img id="UserImage_a" src="#" style="width:600px;height:300px;"></div>
</form>
</div>
@section Scripts
{
<script type="text/javascript" src="/productjs/base/sysuser.js" asp-append-version="true"></script>
}