master
zhaocheng 4 years ago
parent 6c8de1b4ce
commit 5bf3aba90f
  1. 6
      app/controller/Task.php
  2. 14
      app/view/task/index.html
  3. 3
      extend/service/CarInfoHandle.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];

@ -66,6 +66,12 @@
-->
</div>
</div>
<div class="layui-inline" id="update_no">
<label class="layui-form-label" style="width: 60px;">更新序号</label>
<div class="layui-input-inline" style="width: 210px;">
<input type="text" name="update_no" value="">
</div>
</div>
<div class="layui-inline" id="sub_export_type">
<label class="layui-form-label" style="width: 60px;">导出字段</label>
<div class="layui-input-inline" style="width: 210px;">
@ -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({

@ -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];

Loading…
Cancel
Save