作者 王智

daima

@@ -782,13 +782,13 @@ class User extends Api @@ -782,13 +782,13 @@ class User extends Api
782 die; 782 die;
783 } 783 }
784 if (empty($param['images']) || $param['images'] == null || $param['images'] == '' || $param['images'] == "") { 784 if (empty($param['images']) || $param['images'] == null || $param['images'] == '' || $param['images'] == "") {
785 - $this->error('请上传洗车图'); 785 + $this->error('请上传洗车图');
786 } 786 }
787 $data = [ 787 $data = [
788 'xi_type' => $param['type'], 788 'xi_type' => $param['type'],
789 'xi_images' => $param['images'], 789 'xi_images' => $param['images'],
790 'updatetime' => time(), 790 'updatetime' => time(),
791 - 'type' => $param['type'] 791 + 'type' => $param['type ']
792 ]; 792 ];
793 $res = Db::name('renwu')->where('id', $param['order_id'])->where('xi_id', $user_id)->update($data); 793 $res = Db::name('renwu')->where('id', $param['order_id'])->where('xi_id', $user_id)->update($data);
794 $this->res($res); 794 $this->res($res);
@@ -25,18 +25,18 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -25,18 +25,18 @@ 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: 'order_sn', title: __('Order_sn')}, 28 + {field: 'order_sn', title: __('Order_sn'),operate:'LIKE'},
29 // {field: 'user_id', title: __('User_id')}, 29 // {field: 'user_id', title: __('User_id')},
30 // {field: 'vip_id', title: __('Vip_id')}, 30 // {field: 'vip_id', title: __('Vip_id')},
31 - {field: 'user.nickname', title: __('User.nickname')},  
32 - {field: 'user.mobile', title: __('User.mobile')},  
33 - {field: 'user.address', title: __('User.address')},  
34 - {field: 'user.address_con', title: __('User.address_con')},  
35 - {field: 'user.car_num', title: __('User.car_num')},  
36 - {field: 'user.color', title: __('User.color')},  
37 - {field: 'user.car_type', title: __('User.car_type')}, 31 + {field: 'user.nickname', title: __('User.nickname'),operate:'LIKE'},
  32 + {field: 'user.mobile', title: __('User.mobile'),operate:'LIKE'},
  33 + {field: 'user.address', title: __('User.address'),operate:'LIKE'},
  34 + {field: 'user.address_con', title: __('User.address_con'),operate:'LIKE'},
  35 + {field: 'user.car_num', title: __('User.car_num'),operate:'LIKE'},
  36 + {field: 'user.color', title: __('User.color'),operate:'LIKE'},
  37 + {field: 'user.car_type', title: __('User.car_type'),operate:'LIKE'},
38 // {field: 'user.vip', title: __('User.vip')}, 38 // {field: 'user.vip', title: __('User.vip')},
39 - {field: 'vip.title', title: __('Vip.title')}, 39 + {field: 'vip.title', title: __('Vip.title'),operate:false},
40 {field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"0":__('Type 0'),"2":__('Type 2')}, formatter: Table.api.formatter.normal}, 40 {field: 'type', title: __('Type'), searchList: {"1":__('Type 1'),"0":__('Type 0'),"2":__('Type 2')}, formatter: Table.api.formatter.normal},
41 // {field: 'xi_id', title: __('Xi_id')}, 41 // {field: 'xi_id', title: __('Xi_id')},
42 {field: 'xi_type', title: __('Xi_type'), searchList: {"1":__('Xi_type 1'),"0":__('Xi_type 0'),"2":__('Xi_type 2')}, formatter: Table.api.formatter.normal}, 42 {field: 'xi_type', title: __('Xi_type'), searchList: {"1":__('Xi_type 1'),"0":__('Xi_type 0'),"2":__('Xi_type 2')}, formatter: Table.api.formatter.normal},
@@ -44,7 +44,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin @@ -44,7 +44,7 @@ define(['jquery', 'bootstrap', 'backend', 'table', 'form'], function ($, undefin
44 // {field: 'zhao_id', title: __('Zhao_id')}, 44 // {field: 'zhao_id', title: __('Zhao_id')},
45 {field: 'zhao_type', title: __('Zhao_type'), searchList: {"1":__('Zhao_type 1'),"0":__('Zhao_type 0'),"2":__('Zhao_type 2')}, formatter: Table.api.formatter.normal}, 45 {field: 'zhao_type', title: __('Zhao_type'), searchList: {"1":__('Zhao_type 1'),"0":__('Zhao_type 0'),"2":__('Zhao_type 2')}, formatter: Table.api.formatter.normal},
46 // {field: 'zhao_images', title: __('Zhao_images'), events: Table.api.events.image, formatter: Table.api.formatter.images}, 46 // {field: 'zhao_images', title: __('Zhao_images'), events: Table.api.events.image, formatter: Table.api.formatter.images},
47 - {field: 'car_address', title: __('Car_address')}, 47 + {field: 'car_address', title: __('Car_address'),operate:'LIKE'},
48 // {field: 'lat', title: __('Lat')}, 48 // {field: 'lat', title: __('Lat')},
49 // {field: 'lng', title: __('Lng')}, 49 // {field: 'lng', title: __('Lng')},
50 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime}, 50 {field: 'createtime', title: __('Createtime'), operate:'RANGE', addclass:'datetimerange', formatter: Table.api.formatter.datetime},