mirror of
https://github.com/kuaifan/dootask.git
synced 2025-12-13 20:12:48 +00:00
no message
This commit is contained in:
parent
a6c7c0c7ad
commit
622fe1e5d9
@ -60,7 +60,7 @@
|
|||||||
"stylus-loader": "^7.1.0",
|
"stylus-loader": "^7.1.0",
|
||||||
"tinymce": "^5.10.3",
|
"tinymce": "^5.10.3",
|
||||||
"tui-calendar-hi": "^1.15.1-5",
|
"tui-calendar-hi": "^1.15.1-5",
|
||||||
"view-design-hi": "^4.7.0-67",
|
"view-design-hi": "^4.7.0-68",
|
||||||
"vite": "^2.9.15",
|
"vite": "^2.9.15",
|
||||||
"vite-plugin-file-copy": "^1.0.0",
|
"vite-plugin-file-copy": "^1.0.0",
|
||||||
"vite-plugin-require": "^1.1.10",
|
"vite-plugin-require": "^1.1.10",
|
||||||
|
|||||||
@ -1053,7 +1053,7 @@ export default {
|
|||||||
this.handleColumnDebounce();
|
this.handleColumnDebounce();
|
||||||
},
|
},
|
||||||
searchText() {
|
searchText() {
|
||||||
this.handleColumnDebounce();
|
this.handleColumnDebounce(true);
|
||||||
},
|
},
|
||||||
windowWidth() {
|
windowWidth() {
|
||||||
this.handleColumnDebounce(100);
|
this.handleColumnDebounce(100);
|
||||||
@ -1579,7 +1579,13 @@ export default {
|
|||||||
|
|
||||||
flowChange(_, data) {
|
flowChange(_, data) {
|
||||||
this.flowInfo = data.pop() || {};
|
this.flowInfo = data.pop() || {};
|
||||||
this.handleColumnDebounce();
|
|
||||||
|
// 判断查看 "已完成流程" 但是没有显示已完成时切换显示已完成
|
||||||
|
if (this.flowInfo.status === 'end' && !this.projectData.cacheParameter.completedTask) {
|
||||||
|
this.toggleParameter('completedTask')
|
||||||
|
}
|
||||||
|
|
||||||
|
this.handleColumnDebounce(true);
|
||||||
},
|
},
|
||||||
|
|
||||||
inviteCopy() {
|
inviteCopy() {
|
||||||
@ -1738,7 +1744,11 @@ export default {
|
|||||||
return style;
|
return style;
|
||||||
},
|
},
|
||||||
|
|
||||||
handleColumnDebounce(wait = 10) {
|
handleColumnDebounce(wait = 10, needView = false) {
|
||||||
|
if (typeof wait === "boolean") {
|
||||||
|
needView = wait
|
||||||
|
wait = 10
|
||||||
|
}
|
||||||
if (this.columnDebounceWait !== wait) {
|
if (this.columnDebounceWait !== wait) {
|
||||||
this.columnDebounceWait = wait;
|
this.columnDebounceWait = wait;
|
||||||
if (this.columnDebounceInvoke) {
|
if (this.columnDebounceInvoke) {
|
||||||
@ -1747,11 +1757,20 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (!this.columnDebounceInvoke) {
|
if (!this.columnDebounceInvoke) {
|
||||||
this.columnDebounceInvoke = debounce(_ => {
|
this.columnDebounceInvoke = debounce(needView => {
|
||||||
this.$nextTick(_ => {
|
this.$nextTick(_ => {
|
||||||
switch (this.tabTypeActive) {
|
switch (this.tabTypeActive) {
|
||||||
case 'column':
|
case 'column':
|
||||||
this.handleColumnScroll()
|
this.handleColumnScroll()
|
||||||
|
if (needView === true) {
|
||||||
|
// 滚动到第一个可见任务
|
||||||
|
requestAnimationFrame(() => {
|
||||||
|
const mainContainer = this.$refs.projectColumn;
|
||||||
|
if (mainContainer && !mainContainer.querySelector('.task-head')) {
|
||||||
|
$A.scrollIntoViewIfNeeded(mainContainer.querySelector('.task-draggable:not(.hidden)'))
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case 'table':
|
case 'table':
|
||||||
this.handleTaskScroll({target: this.$refs.projectTableScroll?.$el})
|
this.handleTaskScroll({target: this.$refs.projectTableScroll?.$el})
|
||||||
@ -1760,7 +1779,7 @@ export default {
|
|||||||
})
|
})
|
||||||
}, wait);
|
}, wait);
|
||||||
}
|
}
|
||||||
this.columnDebounceInvoke();
|
this.columnDebounceInvoke(needView);
|
||||||
},
|
},
|
||||||
|
|
||||||
handleColumnScroll() {
|
handleColumnScroll() {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user