From 3dea06e072846771de0822c50df7252d8dc1fcd4 Mon Sep 17 00:00:00 2001 From: qimingjin <459816669@qq.com> Date: Mon, 3 May 2021 18:01:15 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dtab=E9=A1=B5=E6=9F=A5?= =?UTF-8?q?=E8=AF=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../controller/system/ReportController.java | 2 +- .../templates/system/customer/customer.html | 77 +++++++++++-------- .../customer/CustomerStartListener.java | 2 +- 3 files changed, 49 insertions(+), 32 deletions(-) diff --git a/snow-admin/src/main/java/com/snow/web/controller/system/ReportController.java b/snow-admin/src/main/java/com/snow/web/controller/system/ReportController.java index 2575f35..975a3a8 100644 --- a/snow-admin/src/main/java/com/snow/web/controller/system/ReportController.java +++ b/snow-admin/src/main/java/com/snow/web/controller/system/ReportController.java @@ -29,7 +29,7 @@ public class ReportController extends BaseController **/ @RequiresPermissions("system:jmreport:design") - @GetMapping("/list") + @GetMapping("/design") public String reportDesign() { diff --git a/snow-admin/src/main/resources/templates/system/customer/customer.html b/snow-admin/src/main/resources/templates/system/customer/customer.html index 0db9d30..5a2dce0 100644 --- a/snow-admin/src/main/resources/templates/system/customer/customer.html +++ b/snow-admin/src/main/resources/templates/system/customer/customer.html @@ -31,14 +31,6 @@ - -
  • - - -
  • +
  • - +
  • - -
  • -
  • -
  • -  搜索 -  重置 +  搜索 +  重置
  • @@ -126,25 +115,25 @@ @@ -178,9 +167,7 @@ var visitTypeDatas = [[${@dict.getType('sys_customer_visit_type')}]]; var prefix = ctx + "system/customer"; - $(function() { - var options = { id:"bootstrap-table3", url: prefix + "/list", @@ -191,9 +178,7 @@ exportUrl: prefix + "/export", modalName: "客户", toolbar: "toolbar1", - queryParams:{ - "isHighSeas":1 - }, + queryParams:queryParams, columns: [{ checkbox: true }, @@ -252,8 +237,17 @@ }] }; $.table.init(options); + function queryParams(params) { + var search = $.table.queryParams(params); + search["isHighSeas"]=1 + search.customerNo = $("#seasCustomerNo").val(); + search.customerName = $("#seasCustomerName").val(); + search.customerIndustry = $("#seasCustomerIndustry").val(); + console.log("=======公海查询=======>"+JSON.stringify(search)) + return search; + + } - $("#bootstrap-table").bootstrapTable('destroy'); var options1 = { id: "bootstrap-table1", @@ -261,6 +255,7 @@ createUrl: prefix + "/visitAdd/{id}", detailUrl: prefix + "/detail/{id}", toolbar: "toolbar2", + queryParams:queryParamMy, detailView: true, onExpandRow : function(index, row, $detail) { initChildTable(index, row, $detail); @@ -327,7 +322,15 @@ }] }; $.table.init(options1); + function queryParamMy(params) { + var search = $.table.queryParams(params); + search.customerNo = $("#myCustomerNo").val(); + search.customerName = $("#myCustomerName").val(); + search.customerIndustry = $("#myCustomerIndustry").val(); + console.log("==========我的客户查询====>"+JSON.stringify(search)) + return search; + } var options2 = { id: "bootstrap-table2", url: prefix + "/list", @@ -336,7 +339,7 @@ detailUrl: prefix + "/detail/{id}", exportUrl: prefix + "/export", modalName: "客户", - queryParams:{"customerStatus":"BLACKLIST"}, + queryParams: queryParam, columns: [{ checkbox: true }, @@ -393,8 +396,22 @@ return actions.join(''); } }] + }; $.table.init(options2); + + function queryParam(params) { + var search = $.table.queryParams(params); + search["customerStatus"]="BLACKLIST" + search.customerNo = $("#blackCustomerNo").val(); + search.customerName = $("#blackCustomerName").val(); + search.customerIndustry = $("#blackCustomerIndustry").val(); + console.log("==========黑名单查询====>"+JSON.stringify(search)) + return search; + + } + + }); initChildTable = function(index, row, $detail) { diff --git a/snow-flowable/src/main/java/com/snow/flowable/listener/customer/CustomerStartListener.java b/snow-flowable/src/main/java/com/snow/flowable/listener/customer/CustomerStartListener.java index d40e9c1..945dee6 100644 --- a/snow-flowable/src/main/java/com/snow/flowable/listener/customer/CustomerStartListener.java +++ b/snow-flowable/src/main/java/com/snow/flowable/listener/customer/CustomerStartListener.java @@ -50,7 +50,7 @@ public class CustomerStartListener extends AbstractExecutionListener sysUsers = sysUserService.selectUserList(sysUser); + List sysUsers = sysUserService.selectUserList(sysUser1); if(CollectionUtils.isEmpty(sysUsers)){ setVariable("customerManager",1); }else {