刘帅
2026-09-23 2d1510060f55ac012cb862363203313744c0432f
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
@layout("/common/_container.html"){
<div class="ibox float-e-margins">
    <div class="ibox-content">
        <div class="form-horizontal" id="userInfoForm">
            <input type="hidden" id="id" value="${user.id}">
            <input type="hidden" id="sexValue" value="${user.sex}">
            <input type="hidden" id="roleid_" value="${user.roleid}">
            <input type="hidden" id="selectedStoreIds" value="${selectedStoreIds}">
            <div class="row">
                <div class="col-sm-6">
                    <div id="driverInfoContent">
                        <#input id="name" name="员工姓名" underline="true" value="${user.name}" />
                        <#input id="phone" name="联系电话" underline="true" value="${user.phone}" />
                        <#avatar id="avatar" name="照片" underline="true" avatarImg="${user.avatar}" />
                        <#input id="birthday" name="生日" underline="true" type="text" value="${user.birthday}" />
                        <#select id="sex" name="性别" underline="true" >
                        <option value="1" selected>男</option>
                        <option value="2">女</option>
                    </#select>
                    <#input id="idCard" name="身份证号" type="text" underline="true" value="${idCard}"/>
                    <#select id="roleid" name="角色" underline="true" >
                    @for(l in list){
                    <option value="${l.id}" ${l.id == user.roleid ? 'selected=selected' : ''}>${l.name}</option>
                    @}
                </#select>
                @if(role == 1){
                    <#select id="deptid" name="所在部门" underline="true" >
                    @for(l in depts){
                        <option value="${l.id}" ${l.id == user.deptid ? 'selected=selected' : ''}>${l.fullname}</option>
                    @}
                    </#select>
                @}
                    <div class="form-group">
                        <label class="col-sm-3 control-label">归属门店</label>
                        <div class="col-sm-9">
                            <select class="form-control" id="storeIds" name="storeIds" multiple="multiple">
                                @for(store in stores){
                                <option value="${store.id}">${store.name}</option>
                                @}
                            </select>
                            <span class="help-block">可多选:Windows/Linux 按住 Ctrl 键逐项点击;Mac 按住 ⌘ 键逐项点击。</span>
                        </div>
                    </div>
            </div>
        </div>
    </div>
    <!-- 这是部门选择的下拉框 -->
    <div id="menuContent" class="menuContent"
         style="display: none; position: absolute; z-index: 200;">
        <ul id="treeDemo" class="ztree tree-box" style="width: 249px !important;"></ul>
    </div>
 
    <div class="row btn-group-m-t">
        <div class="col-sm-10">
            @if(type == 1){
            <#button btnCss="info" name="提交" id="ensure" icon="fa-check" clickFun="UserInfoDlg.editSubmit()"/>
            @}
            <#button btnCss="danger" name="取消" id="cancel" icon="fa-eraser" clickFun="UserInfoDlg.close()"/>
        </div>
    </div>
 
 
</div>
 
 
 
 
 
 
<script src="${ctxPath}/modular/system/user/user_info.js?v=20260922-1"></script>
<script>
    laydate.render({
        elem: '#birthday'
    });
    $(function () {
        // 门店随编辑页一次性渲染,避免异步请求失败时多选框没有任何回显。
        var selectedStoreIds = ($("#selectedStoreIds").val() || "").split(",");
        $("#storeIds option").each(function () {
            this.selected = $.inArray(String(this.value), selectedStoreIds) !== -1;
        });
    });
</script>
@}