no message

This commit is contained in:
kuaifan 2025-03-04 08:44:11 +08:00
parent a6c7c0c7ad
commit 622fe1e5d9
2 changed files with 25 additions and 6 deletions

View File

@ -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",

View File

@ -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() {