Commit ef0851fe by liuchenxi

Merge branch 'feature/9月迭代' into dev

parents b46b5986 c4a3d65e
......@@ -524,7 +524,18 @@
<div class="relative-range m-t-18 border-box" v-if="parent.radio != 1">
<div>
<div>
<label class="inline-block w-98 label-unit">时间精度</label>
<label class="inline-block w-98 label-unit">时间精度
<el-tooltip popper-class="edit-tag-tooltip" placement="top" open-delay="100" effect="light">
<div slot="content">
<span style="font-weight: 600">选择【天】:</span><br />选择相对时段为“最近2天”,那么系统在5号凌晨进行统计时,统计的是在3号、4号首次添加导购企微好友的顾客;系统在6号凌晨统计时,统计的是4号、5号首次添加导购企微好友的顾客;<br />
<span style="font-weight: 600">选择【月】:</span><br />当月:eg:选择相对时间段为“当月”,那么系统在8月5号凌晨进行统计时,统计的是在8/1-8/4号首次添加导购企微好友的顾客;系统在6号凌晨统计时,统计的是在8/1-8/5号首次添加导购企微好友的顾客。<br />
<span style="font-weight: 600">最近X月:</span>eg:选择相对时间段为“最近2月”,那么系统在8月5号凌晨进行统计时,统计的是在6月、7月首次添加导购企微好友的顾客;系统在6号凌晨统计时,统计的还是在6月、7月首次添加导购企微好友的顾客。<br />
<span style="font-weight: 600">选择【年】:</span><br />当年:选择相对时间段为“当年”,那么系统在8月5号凌晨进行统计时,统计的是在当年1/1-8/4号首次添加导购企微好友的顾客;系统在6号凌晨统计时,统计的是在当年1/1-8/5号首次添加导购企微好友的顾客。<br />
<span style="font-weight: 600">最近X年:</span>eg:选择相对时间段为“最近1年”,那么系统在8月5号凌晨进行统计时,统计的是在去年1/1-12/31号首次添加导购企微好友的顾客;系统在6号凌晨统计时,统计的还是在去年1/1-12/31号首次添加导购企微好友的顾客。
</div>
<i class="iconfont icon-tishi" style="color: #909399"></i>
</el-tooltip>
</label>
<el-radio-group v-model="parent.timeRadio" @change="timeRadioChange($event, parent)">
<el-radio label="1"></el-radio>
<el-radio label="2"></el-radio>
......@@ -2266,4 +2277,4 @@ export default {
.tag025-scrollbar{
width: 370px;
}
</style>
\ No newline at end of file
</style>
......@@ -1296,10 +1296,10 @@ export default {
}
// 月
if (newNum > 24 && radio == 2) {
newNum = 12;
newNum = 24;
}
// 年
if (newNum > 3 && radio == 3) {
if (newNum >= 3 && radio == 3) {
newNum = 2;
}
parent.timeInput = newNum;
......
......@@ -118,6 +118,9 @@ export default {
// 处理分层
handleChangeLevel(i, list) {
this.currentLevelIndex = i;
// 重置其他组的选项
this.currentIndex = -2;
this.currentFixedIndex = -2;
this.$emit('second-list', { list: list, isTag: true });
},
// 分层
......@@ -147,6 +150,9 @@ export default {
this.classTagName = 'tag-name';
this.active = false;
this.currentIndex = i;
// 重置其他组的选项
this.currentLevelIndex = -2;
this.currentFixedIndex = -2;
// 第二级的分组数据
this.$emit('second-list', list);
},
......@@ -154,6 +160,9 @@ export default {
this.classTagName = 'tag-name';
this.active = false;
this.currentFixedIndex = i;
// 重置其他组的选项
this.currentLevelIndex = -2;
this.currentIndex = -2;
this.$emit('second-list', { isFixed: true, list });
},
/**
......@@ -314,12 +323,14 @@ export default {
handleExpend() {
this.currentIndex = -1;
this.currentLevelIndex = -2;
this.currentFixedIndex = -2;
this.expendTxt = this.expendTxt === '展开' ? '收起' : '展开';
this.$emit('second-list', 'all');
},
handleExpendTag() {
this.currentLevelIndex = -1;
this.currentIndex = -2;
this.currentFixedIndex = -2;
this.expendTxtTag = this.expendTxtTag === '展开' ? '收起' : '展开';
this.$emit('second-list', 'allLevel');
},
......
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