作者 王智

daima

@@ -67,10 +67,11 @@ class Renwu extends Backend @@ -67,10 +67,11 @@ class Renwu extends Backend
67 67
68 $row->getRelation('user')->visible(['nickname', 'mobile', 'address', 'address_con', 'car_num', 'color', 'car_type', 'vip']); 68 $row->getRelation('user')->visible(['nickname', 'mobile', 'address', 'address_con', 'car_num', 'color', 'car_type', 'vip']);
69 $row->getRelation('vip')->visible(['title']); 69 $row->getRelation('vip')->visible(['title']);
  70 + $row['xi_id']=111;
  71 + $row['zhao_id']=222;
70 } 72 }
71 $list = collection($list)->toArray(); 73 $list = collection($list)->toArray();
72 $result = array("total" => $total, "rows" => $list); 74 $result = array("total" => $total, "rows" => $list);
73 -  
74 return json($result); 75 return json($result);
75 } 76 }
76 return $this->view->fetch(); 77 return $this->view->fetch();
@@ -43,7 +43,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -43,7 +43,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
43 searchList: {"1": __('Type 1'), "0": __('Type 0'), "2": __('Type 2')}, 43 searchList: {"1": __('Type 1'), "0": __('Type 0'), "2": __('Type 2')},
44 formatter: Table.api.formatter.normal 44 formatter: Table.api.formatter.normal
45 }, 45 },
46 - // {field: 'xi_id', title: __('Xi_id')}, 46 + {field: 'xi_id', title: __('Xi_id')},
47 { 47 {
48 field: 'xi_type', 48 field: 'xi_type',
49 title: __('Xi_type'), 49 title: __('Xi_type'),
@@ -51,7 +51,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -51,7 +51,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
51 formatter: Table.api.formatter.normal 51 formatter: Table.api.formatter.normal
52 }, 52 },
53 // {field: 'xi_images', title: __('Xi_images'), events: Table.api.events.image, formatter: Table.api.formatter.images}, 53 // {field: 'xi_images', title: __('Xi_images'), events: Table.api.events.image, formatter: Table.api.formatter.images},
54 - // {field: 'zhao_id', title: __('Zhao_id')}, 54 + {field: 'zhao_id', title: __('Zhao_id')},
55 { 55 {
56 field: 'zhao_type', 56 field: 'zhao_type',
57 title: __('Zhao_type'), 57 title: __('Zhao_type'),