Commit 7eeecb71 authored by 罗超's avatar 罗超

修复问题

parent c491eb9f
......@@ -14,7 +14,7 @@
<el-option v-for="(x,i) in rankTypeList" :key="i" :label="x.name" :value="x.id"></el-option>
</el-select>
<div style="width:235px;margin-right:25px;">
<el-tabs v-model="rankMsg.QueryType" @tab-click="changeRankTypeHandler" class="hide-tabs-content">
<el-tabs v-model="currentRankRange" @tab-click="changeRankTypeHandler" class="hide-tabs-content">
<el-tab-pane v-for="(x,i) in dataRangeList" :key="i" :label="x.name" :name="x.id.toString()"></el-tab-pane>
</el-tabs>
</div>
......@@ -444,9 +444,10 @@ export default {
},
],
currentRankType: {},
currentRankRange: "2",
rankMsg: {
RankType: 1, //排行类型(1-引流排行,2-销售排行,3-利润排行)
QueryType: "2", //查询类型(1-按天查询,2-按月查询,3-按年查询)
QueryType: "1", //查询类型(1-按天查询,2-按月查询,3-按年查询)
StartDay: "2022-05-01", //开始时间
EndDay: "2022-05-31", //结束时间
StartMonth: "2022-04", //开始月份
......@@ -516,9 +517,10 @@ export default {
changeRankTypeHandler() {
this.clearRankMsgHandler();
let temp = this.dataRangeList.find(
(x) => x.id.toString() == this.rankMsg.QueryType
(x) => x.id.toString() == this.currentRankRange
);
if (temp) {
this.rankMsg.QueryType = temp.type;
this.rankMsg[temp.mappingStart] = temp.startTime;
this.rankMsg[temp.mappingEnd] = temp.endTime;
this.GetRankingList();
......
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