wzy
2021-04-01 d388e2788b7ef088d7cd40f901b0acdcec460bc3
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
<!DOCTYPE HTML>
<html>
<head>
<meta charset="utf-8">
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
<meta name="renderer" content="webkit|ie-comp|ie-stand">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport"
    content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
<meta http-equiv="Cache-Control" content="no-siteapp" />
<LINK rel="Bookmark" th:href="@{/images/favicon.ico}">
<!-- 本框架基本脚本和样式 -->
<script type="text/javascript"
    th:src="@{/js/plugin/jquery-2.1.4.min.js}"></script>
<script type="text/javascript"
    th:src="@{/js/systools/MBase.js}"></script>
    <script type="text/javascript"
    th:src="@{/plugin/bootstrap-3.3.5/js/bootstrapSwitch.js}"></script>
<link rel="stylesheet" th:href="@{/plugin/bootstrap-3.3.5/css/bootstrapSwitch.css}">
<script type="text/javascript"
    th:src="@{/js/function/public.js}"></script>
<style type="text/css">
table tr td {
    border: none !important;
}
 
table tr th {
    border: none !important;
}
.inline{
display: INLINE;
width: 50%;
}
</style>
</head>
<body>
    <div class="ibox-content">
        <form class="form-horizontal " id="dataform"
            onsubmit="javascripr:return false;">
            <input    type="hidden" name="tokenUrl" th:value="${tokenUrl}"> <input
                type="hidden" name="token" th:value="${token}">
                <input    type="hidden" name="id" th:value="${obj.fnId }">
            <div class="form-group">
                <label class="col-offset-1 col-sm-2 control-label">父级功能<span class="text-danger">*</span></label>
                <div class="col-sm-3">
                    <select class="form-control  select2" size="1" name="fnParentId"
                        id="parentId">
                    </select>
                </div>
 
                <label class="col-sm-2 control-label">功能名称<span class="text-danger">*</span></label>
                <div class="col-sm-3">
                    <input    name="fnName" type="text" class="form-control "
                        nullmsg="功能名称不能为空" datatype="*1-50">
                    <div class="Validform_checktip"></div>
                </div>
            </div>
 
            <div class="form-group">
                <label class="col-sm-2 control-label">访问路径</label>
                <div class="col-sm-3">
                    <input    name="fnPath" type="text" class="form-control">
                </div>
                <label class="col-sm-2 control-label">功能图标</label>
                <div class="col-sm-3">
                    <input    name="fnIcon" type="text" id="iconText" class="form-control"
                        onclick="fnPublci.showIcon()">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">功能CODE<span class="text-danger">*</span></label>
                <div class="col-sm-3">
                    <input    name="fnCode" nullmsg="功能CODE不能为空" datatype="*1-50"
                        class="form-control">
                </div>
                <label class="col-sm-2 control-label">排序</label>
                <div class="col-sm-3">
                    <input    name="fnSequence" type="number" class="form-control">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">是否在菜单栏显示<span class="text-danger">*</span></label>
                <div class="col-sm-3">
                    <div class="radio radio-success radio-single radio-inline">
                    <input    name="fnShowMenu" checked="checked" type="radio" id="radio1" value="是" > <label for="radio1">显示</label>
                    </div>
                    <div class="radio radio-success radio-single radio-inline">
                    <input    name="fnShowMenu" type="radio" id="radio2" value="否" > <label for="radio2">不显示</label>
                    </div>
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">功能按钮</label>
                <div class="col-sm-9" id="btns">
<!--                     <c:forEach items="${btnList }" var="item" varStatus="count"> -->
                            <div th:each="item,iterStat:${btnList}" class="checkbox ">
                            
                             <input     th:name="${'sysFnBtnRel['+iterStat.index+'].btnKey'}" type="hidden" th:value="${item.btnKey }">
                                <input    th:name="${'sysFnBtnRel['+iterStat.index+'].btnValue'}" type="checkbox"
                                    th:id="${'inlineCheckbox'+item.btnValue}"
                                    th:value="${item.btnValue }"> <label
                                    th:for="${'inlineCheckbox'+item.btnValue}" th:text="${item.btnKey }"> 
                                </label>
                                <input     type="text" th:name="${'sysFnBtnRel['+iterStat.index+'].fbPath'}" class="form-control inline"    maxlength="200">
                            </div>
<!--                     </c:forEach> -->
                </div>
            </div>
 
            <div class="form-group ">
                <div class="col-12 text-center">
                    <a href="javascript:;" onclick="myForm.submit()"
                        class="btn btn-success radius"><i class="fa fa-check"></i> 保存</a>&nbsp;&nbsp;&nbsp;&nbsp;
                    <a href="javascript:;" onclick="MTools.closeForm()"
                        class="btn btn-danger radius"><i class="fa fa-close"></i> 关闭</a>
                </div>
            </div>
        </form>
    </div>
    <script type="text/javascript"
    th:src="@{/js/systools/MJsBase.js}"></script>
    <script type="text/javascript">
        $(".select2").select2();
        var myForm = null;
        $(function() {
            myForm = MForm.initForm({
                invokeUrl :basePath+ "/admin/sysFunction/addFunction",
                afterSubmit : function() {
                    parent.initFunctionList();
                }
            });
            fnPublci.initFunctionSelect("#parentId");
        });
    </script>
</body>
</html>