添加创建人显示
This commit is contained in:
@@ -67,6 +67,15 @@ layui.use(['form', 'table'], function () {
|
|||||||
{field: 'price', title: lang.carlist.price},
|
{field: 'price', title: lang.carlist.price},
|
||||||
{field: 'type_name',title: lang.carlist.type,},
|
{field: 'type_name',title: lang.carlist.type,},
|
||||||
{field: 'energy_name', title: lang.carlist.energy},
|
{field: 'energy_name', title: lang.carlist.energy},
|
||||||
|
{field: 'energy_name', title: lang.carlist.create_user,
|
||||||
|
templet: function(d){
|
||||||
|
var v=''
|
||||||
|
if(d.creater){
|
||||||
|
if(d.creater.nickname){v=d.creater.nickname}
|
||||||
|
}
|
||||||
|
return v;
|
||||||
|
}
|
||||||
|
},
|
||||||
{field: 'created_at',minWidth: 150,title: lang.carlist.create_time},
|
{field: 'created_at',minWidth: 150,title: lang.carlist.create_time},
|
||||||
// {field: 'updated_at',minWidth: 150,title: '更新时间'},
|
// {field: 'updated_at',minWidth: 150,title: '更新时间'},
|
||||||
{title: lang.carlist.operation, minWidth: 200, toolbar: '#currentTableBar', align: "center",fixed:'right'}
|
{title: lang.carlist.operation, minWidth: 200, toolbar: '#currentTableBar', align: "center",fixed:'right'}
|
||||||
|
|||||||
@@ -48,6 +48,7 @@ var langConfig = {
|
|||||||
'status': '状态',
|
'status': '状态',
|
||||||
'is_sold': '是否出售',
|
'is_sold': '是否出售',
|
||||||
'create_time': '创建时间',
|
'create_time': '创建时间',
|
||||||
|
'create_user': '创建人',
|
||||||
'operation': '操作',
|
'operation': '操作',
|
||||||
'pending_review': '待审核',
|
'pending_review': '待审核',
|
||||||
'pending_publish': '待发布',
|
'pending_publish': '待发布',
|
||||||
@@ -183,6 +184,7 @@ var langConfig = {
|
|||||||
'status': 'Status',
|
'status': 'Status',
|
||||||
'is_sold': 'Is Sold',
|
'is_sold': 'Is Sold',
|
||||||
'create_time': 'Create Time',
|
'create_time': 'Create Time',
|
||||||
|
'create_user': 'Creator',
|
||||||
'operation': 'Operation',
|
'operation': 'Operation',
|
||||||
'pending_review': 'Pending Review',
|
'pending_review': 'Pending Review',
|
||||||
'pending_publish': 'Pending Publish',
|
'pending_publish': 'Pending Publish',
|
||||||
@@ -306,6 +308,7 @@ var langConfig = {
|
|||||||
"status": "Статус",
|
"status": "Статус",
|
||||||
"is_sold": "Продано",
|
"is_sold": "Продано",
|
||||||
"create_time": "Дата создания",
|
"create_time": "Дата создания",
|
||||||
|
'create_user': 'Создатель',
|
||||||
"operation": "Действия",
|
"operation": "Действия",
|
||||||
"pending_review": "На проверке",
|
"pending_review": "На проверке",
|
||||||
"pending_publish": "Ожидает публикации",
|
"pending_publish": "Ожидает публикации",
|
||||||
|
|||||||
Reference in New Issue
Block a user