Commit 0ef5708c by liuchenxi

update: 分组和标签修改

parent 58094571
......@@ -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