作者 王智

daima

@@ -25,16 +25,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -25,16 +25,16 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
25 [ 25 [
26 {checkbox: true}, 26 {checkbox: true},
27 {field: 'id', title: __('Id')}, 27 {field: 'id', title: __('Id')},
28 - {field: 'seller_id', title: __('Seller_id')},  
29 - {field: 'user_id', title: __('User_id')}, 28 + // {field: 'seller_id', title: __('Seller_id')},
  29 + {field: 'seller.avatar', title: __('Seller.avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image},
  30 + {field: 'seller.title', title: __('Seller.title')},
  31 + // {field: 'user_id', title: __('User_id')},
  32 + {field: 'user.avatar', title: __('User.avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image},
  33 + {field: 'user.nickname', title: __('User.nickname')},
30 {field: 'num', title: __('Num')}, 34 {field: 'num', title: __('Num')},
31 {field: 'title', title: __('Title')}, 35 {field: 'title', title: __('Title')},
32 {field: 'images', title: __('Images'), events: Table.api.events.image, formatter: Table.api.formatter.images}, 36 {field: 'images', title: __('Images'), events: Table.api.events.image, formatter: Table.api.formatter.images},
33 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, 37 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},
34 - {field: 'user.avatar', title: __('User.avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image},  
35 - {field: 'user.nickname', title: __('User.nickname')},  
36 - {field: 'seller.title', title: __('Seller.title')},  
37 - {field: 'seller.avatar', title: __('Seller.avatar'), events: Table.api.events.image, formatter: Table.api.formatter.image},  
38 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate} 38 {field: 'operate', title: __('Operate'), table: table, events: Table.api.events.operate, formatter: Table.api.formatter.operate}
39 ] 39 ]
40 ] 40 ]