mirror of
https://gitee.com/java110/MicroCommunityWeb.git
synced 2026-02-23 21:36:37 +08:00
v1.9 优化定时任务提示
This commit is contained in:
parent
980b2549f5
commit
7bd9ddc951
@ -56,7 +56,8 @@ export const messages = {
|
|||||||
},
|
},
|
||||||
fetchError: 'Failed to fetch task list',
|
fetchError: 'Failed to fetch task list',
|
||||||
start: 'start',
|
start: 'start',
|
||||||
stop: 'stop'
|
stop: 'stop',
|
||||||
|
timeout: 'Submitted task, please check the result later'
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
zh: {
|
zh: {
|
||||||
@ -116,7 +117,8 @@ export const messages = {
|
|||||||
},
|
},
|
||||||
fetchError: '获取定时任务列表失败',
|
fetchError: '获取定时任务列表失败',
|
||||||
start: '启动',
|
start: '启动',
|
||||||
stop: '停止'
|
stop: '停止',
|
||||||
|
timeout: '已提交任务,请稍后查看结果'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -118,7 +118,7 @@ export default {
|
|||||||
await startTask(row.taskId)
|
await startTask(row.taskId)
|
||||||
this.getList()
|
this.getList()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.error(this.$t('task.fetchError'))
|
this.$message.error(error)
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
@ -129,7 +129,7 @@ export default {
|
|||||||
await stopTask(row.taskId)
|
await stopTask(row.taskId)
|
||||||
this.getList()
|
this.getList()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.error(this.$t('task.fetchError'))
|
this.$message.error(error)
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
@ -155,7 +155,7 @@ export default {
|
|||||||
await runTask(row.taskId)
|
await runTask(row.taskId)
|
||||||
this.getList()
|
this.getList()
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
this.$message.error(this.$t('task.fetchError'))
|
this.$message.error(this.$t('task.timeout'))
|
||||||
} finally {
|
} finally {
|
||||||
this.loading = false
|
this.loading = false
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user