From 69b2dfc245c5b761db44b70b1653c3b4d97f1564 Mon Sep 17 00:00:00 2001 From: xiaoyong931011 <15274802129@163.com> Date: Wed, 22 Feb 2023 11:22:19 +0800 Subject: [PATCH] 商品排序 --- src/main/resources/templates/febs/views/modules/goods/goodsList.html | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/resources/templates/febs/views/modules/goods/goodsList.html b/src/main/resources/templates/febs/views/modules/goods/goodsList.html index 5737be2..518d7a3 100644 --- a/src/main/resources/templates/febs/views/modules/goods/goodsList.html +++ b/src/main/resources/templates/febs/views/modules/goods/goodsList.html @@ -28,7 +28,7 @@ </div> </div> </form> - <table lay-filter="userTable" lay-data="{id: 'userTable'}"></table> + <table lay-filter="goodsListTable" lay-data="{id: 'goodsListTable'}"></table> <style type="text/css"> .layui-table-cell{ text-align:center; @@ -104,7 +104,7 @@ $reset = $view.find('#reset'), $searchForm = $view.find('form'), $add = $view.find('#add'), - sortObject = {field: 'phone', type: null}, + sortObject = {field: 'isSale', type: 'asc'}, tableIns; form.render(); @@ -115,7 +115,7 @@ initTable(); // 初始化表格操作栏各个按钮功能 - table.on('tool(userTable)', function (obj) { + table.on('tool(goodsListTable)', function (obj) { var data = obj.data, layEvent = obj.event; if (layEvent === 'downGoods') { @@ -227,7 +227,7 @@ function initTable() { tableIns = febs.table.init({ elem: $view.find('table'), - id: 'userTable', + id: 'goodsListTable', url: ctx + 'admin/goods/goodsList?goodsType=1', cols: [[ {field: 'goodsNo', title: '商品编号', minWidth: 100,align:'left'}, -- Gitblit v1.9.1