| | |
| | | excludeTrash(param); |
| | | convert(param, wrapper); |
| | | allLike(AppVersion.class, param.keySet(), wrapper, condition); |
| | | if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | // if (!Cools.isEmpty(orderByField)){wrapper.orderBy(humpToLine(orderByField), "asc".equals(orderByType));} |
| | | wrapper.orderBy("id", false); |
| | | return R.ok(appVersionService.selectPage(new Page<>(curr, limit), wrapper)); |
| | | } |
| | | |
| | |
| | | cellMinWidth: 50, |
| | | height: 'full-120', |
| | | cols: [[ |
| | | {type: 'checkbox'} |
| | | ,{field: 'id', align: 'center',title: ''} |
| | | ,{field: 'version', align: 'center',title: '版本号'} |
| | | ,{field: 'path', align: 'center',title: 'app路径'} |
| | | ,{field: 'latest$', align: 'center',title: '是否为最新版本', templet:function (d){ |
| | | // {type: 'checkbox'}, |
| | | {field: 'id', align: 'center',title: '',hide :true} |
| | | ,{field: 'version', align: 'center',title: '版本号',hide :false} |
| | | ,{field: 'path', align: 'center',title: 'app名称',hide :false} |
| | | ,{field: 'latest$', align: 'center',title: '是否为最新版本',hide :false, templet:function (d){ |
| | | if(d.latest == 0){ |
| | | return '<span class="layui-badge layui-bg-gray">否</span>'; |
| | | }else{ |
| | | return '<span class="layui-badge layui-bg-green">是</span>' |
| | | } |
| | | }} |
| | | ,{field: 'type$', align: 'center',title: 'app类型'} |
| | | |
| | | ,{field: 'type$', align: 'center',title: 'app类型',hide :false} |
| | | ,{field: 'userName', align: 'center',title: '创建人员',hide :true} |
| | | ,{fixed: 'right', title:'操作', align: 'center', toolbar: '#operate', width:400} |
| | | ]], |
| | | request: { |
| | |
| | | <script type="text/html" id="toolbar"> |
| | | <div class="layui-btn-container"> |
| | | <button class="layui-btn layui-btn-sm" id="btn-add" lay-event="addData">新增</button> |
| | | <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-delete" lay-event="deleteData">删除</button> |
| | | <!-- <button class="layui-btn layui-btn-sm layui-btn-danger" id="btn-delete" lay-event="deleteData">删除</button>--> |
| | | </div> |
| | | </script> |
| | | |
| | |
| | | <div style="padding: 10px"> |
| | | <div class="layui-upload"> |
| | | <button type="button" class="layui-btn layui-btn-normal" id="data-btn-file2">选择文件</button><input id="data-btn-upload" class="layui-upload-file" type="file" accept="" name="file" multiple=""> |
| | | <div class="layui-upload-list" style="max-width: 1000px;height:400px;overflow: scroll"> |
| | | <div class="layui-upload-list"> |
| | | <table class="layui-table"> |
| | | <colgroup> |
| | | <col> |