Browse Source

礼物修改

lizhen_gitee 3 years ago
parent
commit
dcebfab7d4
2 changed files with 4 additions and 4 deletions
  1. 1 1
      application/admin/lang/zh-cn/gift.php
  2. 3 3
      public/assets/js/backend/gift.js

+ 1 - 1
application/admin/lang/zh-cn/gift.php

@@ -1,7 +1,7 @@
 <?php
 
 return [
-    'Id'            => '主键ID',
+    'Id'            => 'ID',
     'No'            => '编号',
     'Name'          => '名称',
     'Type'          => '类别',

+ 3 - 3
public/assets/js/backend/gift.js

@@ -26,16 +26,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                     [
                         {checkbox: true},
                         {field: 'id', title: __('Id')},
-                        {field: 'no', title: __('No')},
+//                        {field: 'no', title: __('No')},
                         {field: 'name', title: __('Name'), operate: 'LIKE'},
-                        {field: 'type', title: __('Type')},
+//                        {field: 'type', title: __('Type')},
+                        {field: 'gifttype.name', title: __('Gifttype.name'), operate: 'LIKE'},
                         {field: 'value', title: __('Value')},
                         {field: 'image', title: __('Image'), operate: false, events: Table.api.events.image, formatter: Table.api.formatter.image},
 //                        {field: 'special', title: __('Special'), operate: 'LIKE'},
                         {field: 'sort', title: __('Sort')},
                         {field: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
                         {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
-                        {field: 'gifttype.name', title: __('Gifttype.name'), operate: 'LIKE'},
                         {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
                     ]
                 ]