From 198da7608d7de3f72ab366569ac1c1cc23641f3d Mon Sep 17 00:00:00 2001 From: kuaifan Date: Thu, 29 May 2025 08:49:37 +0800 Subject: [PATCH] no message --- resources/assets/js/components/RightBottom.vue | 10 +++++++++- .../assets/js/pages/manage/components/TaskDetail.vue | 10 ++++++---- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/resources/assets/js/components/RightBottom.vue b/resources/assets/js/components/RightBottom.vue index 21807c184..15f2450a0 100644 --- a/resources/assets/js/components/RightBottom.vue +++ b/resources/assets/js/components/RightBottom.vue @@ -97,7 +97,15 @@ export default { }, showDown() { - return !this.$isEEUIApp && !this.windowTouch && ['login', 'index', 'manage-dashboard'].includes(this.routeName) + if (this.$isEEUIApp || this.windowTouch) { + // app或者触摸屏不显示下载链接 + return false; + } + if (this.routeName == 'manage-dashboard' && this.windowPortrait) { + // 在仪表盘页面且竖屏不显示下载链接 + return false; + } + return ['login', 'index', 'manage-dashboard'].includes(this.routeName) }, showPrivacy() { diff --git a/resources/assets/js/pages/manage/components/TaskDetail.vue b/resources/assets/js/pages/manage/components/TaskDetail.vue index 510de739c..535e17847 100755 --- a/resources/assets/js/pages/manage/components/TaskDetail.vue +++ b/resources/assets/js/pages/manage/components/TaskDetail.vue @@ -1536,17 +1536,19 @@ export default { event, list, size: 'large', - onUpdate: (value) => { - if (this.subList.length > 0) { + onUpdate: (newLoop) => { + const currentLoop = this.taskDetail.loop || 'never'; + const loopTip = currentLoop == 'never' && newLoop != 'never' && this.subList.length > 0 + if (loopTip) { $A.modalConfirm({ language: false, content: this.$L('周期任务的子任务时间将被重置,是否继续?'), onOk: () => { - this.updateData('loop', value) + this.updateData('loop', newLoop) } }); } else { - this.updateData('loop', value) + this.updateData('loop', newLoop) } } })