From cf200a1f92c01ba22c326c49391f748ffb006910 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Mon, 05 Jul 2021 17:28:35 +0800 Subject: [PATCH] 20210617 开售开关 --- src/main/resources/templates/febs/views/modules/otc/otcEntrustList.html | 28 +++++++++++++++++++++++++++- 1 files changed, 27 insertions(+), 1 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/otc/otcEntrustList.html b/src/main/resources/templates/febs/views/modules/otc/otcEntrustList.html index 784b39a..32c82e6 100644 --- a/src/main/resources/templates/febs/views/modules/otc/otcEntrustList.html +++ b/src/main/resources/templates/febs/views/modules/otc/otcEntrustList.html @@ -22,6 +22,17 @@ </select> </div> </div> + <div class="layui-inline"> + <label class="layui-form-label layui-form-label-sm">状态</label> + <div class="layui-input-inline"> + <select name="status"> + <option value="">请选择</option> + <option value="1">上线</option> + <option value="2">下线</option> + <option value="3">取消</option> + </select> + </div> + </div> </div> </div> <div class="layui-col-md2 layui-col-sm12 layui-col-xs12 table-action-area"> @@ -82,6 +93,17 @@ dealDone(data.id); }); } + if (layEvent === 'editOrder') { + febs.modal.open('详情修改', 'modules/otc/otcEntrustListUpdate/' + data.id, { + btn: ['提交', '取消'], + yes: function (index, layero) { + $('#user-update').find('#submit').trigger('click'); + }, + btn2: function () { + layer.closeAll(); + } + }); + } }); function dealIng(id) { febs.get(ctx + 'otc/dealIng/' + id, null, function () { @@ -137,7 +159,7 @@ {field: 'remainCoinAmount', title: '剩余数量',minWidth: 100,align:'center'}, {field: 'limitMinAmount', title: '最小限额',minWidth: 100,align:'center'}, {field: 'limitMaxAmount', title: '最大限额',minWidth: 100,align:'center'}, - {field: 'status', title: '类型', + {field: 'status', title: '状态', templet: function (d) { if (d.status === 1) { return '<span style="color:blue;">上线</span>' @@ -160,6 +182,9 @@ return '' } }, minWidth: 80,align:'center'}, + {title: '操作',templet: function (d) { + return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="editOrder" shiro:hasPermission="user:update">详情</button>' + },minWidth: 200,align:'center'} // {title: '操作',templet: function (d) { // if(d.status === 1){ // return '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="dealIng" shiro:hasPermission="user:update">马上处理</button>' @@ -178,6 +203,7 @@ return { account: $searchForm.find('input[name="account"]').val().trim(), orderType: $searchForm.find("select[name='orderType']").val(), + status: $searchForm.find("select[name='status']").val(), }; } -- Gitblit v1.9.1