Commit ddad0dce by 陈羽

update: 还原

parent 75ac9846
...@@ -183,12 +183,12 @@ export default { ...@@ -183,12 +183,12 @@ export default {
taskType: 2 taskType: 2
}; };
if (that.pageParams.storeGroup) { if (that.pageParams.storeGroup) {
// let storeGroups = []; let storeGroups = [];
// that.pageParams.storeGroup.forEach(ele => { that.pageParams.storeGroup.forEach(ele => {
// storeGroups.push(ele.storeGroupId); storeGroups.push(ele.storeGroupId);
// }); });
para.storeGroupIds = JSON.stringify(that.pageParams.storeGroup);
delete para.storeGroup; delete para.storeGroup;
para.storeGroupIds = storeGroups.join(',') || '';
} }
if (para.date) { if (para.date) {
para.startTime = para.date[0]; para.startTime = para.date[0];
......
...@@ -378,17 +378,16 @@ export default { ...@@ -378,17 +378,16 @@ export default {
getTableList(val) { getTableList(val) {
const that = this; const that = this;
that.loading = true; that.loading = true;
// let storeGroups = []; let storeGroups = [];
// that.conditionObj.storeGroup.forEach(ele => { that.conditionObj.storeGroup.forEach(ele => {
// storeGroups.push(ele.storeGroupId); storeGroups.push(ele.storeGroupId);
// }); });
if (!that.conditionObj.dateRange) { if (!that.conditionObj.dateRange) {
that.conditionObj.dateRange = []; that.conditionObj.dateRange = [];
} }
let para = { let para = {
search: that.conditionObj.searchInput || '', // 搜索字段 search: that.conditionObj.searchInput || '', // 搜索字段
// storeGroupIds: storeGroups.join(',') || '', // 门店分组,分组 storeGroupIds: storeGroups.join(',') || '', // 门店分组,分组
storeGroupIds: JSON.stringify(that.conditionObj.storeGroup) || '', // 门店分组,数组
storeType: that.conditionObj.storeType || '', //门店类型 storeType: that.conditionObj.storeType || '', //门店类型
startDate: that.conditionObj.dateRange[0] || '', startDate: that.conditionObj.dateRange[0] || '',
endDate: that.conditionObj.dateRange[1] || '', endDate: that.conditionObj.dateRange[1] || '',
......
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