소스 검색

用户装扮列表

lizhen_gitee 3 년 전
부모
커밋
b989a9173b
2개의 변경된 파일5개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 1
      application/admin/lang/zh-cn/userdecorate.php
  2. 4 3
      public/assets/js/backend/userdecorate.js

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

@@ -15,6 +15,6 @@ return [
     'End_time'        => '结束时间',
     'Createtime'      => '创建时间',
     'Updatetime'      => '更新时间',
-    'Decorate.name'   => '名称',
+    'Decorate.name'   => '装扮名称',
     'User.username'   => '用户名'
 ];

+ 4 - 3
public/assets/js/backend/userdecorate.js

@@ -26,15 +26,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                     [
                         {checkbox: true},
                         {field: 'id', title: __('Id')},
-                        {field: 'user_id', title: __('User_id')},
+                        {field: 'user.username', title: __('User.username'), operate: 'LIKE'},
+//                        {field: 'user_id', title: __('User_id')},
                         {field: 'decorate_id', title: __('Decorate_id')},
+                        {field: 'decorate.name', title: __('Decorate.name'), operate: 'LIKE'},
                         {field: 'decorate_type', title: __('Decorate_type'), searchList: {"1":__('Decorate_type 1'),"2":__('Decorate_type 2'),"3":__('Decorate_type 3'),"4":__('Decorate_type 4')}, formatter: Table.api.formatter.normal},
                         {field: 'is_using', title: __('Is_using'), searchList: {"1":__('Is_using 1'),"0":__('Is_using 0')}, formatter: Table.api.formatter.normal},
                         {field: 'end_time', title: __('End_time'), 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: 'updatetime', title: __('Updatetime'), operate:'RANGE', addclass:'datetimerange', autocomplete:false, formatter: Table.api.formatter.datetime},
-                        {field: 'decorate.name', title: __('Decorate.name'), operate: 'LIKE'},
-                        {field: 'user.username', title: __('User.username'), operate: 'LIKE'},
+
 //                        {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
                     ]
                 ]