From 225c36230a58e58b9bc8bf8e8d6b1338cd13fbac Mon Sep 17 00:00:00 2001 From: taojinlong Date: Tue, 3 Aug 2021 15:53:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E6=9F=A5=E8=AF=A2=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/system/task/TaskRecord.vue | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/frontend/src/views/system/task/TaskRecord.vue b/frontend/src/views/system/task/TaskRecord.vue index 5ac4a2dd7a..2fa6084a57 100644 --- a/frontend/src/views/system/task/TaskRecord.vue +++ b/frontend/src/views/system/task/TaskRecord.vue @@ -140,8 +140,8 @@ export default { createTimer() { if (!this.timer) { this.timer = setInterval(() => { - this.search(this.last_condition, false) - }, 1000) + this.timerSearch(this.last_condition, false) + }, 15000) } }, destroyTimer() { @@ -168,7 +168,7 @@ export default { }, select(selection) { }, - search(condition, showLoading = true) { + timerSearch(condition, showLoading = true) { if(!this.lastRequestComplete){ return; }else { @@ -188,6 +188,17 @@ export default { this.lastRequestComplete = true; }) }, + search(condition, showLoading = true) { + this.last_condition = condition + condition = formatQuickCondition(condition, 'dataset_table_task.name') + const temp = formatCondition(condition) + const param = temp || {} + param['orders'] = formatOrders(this.orderConditions) + post('/dataset/taskLog/list/notexcel/' + this.paginationConfig.currentPage + '/' + this.paginationConfig.pageSize, param, showLoading).then(response => { + this.data = response.data.listObject + this.paginationConfig.total = response.data.itemCount + }) + }, showErrorMassage(massage) { this.show_error_massage = true this.error_massage = massage