Commit 51f4ba7f authored by honghy's avatar honghy Committed by wux

bug284 (生产bug)【客户列表-查询】“客户类别”查询条件没有正确过滤数据

parent 013f9394
...@@ -1230,22 +1230,24 @@ export default { ...@@ -1230,22 +1230,24 @@ export default {
}, },
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true this.$nextTick(() => {
// 处理查询参数 this.loading = true
let params = { ...this.queryParams, ...this.combinedQueryParams } // 处理查询参数
let params = Object.assign({}, this.queryParams, this.combinedQueryParams)
// 执行查询
switch (this.$route.path) {
case "/customer/customer":
getCustomerPage(params).then(this.setData)
break
case "/customer/department-customers":
getCustomerDeptPage(params).then(this.setData)
break
case "/customer/potential":
getPotential(params).then(this.setData)
break
}
})
// 执行查询
switch (this.$route.path) {
case "/customer/customer":
getCustomerPage(params).then(this.setData)
break
case "/customer/department-customers":
getCustomerDeptPage(params).then(this.setData)
break
case "/customer/potential":
getPotential(params).then(this.setData)
break
}
}, },
remoteMethod(val) { remoteMethod(val) {
this.getCustomerSelect(val) this.getCustomerSelect(val)
......
...@@ -839,15 +839,18 @@ export default { ...@@ -839,15 +839,18 @@ export default {
}, },
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true const that = this
// 处理查询参数 this.$nextTick(() => {
let params = { ...this.queryParams, ...this.combinedQueryParams } this.loading = true
// this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime', false); // 处理查询参数
// 执行查询 let params = { ...this.queryParams, ...this.combinedQueryParams }
getWaitForConfirmList(params).then((response) => { // this.addBeginAndEndTime(params, this.dateRangeCreateTime, 'createTime', false);
this.list = response.data.list // 执行查询
this.total = response.data.total getWaitForConfirmList(params).then((response) => {
this.loading = false that.list = response.data.list
that.total = response.data.total
that.loading = false
})
}) })
}, },
remoteMethod(val) { remoteMethod(val) {
......
...@@ -694,16 +694,19 @@ export default { ...@@ -694,16 +694,19 @@ export default {
}, },
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true const that = this
// 处理查询参数 this.$nextTick(() => {
let params = { ...this.queryParams, ...this.combinedQueryParams } this.loading = true
this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime", false) // 处理查询参数
// 执行查询 let params = { ...this.queryParams, ...this.combinedQueryParams }
getMyCustomerService(params).then((response) => { this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime", false)
this.list = response.data.list // 执行查询
this.total = response.data.total getMyCustomerService(params).then((response) => {
this.loading = false that.list = response.data.list
this.getHeight() that.total = response.data.total
that.loading = false
that.getHeight()
})
}) })
}, },
remoteMethod(val) { remoteMethod(val) {
......
...@@ -783,17 +783,20 @@ export default { ...@@ -783,17 +783,20 @@ export default {
}, },
/** 查询列表 */ /** 查询列表 */
getList() { getList() {
this.loading = true; const that = this
// 处理查询参数 this.$nextTick(() => {
let params = { ...this.queryParams, ...this.combinedQueryParams }; this.loading = true;
this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime"); // 处理查询参数
// 执行查询 let params = { ...this.queryParams, ...this.combinedQueryParams };
getPublicList(params).then((response) => { this.addBeginAndEndTime(params, this.dateRangeCreateTime, "createTime");
this.list = response.data.list; // 执行查询
this.total = response.data.total; getPublicList(params).then((response) => {
this.loading = false; that.list = response.data.list;
this.getHeight(); that.total = response.data.total;
}); that.loading = false;
that.getHeight();
});
})
}, },
remoteMethod(val) { remoteMethod(val) {
this.getCustomerSelect(val); this.getCustomerSelect(val);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment