forked from github/dataease
fix: 查询任务日志
This commit is contained in:
parent
a3defb1a88
commit
225c36230a
@ -140,8 +140,8 @@ export default {
|
|||||||
createTimer() {
|
createTimer() {
|
||||||
if (!this.timer) {
|
if (!this.timer) {
|
||||||
this.timer = setInterval(() => {
|
this.timer = setInterval(() => {
|
||||||
this.search(this.last_condition, false)
|
this.timerSearch(this.last_condition, false)
|
||||||
}, 1000)
|
}, 15000)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
destroyTimer() {
|
destroyTimer() {
|
||||||
@ -168,7 +168,7 @@ export default {
|
|||||||
},
|
},
|
||||||
select(selection) {
|
select(selection) {
|
||||||
},
|
},
|
||||||
search(condition, showLoading = true) {
|
timerSearch(condition, showLoading = true) {
|
||||||
if(!this.lastRequestComplete){
|
if(!this.lastRequestComplete){
|
||||||
return;
|
return;
|
||||||
}else {
|
}else {
|
||||||
@ -188,6 +188,17 @@ export default {
|
|||||||
this.lastRequestComplete = true;
|
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) {
|
showErrorMassage(massage) {
|
||||||
this.show_error_massage = true
|
this.show_error_massage = true
|
||||||
this.error_massage = massage
|
this.error_massage = massage
|
||||||
|
Loading…
Reference in New Issue
Block a user