懒羊羊
2023-08-30 71e81ed1d12e4d69f53c8ad9e066650ad4186293
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
@layout("/common/_container.html",{js:["/assets/modular/sysConfig/sysConfig_add.js"]}){
 
<div class="layui-body-header">
    <span class="layui-body-header-title">添加</span>
</div>
 
<div class="layui-fluid " style="">
    <div class="layui-card">
        <div class="layui-card-body">
            <form id="sysConfigForm" lay-filter="sysConfigForm" class="layui-form model-form" style="max-width: 700px;margin: 40px auto;">
                <input name="id" type="hidden"/>
                <div class="layui-form-item">
                    <label class="layui-form-label">名称<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="name" name="name" placeholder="请输入名称" type="text" class="layui-input" autocomplete="off" lay-verify="required" required/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">编码<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="code" name="code" placeholder="属性编码" type="text" class="layui-input" autocomplete="off" lay-verify="required" required/>
                    </div>
                    <div class="layui-form-mid layui-word-aux form-tips">推荐采用下划线大写风格,例如,KAPTCH_OPEN,若以GUNS_开头则是系统常量不可删除。</div>
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">取值范围<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input type="radio" name="dictFlag" value="Y" title="字典" lay-filter="dictChecked" checked="checked">
                        <input type="radio" name="dictFlag" value="N" title="非字典" lay-filter="dictChecked">
                    </div>
                    <div class="layui-form-mid layui-word-aux">如果选择字典,则取值来自于 系统管理->字典管理</div>
                </div>
 
                <!-- 从字典取值 -->
                <div id="dictCodeDiv">
                    <div class="layui-form-item">
                        <label class="layui-form-label">字典类型<span style="color: red;">*</span></label>
                        <div class="layui-input-block">
                            <select name="dictTypeId" id="dictTypeId" lay-filter="dictTypeId">
                                <option value="">请选择系统字典类型</option>
                            </select>
                        </div>
                    </div>
                    <div class="layui-form-item">
                        <label class="layui-form-label">参数值<span style="color: red;">*</span></label>
                        <div class="layui-input-block" id="dictDetails">
                            <input type="radio" name="dictValue" value="" title="无" disabled="disabled">
                        </div>
                    </div>
                </div>
 
                <!-- 手动输入 -->
                <div class="layui-form-item" id="customCodeDiv">
                    <label class="layui-form-label">参数值<span style="color: red;">*</span></label>
                    <div class="layui-input-block">
                        <input id="value" name="value" placeholder="属性值" type="text" 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="remark" name="remark" placeholder="请输入备注" type="text" autocomplete="off" class="layui-input"/>
                    </div>
                </div>
                <div class="layui-form-item">
                    <div class="layui-input-block">
                        <button class="layui-btn" lay-filter="btnSubmit" lay-submit>&emsp;提交&emsp;</button>
                        <button class="layui-btn layui-btn-primary" type="button" id="backupPage">&emsp;返回&emsp;</button>
                    </div>
                </div>
            </form>
        </div>
    </div>
</div>
 
@}