From 5bf3aba90fb4d4a1a2754a3ccf227067c5603336 Mon Sep 17 00:00:00 2001 From: zhaocheng <578322713@qq.com> Date: Wed, 17 Mar 2021 17:09:48 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controller/Task.php | 6 ++++++ app/view/task/index.html | 14 ++++++++++++++ extend/service/CarInfoHandle.php | 3 +++ 3 files changed, 23 insertions(+) diff --git a/app/controller/Task.php b/app/controller/Task.php index 2e914c3..cc52b93 100644 --- a/app/controller/Task.php +++ b/app/controller/Task.php @@ -182,6 +182,9 @@ class Task extends BaseController $where[] = ['is_export_bhx', '>', 0]; $where[] = ['is_update_bhx', '>', 0]; $where[] = ['is_export_bmc', '=', 0]; + if($params['update_no'] > 0){ + $where[] = ['is_update_bhx', '=', $params['update_no']]; + } } if ($params['export_type'] == 'failed') { $where[] = ['is_export_bhx', '>', 0]; @@ -508,6 +511,9 @@ class Task extends BaseController $where[] = ['is_export_bhx', '>', 0]; $where[] = ['is_update_bhx', '>', 0]; $where[] = ['is_export_bmc', '=', 0]; + if($params['update_no'] > 0){ + $where[] = ['is_update_bhx', '=', $params['update_no']]; + } } if ($params['export_type'] == 'failed') { $where[] = ['is_export_bhx', '>', 0]; diff --git a/app/view/task/index.html b/app/view/task/index.html index 88706ac..227cb0a 100644 --- a/app/view/task/index.html +++ b/app/view/task/index.html @@ -66,6 +66,12 @@ --> +
+ +
+ +
+
@@ -273,6 +279,14 @@ $('#sub_export_type').show(); $('#sub_export_type').find(':input').removeAttr('disabled'); } + + if(data.value == 'bmc'){ + $('#update_no').show(); + $('#update_no').find(':input').removeAttr('disabled'); + } else { + $('#update_no').hide(); + $('#update_no').find(':input').attr('disabled',true); + } }); var tableIns = layui.table.render({ diff --git a/extend/service/CarInfoHandle.php b/extend/service/CarInfoHandle.php index 69da2aa..1dc8889 100644 --- a/extend/service/CarInfoHandle.php +++ b/extend/service/CarInfoHandle.php @@ -99,6 +99,9 @@ class CarInfoHandle $where[] = ['is_export_bhx', '>', 0]; $where[] = ['is_update_bhx', '>', 0]; $where[] = ['is_export_bmc', '=', 0]; + if($data['update_no'] > 0){ + $where[] = ['is_update_bhx', '=', $data['update_no']]; + } } if ($data['export_type'] == 'failed') { $where[] = ['is_export_bhx', '>', 0];