Browse Source

重建,coach

lizhen_gitee 1 year ago
parent
commit
cc4a532487

+ 1 - 1
application/admin/controller/Coach.php

@@ -59,7 +59,7 @@ class Coach extends Backend
 
             foreach ($list as $row) {
                 
-                $row->getRelation('tag')->visible(['name']);
+                $row->getRelation('tag')->visible(['name','name_en']);
             }
 
             $result = array("total" => $list->total(), "rows" => $list->items());

+ 2 - 1
application/admin/lang/zh-cn/coach.php

@@ -31,5 +31,6 @@ return [
     'Status'         => '状态',
     'Status 0'       => '禁用',
     'Status 1'       => '正常',
-    'Tag.name'       => '标签名'
+    'Tag.name'       => '标签名',
+    'Tag.name_en'    => '标签名(en)'
 ];

+ 1 - 0
public/assets/js/backend/coach.js

@@ -54,6 +54,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
                         {field: 'token', title: __('Token'), operate: 'LIKE'},
                         {field: 'status', title: __('Status'), searchList: {"0":__('Status 0'),"1":__('Status 1')}, formatter: Table.api.formatter.status},
                         {field: 'tag.name', title: __('Tag.name'), operate: 'LIKE'},
+                        {field: 'tag.name_en', title: __('Tag.name_en'), operate: 'LIKE'},
                         {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
                     ]
                 ]