소스 검색

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
break60 5 년 전
부모
커밋
d01d442a02
1개의 변경된 파일19개의 추가작업 그리고 1개의 파일을 삭제
  1. 19 1
      dolphinscheduler-ui/src/js/conf/home/pages/projects/pages/taskInstance/index.vue

+ 19 - 1
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 }
   }