From 562ac2c071de933e04aec1fb32ee98c7a85d448d Mon Sep 17 00:00:00 2001
From: Helius <wangdoubleone@gmail.com>
Date: Wed, 11 May 2022 12:15:46 +0800
Subject: [PATCH] add profit

---
 src/main/resources/templates/febs/views/modules/goods/goodsList.html |   12 ++++++------
 1 files changed, 6 insertions(+), 6 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 e9f4442..2724666 100644
--- a/src/main/resources/templates/febs/views/modules/goods/goodsList.html
+++ b/src/main/resources/templates/febs/views/modules/goods/goodsList.html
@@ -99,10 +99,10 @@
                 });
             }
             if (layEvent === 'goodsUpdate') {
-                febs.modal.open('编辑', 'modules/goods/goodsUpdate/' + data.id, {
+                febs.modal.open('编辑', 'modules/goods/goodsUpdateNew/' + data.id, {
                     btn: ['提交', '取消'],
                     yes: function (index, layero) {
-                        $('#goods-update').find('#submit').trigger('click');
+                        $('#goods-updatenew').find('#submit').trigger('click');
                     },
                     btn2: function () {
                         layer.closeAll();
@@ -165,14 +165,14 @@
             tableIns = febs.table.init({
                 elem: $view.find('table'),
                 id: 'userTable',
-                url: ctx + 'admin/goods/goodsList',
+                url: ctx + 'admin/goods/goodsList?goodsType=1',
                 cols: [[
                     {field: 'goodsNo', title: '商品编号', minWidth: 150,align:'left'},
                     {field: 'goodsName', title: '商品名称', minWidth: 150,align:'left'},
                     {field: 'thumb', title: '缩略图',
                         templet: function (d) {
                             return '<a lay-event="seeImgThumb"><img id="seeImgThumb'+d.id+'" src="'+d.thumb+'" alt=""></a>';
-                        }, minWidth: 100,align:'center'},
+                        }, minWidth: 150,align:'center'},
                     {field: 'categaryName', title: '分类', minWidth: 150,align:'left'},
                     {field: 'isSale', title: '是否上架',
                         templet: function (d) {
@@ -206,11 +206,11 @@
                                 + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="detailGoods" shiro:hasPermission="user:update">详情</button>'
                             }else{
                                 return '<button class="layui-btn layui-btn-normal layui-btn-xs febs-bg-green" lay-event="upGoods" shiro:hasPermission="user:update">上架</button>'
-                                + '<button class="layui-btn layui-btn-normal layui-btn-xs febs-bg-red" lay-event="delGoods" shiro:hasPermission="user:update">删除</button>'
                                 + '<button class="layui-btn layui-btn-normal layui-btn-xs" lay-event="goodsUpdate" shiro:hasPermission="user:update">编辑</button>'
+                                    + '<button class="layui-btn layui-btn-normal layui-btn-xs febs-bg-red" lay-event="delGoods" shiro:hasPermission="user:update">删除</button>'
 
                             }
-                        },minWidth: 300,align:'center'}
+                        },minWidth: 160,align:'center'}
                 ]]
             });
         }

--
Gitblit v1.9.1