懒羊羊
2023-08-30 1ac2bc1590406d9babec036e154d8d08f34a6aa1
提交 | 用户 | 时间
1ac2bc 1 @layout("/common/_container.html",{title:"选择字段",bg:"bg-white",js:["/assets/modular/gen/tableFields.js"]}){
2
3 <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
4     <div class="layui-tab-content" style="height: 100px;">
5         <table lay-filter="fieldTable" id="fieldTable"></table>
6
7         <input type="hidden" id="tableName" value="${tableName}">
8         <input type="hidden" id="dbId" value="${dbId}">
9
10         <div class="layui-form-item text-center">
11             <button class="layui-btn layui-btn-primary" type="button" ew-event="closeDialog">取消</button>
12             <button class="layui-btn" id="submit">保存</button>
13         </div>
14     </div>
15 </div>
16
17 <script type="text/html" id="conditionTpl">
18     <div class="layui-form">
19         <input type="checkbox" id="{{d.columnName}}" name="queryConditionFlag"
20         {{# if(d.queryConditionFlag == true){ }}
21         checked="checked"
22         {{# } }}
23         lay-skin="primary" lay-filter="queryConditionFlagFilter">
24     </div>
25 </script>
26
27 <script type="text/html" id="inputTypeTpl">
28     <div class="layui-form">
29         <select id="{{d.columnName}}" name="inputType" lay-filter="columnStyleFilter">
30             {{# layui.each(d.inputTypeList, function(index, data){ }}
31             <option value="{{data.value}}">{{data.name}}</option>
32             {{# }); }}
33         </select>
34     </div>
35 </script>
36
37 <style>
38     .layui-select-title,
39     .layui-form-select {
40         height: 34px;
41     }
42
43     .layui-form-select dl {
44         max-height: 150px;
45     }
46
47     .layui-input.layui-unselect {
48         border: 1;
49         height: 90%;
50     }
51
52     .layui-table-cell {
53         overflow: initial;
54         /*overflow: hidden;*/
55         text-overflow: ellipsis;
56         white-space: nowrap;
57     }
58 </style>
59
60 @}