Commit d64d5186 authored by 吴春's avatar 吴春

1

parent 94b0781b
...@@ -522,38 +522,7 @@ export default { ...@@ -522,38 +522,7 @@ export default {
this.dateRange = { from: this.msg.startDate, to: this.msg.endDate }; this.dateRange = { from: this.msg.startDate, to: this.msg.endDate };
}, },
mounted() { mounted() {
let LineIdList = [];
if (this.msg.LineIds && this.msg.LineIds.length > 0) {
LineIdList = this.msg.LineIds.split(",");
}
let SeriesIdList = [];
if (this.msg.SeriesIds && this.msg.SeriesIds.length > 0) {
SeriesIdList = this.msg.SeriesIds.split(",");
}
if (
(LineIdList && LineIdList.length > 0) ||
(SeriesIdList && SeriesIdList.length > 0)
) {
let arr = [];
this.goodsType.forEach((x) => {
let lineIdIndex = LineIdList.findIndex((yId) => x.Id.slice(2) == yId);
if (lineIdIndex != -1) {
arr.push(x.Id);
}
x.children.forEach((y) => {
if (lineIdIndex != -1) {
arr.push(y.Id);
} else {
let seriesIdIndex = SeriesIdList.findIndex((yId) => y.Id.slice(2) == yId);
if (seriesIdIndex != -1) {
arr.push(y.Id);
}
}
});
});
this.ticked = arr;
}
}, },
methods: { methods: {
handleSelected(target) { handleSelected(target) {
...@@ -635,12 +604,13 @@ export default { ...@@ -635,12 +604,13 @@ export default {
let arr = []; let arr = [];
let LineIdList = []; let LineIdList = [];
if (this.msg.LineIds && this.msg.LineIds.length > 0) { if (this.msg.LineIds && this.msg.LineIds.length > 0) {
LineIdList = this.msg.LineIds.split(";"); LineIdList = this.msg.LineIds.split(",");
} }
let SeriesIdList = []; let SeriesIdList = [];
if (this.msg.SeriesIds && this.msg.SeriesIds.length > 0) { if (this.msg.SeriesIds && this.msg.SeriesIds.length > 0) {
SeriesIdList = this.msg.SeriesIds.split(";"); SeriesIdList = this.msg.SeriesIds.split(",");
} }
console.log("SeriesIdList",SeriesIdList);
this.apipost( this.apipost(
"b2c_get_GetB2CQueryCondition", "b2c_get_GetB2CQueryCondition",
this.msg, this.msg,
......
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