From d01d442a023543ef0ec40064b4a1252fa98650e4 Mon Sep 17 00:00:00 2001 From: break60 <790061044@qq.com> Date: Thu, 7 Nov 2019 17:04:01 +0800 Subject: [PATCH] Refresh task instance page regularly (#1175) * Dependency workflow add dependency correction value * Download workflow instance map width adjustment and change "desc" field to "description" * The third-party library that builds the dependency is recommended to be placed in 'devDependencies' * Tree chart and Gantt chart style modification * The workflow instance can be deleted only when its status is success, failure, stop and pause. * change desc to description * Maximum width of tooltip is set to 500px, note the copyright number of login page * Delete copyright number * No tenant in the list of selected tenants the default is default, and the status not shown in the repair page * repair * Repair security center module prompt * Remove blank character during verification * Remove blank character during verification * Non admin users cannot create users, tenants, alarm groups, queues and worker groups * Remove CI windows detection * The value of loadaverage should be two decimal places * Add license * delete docs * update package.json * delete LICENSE * Display icon when there is no data in process definition * Worker group add IP format verification * Modify MySQL page of monitoring center * DB page rename and background color modification * IO build replace with source code * Replace ans charts with source code * delete component-compiler-utils * delete progress-webpack-plugin * Release administrator delete function and select tenant not updated * The default timing is hourly * Resolve style conflict, recipient cannot tab and value verification * Refresh task instance page regularly --- .../projects/pages/taskInstance/index.vue | 20 ++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue index 3ad91fa23b..8badd7958b 100644 --- a/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue +++ b/dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue @@ -106,7 +106,17 @@ }).catch(e => { this.isLoading = false }) - } + }, + /** + * 防抖请求接口 + * @desc 防止函数多次被调用 + */ + _debounceGET: _.debounce(function (flag) { + this._getList(flag) + }, 100, { + 'leading': false, + 'trailing': true + }) }, watch: { // router @@ -121,6 +131,14 @@ created () { }, mounted () { + // 轮循获取状态 + this.setIntervalP = setInterval(() => { + this._debounceGET('false') + }, 90000) + }, + beforeDestroy () { + // 销毁轮循 + clearInterval(this.setIntervalP) }, components: { mList, mInstanceConditions, mSpin, mListConstruction, mSecondaryMenu, mNoData } }