diff --git a/resources/assets/js/pages/manage/components/ProjectLog.vue b/resources/assets/js/pages/manage/components/ProjectLog.vue index f4736b36c..bb2957cea 100644 --- a/resources/assets/js/pages/manage/components/ProjectLog.vue +++ b/resources/assets/js/pages/manage/components/ProjectLog.vue @@ -70,6 +70,9 @@ export default { this.lists = {}; this.getLists(true); }, + loadIng(num) { + this.$emit("on-load-change", num > 0) + } }, methods: { diff --git a/resources/assets/js/pages/manage/components/TaskDetail.vue b/resources/assets/js/pages/manage/components/TaskDetail.vue index 420e4073d..41be14c2c 100644 --- a/resources/assets/js/pages/manage/components/TaskDetail.vue +++ b/resources/assets/js/pages/manage/components/TaskDetail.vue @@ -329,22 +329,30 @@
- +
- +
{{$L('暂无消息')}}
@@ -431,6 +439,7 @@ export default { msgText: '', navActive: 'dialog', + logLoadIng: false, sendLoad: false, @@ -917,11 +926,15 @@ export default { }); }, - setNavActive(act) { - if (act == 'log' && this.navActive == act) { - this.$refs.log.getLists(true); + getLogLists() { + if (this.navActive != 'log') { + return; } - this.navActive = act; + this.$refs.log.getLists(true); + }, + + logLoadChange(load) { + this.logLoadIng = load }, dropAdd(command) { diff --git a/resources/assets/sass/pages/components/task-detail.scss b/resources/assets/sass/pages/components/task-detail.scss index ce27554b3..e99e16c59 100644 --- a/resources/assets/sass/pages/components/task-detail.scss +++ b/resources/assets/sass/pages/components/task-detail.scss @@ -495,6 +495,25 @@ cursor: default; } } + .refresh { + display: flex; + align-items: center; + margin-left: -18px; + > i { + font-size: 18px; + cursor: pointer; + opacity: 0.8; + transition: opacity 0.2s; + &:hover { + opacity: 1; + } + } + .common-loading { + margin: 3px; + width: 12px; + height: 12px; + } + } } } .no-dialog {