@@ -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 {