懒羊羊
2023-09-19 3d2401cf8ea9ae3d830c0568e7751e2e8cc8db22
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
@layout("/common/_container.html",{js:["/assets/modular/sys/codingRule/codingRule.js"]}){
 
<div class="layui-body-header">
    <span class="layui-body-header-title">编码规则管理</span>
</div>
 
<div class="layui-fluid">
    <div class="layui-row layui-col-space15">
        <div class="layui-col-sm12 layui-col-md12 layui-col-lg12">
            <div class="layui-card">
                <div class="layui-card-body">
                    <div class="layui-form toolbar">
                        <div class="layui-form-item">
                            <div class="layui-inline">
                                规则编号
                            </div>
                            <div class="layui-inline">
                                <input id="codingRuleCode" class="layui-input" type="text" placeholder="规则编号"/>
                            </div>
                            <div class="layui-inline">
                                规则描述
                            </div>
                            <div class="layui-inline">
                                <input id="codingRuleDesc" class="layui-input" type="text" placeholder="规则描述"/>
                            </div>
                            <div class="layui-inline">
                                规则前缀
                            </div>
                            <div class="layui-inline">
                                <input id="codingRulePrefix" class="layui-input" type="text" placeholder="规则前缀"/>
                            </div>
                            <div class="layui-inline">
                                启用日期
                            </div>
                            <div class="layui-inline">
<!--                                <input id="enableDate" class="layui-input" type="text" placeholder="启用日期"/>-->
                                <select name="enableDate" id="enableDate">
                                    <option value="">请选择启用日期</option>
                                    <option value="0">否</option>
                                    <option value="1">是</option>
                                </select>
                            </div>
                            <div class="layui-inline">
                                <button id="btnSearch" class="layui-btn icon-btn"><i class="layui-icon">&#xe615;</i>搜索</button>
                                <button id="btnAdd" class="layui-btn icon-btn"><i class="layui-icon">&#xe654;</i>添加</button>
                                <button id="btnExp" class="layui-btn icon-btn"><i class="layui-icon">&#xe67d;</i>导出</button>
                            </div>
                        </div>
                    </div>
                    <table class="layui-table" id="codingRuleTable" lay-filter="codingRuleTable"></table>
                </div>
            </div>
        </div>
    </div>
</div>
 
<script type="text/html" id="tableBar">
    <a class="layui-btn layui-btn-primary layui-btn-xs" lay-event="edit">修改</a>
    <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="delete">删除</a>
</script>
 
<script type="text/html" id="enableDateTpl">
    {{#  if(d.enableDate == 0){ }}
    <!-- <a class="layui-btn layui-btn-primary layui-btn-xs" >未开始</a>-->
    <span style="color: #130c0e;">否</span>
    {{#  } else if(d.enableDate == 1){ }}
    <!-- <a class="layui-btn layui-btn-primary layui-btn-xs" >已解冻</a>-->
    <span style="color: #130c0e;">是</span>
    {{#  } else { }}
    {{#  } }}
 
</script>
@}