Commit ddad0dce by 陈羽

update: 还原

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